Comments (5)
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.
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.
@cosexp You have to install boost then, i.e., apt-get install libboost-regex
.
from matlab-sqlite3-driver.
@cosexp Oops, you're using gcc 4.9. You can remove -lboost_regex
from the make.m
.
from matlab-sqlite3-driver.
Yes, now it's working. Thanks a lot!
from matlab-sqlite3-driver.
Related Issues (11)
- Embedded zeros terminate BLOB's HOT 2
- Combination of MATLAB release and OS forces restriciton on C++ compiler HOT 3
- Not compiling in Windows 10 HOT 3
- ldd: command not found HOT 2
- Time issue when selecting several columns HOT 2
- Can't Delete DB Files (after close) HOT 7
- Vectorized insert? HOT 3
- Cannot compile in Matlab 2014b on OS X 10.8.5 HOT 1
- std regex in gcc4.8 not working HOT 1
- Software versioning HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab-sqlite3-driver.