Code Monkey home page Code Monkey logo

Comments (10)

solatis avatar solatis commented on September 15, 2024

For full clarity, the whole process of including sqlite3, per sqlite3 documentation, is:

> wget https://www.sqlite.org/2015/sqlite-amalgamation-3080803.zip
> tar -xzvf sqlite-amalgamation-3080803.zip
> cd sqlite-amalgamation-3080803
> gcc -shared sqlite3.c -o libsqlite3.a
> cp libsqlite3.a %MINGW%\lib
> cp sqlite3.h %MINGW%\include

In other words, this is extremely simple, but you do need to know what you are doing. This will allow packages such as peristent-sqlite to be installed without a problem on windows.

from minghc.

ndmitchell avatar ndmitchell commented on September 15, 2024

I don't think we want to distribute libraries as such - the intention was just to support cabal installers and setup programs. But a lot of people want us to include libraries, we need to think of a general answer and include it in the read me. @snoyberg

from minghc.

solatis avatar solatis commented on September 15, 2024

Ah right, I understand. It's a slippery slope and before you know it your simple package is becoming a huge burden to maintain (a.k.a. Haskell Platform). I think there is a difference between just including (Haskell) libraries and providing some additional commonly used C libraries to make life of using Haskell under Windows more bearable.

Btw, you might want to change the line "Add in C libraries to ease use of Haskell packages on Windows. Pull requests welcome." to be more descriptive.

from minghc.

ndmitchell avatar ndmitchell commented on September 15, 2024

Yep, we should figure out what our intention is, and fix the docs. I will try and figure out our options next week.

from minghc.

snoyberg avatar snoyberg commented on September 15, 2024

I wrote that line, and now I tend to agree that it's likely not something
we should undertake.

On Sat, Apr 4, 2015, 12:18 PM Neil Mitchell [email protected]
wrote:

Yep, we should figure out what our intention is, and fix the docs. I will
try and figure out our options next week.


Reply to this email directly or view it on GitHub
#37 (comment).

from minghc.

solatis avatar solatis commented on September 15, 2024

Maybe this problem will fix itself when Windows 10 is released and everyone starts writing Nuget packages to make installation/distribution of C libraries under Windows easier (since I do think that this is an OS-level issue, not a language- or compiler-level issue).

Closing issue.

from minghc.

ndmitchell avatar ndmitchell commented on September 15, 2024

Out of curiousity, why would you want to ship sqlite? The direct-sqlite package installs flawlessly by embedding the C code from sqlite inside the Haskell package. I use that (or rather sqlite-simple which builds on it), and it's very easy, far easier than shipping a separate library.

from minghc.

solatis avatar solatis commented on September 15, 2024

Hmmm if I recall correctly, it was because of persistent-sqlite through yesod. I ran into this issue, had to run my own build of sqlite on Windows, and figured I'd open a ticket since it would be a good proof-of-concept if minghc decided to go this route.

from minghc.

snoyberg avatar snoyberg commented on September 15, 2024

persistent-sqlite defaults to using a bundle sqlite3.c instead of using an installed library.

from minghc.

solatis avatar solatis commented on September 15, 2024

It appears you are correct. Then I forgot what I was trying to do back then; in any case, it's besides the point.

from minghc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.