[odb-users] Build libodbc-qt on OSX with Qt5.2.1
axel50397 at gmail.com
Fri May 9 04:46:47 EDT 2014
Le 9 mai 2014 à 04:38:27, Boris Kolpackov (boris at codesynthesis.com) a écrit:
> ./configure CPPFLAGS=-I/test/Qt/include LDFLAGS=-L/test/Qt/lib
Thanks for your answer but I forgot to mention that on OSX, Qt5.2 is shipped by default compiled as framework, so I don’t have files in /include (some folders , but not Qt’s includes) and I have *.framework/ folders in /lib.
A .framework is structured as this:
|-- Contents/ (Contains only a .plist)
|-- @Headers/ (Points to Versions/Current/Headers)
|-- @QtCore (Points to Versions/Current/QtCore)
|-- @QtCore_debug (Points to Versions/Current/QtCore_debug)
|-- Headers (Contains the headers)
|-- QtCore (Binary, certainly the lib)
|-- QtCore_debug (Same as QtCore)
|-- @Current/ (Points to 5/)
So I think that due to this structure, the CPPFLAGS/LDFLAGS may be less simple that /include and /lib, but I can’t find.
Even that failed:
> ./configure CPPFLAGS=-I/Users/Max13/Qt/5.2.1/clang_64/lib/QtCore.framework/Headers LDFLAGS=-L/Users/Max13/Qt/5.2.1/clang_64/lib/QtCore.framework
In case of, this is the config.log: http://pastebin.com/PKZDGS7F
It says is can’t find "<QtCore/QString>", but with Frameworks we directly have access to "<QString>" and I don’t know how (if possible) to tell ./configure to include directly the header without the QtCore prefix, instead of removing it by hand...
Regards, Adnan RIHAN.
More information about the odb-users