07-06-2012 03:43 PM
Hi, I'm trying to compile a special version of sqlite and I've run into a wall near the end. Apparently qcc does not recognize libtool .lo files.
sqlite3.lo: file not recognized: File format not recognized
This is what the file looks like
# sqlite3.lo - a libtool object file
# Generated by ltmain.sh (GNU libtool) 2.2.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# Name of the PIC object.
pic_object='.libs/sqlite3.o'
# Name of the non-PIC object
non_pic_object='sqlite3.o'
Perhaps there is a flag missing that I need to get this to work? I then later tried to directly point the qcc to the .o file, but his left me with many undefined references.
Solved! Go to Solution.
07-06-2012 03:50 PM
What exactly do you run when you get sqlite3.lo: file not recognized: File format not recognized
07-06-2012 03:55 PM - edited 07-06-2012 04:02 PM
/Developer/SDKs/bbndk-10.0.4-beta/host/macosx/x86/
sqlite3.lo: file not recognized: File format not recognized
cc: /Developer/SDKs/bbndk-10.0.4-beta/host/macosx/x86/
This is in OSX using the bb10 compiler.
--- this is part of a larger command from libtool that is not creating the right output.
./libtool --mode=link /Developer/SDKs/bbndk-10.0.4-beta/host/macosx/x86/
-D__PLAYBOOK__ -D__QNXNTO__ -fno-short-wchar -fno-short-enums -I/Volumes/Projects/sqlite/../icu/bb-arm/inst\
/include -I/Volumes/Projects/sqlite/../snowball/snowball_sr
RRIDE_LOCK=-1 -DSQLITE_HAS_CODEC=1 -g -DSQLITE_OS_UNIX=1 -I. -I/Volumes/Projects/sqlite/sqlite_src/src -I/Vol\
umes/Projects/sqlite/sqlite_src/ext/rtree -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG -DSQLITE_THREADSAF\
E=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_R\
TREE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_ICU=1 -DSQLITE_ENABLE_SNOWBALL=1 -DSQLITE_ENABLE_CERO\
D=2 -L/Volumes/Projects/sqlite/../snowball/bb-arm -lstemmer -L/Volumes/Projects/sqlite/../icu/bb-arm/inst/li\
b -licui18n -licuuc -licudata -lz -lstdc++ -lsupc++ -L/Developer/SDKs/bbndk-10.0.4-beta/target/qnx6/ar
lib -o libsqlite3.la sqlite3.lo -rpath "/Volumes/Projects/sqlite/bb-arm/inst/lib" -version-info "8:6:8"
should create libsqlite3.so.8 inside of the .libs directory, but it isn't there. I think it is because the qcc command does't work.
07-06-2012 04:01 PM
.la and .lo files are to be used with libtool not with qcc/gcc
07-06-2012 04:48 PM
Turns out I was spelling my libraries wrong! Thanks for taking the time to answer.