Code Monkey home page Code Monkey logo

Comments (5)

kyamagu avatar kyamagu commented on May 30, 2024

Can you open +sqlite3/make.m and change

options = ' -ldl -lboost_regex CXXFLAGS="$CXXFLAGS -std=c++11"';

to

options = ' -ldl -lboost_regex CXXFLAGS="$CXXFLAGS -std=c++11 -fPIC"';

Also you might need to add the following to the Line 13 of make.m.

CFLAGS="&CFLAGS -fPIC"

from matlab-sqlite3-driver.

cosexp avatar cosexp commented on May 30, 2024

Ok, thanks, now the error is this:

>> sqlite3.make
mex -c -Iinclude src/sqlite3/sqlite3.c -outdir src/sqlite3
The destination directory "src/sqlite3" cannot be found.

Error in sqlite3.make>dispAndEval (line 40)
  eval(command);

Error in sqlite3.make (line 13)
      dispAndEval('mex -c -Iinclude src/sqlite3/sqlite3.c -outdir src/sqlite3');

>> cd ..
>> sqlite3.make
mex -c -Iinclude src/sqlite3/sqlite3.c -outdir src/sqlite3

Warning: You are using gcc version "4.9.1".  The version
         currently supported with MEX is "4.7.x".
         For a list of currently supported compilers see: 
         http://www.mathworks.com/support/compilers/current_release/

mex -Iinclude src/api.cc src/sqlite3mex.cc src/sqlite3/sqlite3.o -output +sqlite3/private/libsqlite3_ -ldl -lboost_regex CXXFLAGS="$CXXFLAGS -std=c++11 -fPIC"

Warning: You are using gcc version "4.9.1".  The version
         currently supported with MEX is "4.7.x".
         For a list of currently supported compilers see: 
         http://www.mathworks.com/support/compilers/current_release/

/usr/bin/ld: cannot find -lboost_regex
collect2: error: ld returned 1 exit status

    mex: link of ' "+sqlite3/private/libsqlite3_.mexa64"' failed.

Unable to complete successfully.

Error in sqlite3.make>dispAndEval (line 40)
  eval(command);

Error in sqlite3.make (line 14)
      dispAndEval([...

from matlab-sqlite3-driver.

kyamagu avatar kyamagu commented on May 30, 2024

@cosexp You have to install boost then, i.e., apt-get install libboost-regex.

from matlab-sqlite3-driver.

kyamagu avatar kyamagu commented on May 30, 2024

@cosexp Oops, you're using gcc 4.9. You can remove -lboost_regex from the make.m.

from matlab-sqlite3-driver.

cosexp avatar cosexp commented on May 30, 2024

Yes, now it's working. Thanks a lot!

from matlab-sqlite3-driver.

Related Issues (11)

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.