[odb-users] Build libodbc-qt on OSX with Qt5.2.1
Adnan RIHAN
axel50397 at gmail.com
Fri May 9 20:39:30 EDT 2014
Qt is not installed in system directories (/usr/include | /usr/lib) by default (At least on OSX and Windows), so I have to precise my lib dir when using clang++ (Without -F, all return errors).
Le 9 mai 2014 à 21:13:07, Boris Kolpackov (boris at codesynthesis.com) a écrit:
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -c sample1.cxx
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -framework QtCore sample1.o
OK
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -framework QtCore -c sample1.cxx
clang: warning: -framework QtCore: 'linker' input unused
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -framework QtCore sample1.o
OK
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -c sample2.cxx
sample2.cxx:1:10: fatal error: 'QString' file not found
> clang++ -F/Users/Max13/Qt/5.2.1/clang_64/lib -framework QtCore -c sample2.cxx
clang: warning: -framework QtCore: 'linker' input unused
sample2.cxx:1:10: fatal error: 'QString' file not found
It seems to be the same after all. I wonder why I don’t have to prefix « QtCore » when including « QString » for example, and I noticed that QtCreator automatically adds every framework's headers directory.
--
Regards, Adnan RIHAN.
More information about the odb-users
mailing list