Giter Site home page Giter Site logo

Comments (4)

JulianBissekkou avatar JulianBissekkou commented on July 23, 2024

I am pretty new to kmp, so I might be wrong here but I assume that the sqlite3 library on the mac is somehow "outdated" and does not contain the symbols.

I assume that the libary that is linked is a system library stored at /System/Library/Tcl/sqlite3/libtclsqlite3.dylib.
When I try to search for the first missing symbol I get no result:

nm /System/Library/Tcl/sqlite3/libtclsqlite3.dylib | grep load_extension  

However, when I do the same with sqllite installed by homebrew I get some results:

nm /opt/homebrew/Cellar/sqlite/3.42.0/lib/libsqlite3.dylib | grep load_extension
00000000000116b4 T _sqlite3_enable_load_extension
000000000001122c T _sqlite3_load_extension

Does anybody maybe know a workaround? This issue is currently blocking for us.

from sqldelight.

kpgalligan avatar kpgalligan commented on July 23, 2024

I haven't built a macos app with sqldelight personally (I wrote most of the driver, or at least the original version). The tests run fine with -lsqlite3 without specifying the library search path, so I assume it's using a sqlite3 library from Xcode tools. libtclsqlite3 kind of seems like it's specific to tcl, but I've never used it. I would guess you'll need to include your own sqlite implementation.

Since you're building with Xcode, the easy solution would probably be to grab and build sqlite source directly in Xcode, and drop -lsqlite3. To do that just for iOS, I assume you'll need some target slight-of-hand in Xcode config.

from sqldelight.

JulianBissekkou avatar JulianBissekkou commented on July 23, 2024

I compiled the sql lib from the mentioned sources and added the dylib file to the project. It was able to find some symbols but still failed to compile since some of them are unknown.
Since I am building just a small POC i want to keep things simple. I was wondering if anything else is configued on my side.
Is there an example project with a macOS app that I can try out and compare?

from sqldelight.

JulianBissekkou avatar JulianBissekkou commented on July 23, 2024

@kpgalligan
If you run the tests are you compiling an MacosArm64 binary?

from sqldelight.

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.