Hello,

This is the config: Qt 4.7.4, Mac OS Lion

I would like to use QJSON in a qt project.
The building part runs fine using CMAKE with a custom install path.

cmake -DCMAKE_INSTALL_PREFIX=${HOME}/Projects/libs/ 
-DCMAKE_INCLUDE_PATH=${HOME}/Projects/libs/include 
-DCMAKE_LIBRARY_PATH=${HOME}/Projects/libs/lib ..

I have a warning of cmake telling me the Library path is ignored, well, fine ..

However I can't link against the library.

In a Qt pro:

INCLUDEPATH += /Users/kikohs/Projects/libs/include/qjson
LIBS += -L/Users/kikohs/Projects/libs/lib/ -lqjson

This is the result for otool -L on my binary:

        /Users/kikohs/Projects/libs/lib/libtag.1.dylib (compatibility version 
1.0.0, current version 1.7.0)
        libqjson.0.dylib (compatibility version 0.0.0, current version 0.7.1)
        
/Users/kikohs/QtSDK/Desktop/Qt/474/gcc/lib/phonon.framework/Versions/4/phonon 
(compatibility version 4.4.0, current version 4.4.0)
        
/Users/kikohs/QtSDK/Desktop/Qt/474/gcc/lib/QtSql.framework/Versions/4/QtSql 
(compatibility version 4.7.0, current version 4.7.4)
        
/Users/kikohs/QtSDK/Desktop/Qt/474/gcc/lib/QtGui.framework/Versions/4/QtGui 
(compatibility version 4.7.0, current version 4.7.4)
        
/Users/kikohs/QtSDK/Desktop/Qt/474/gcc/lib/QtNetwork.framework/Versions/4/QtNetwork
 (compatibility version 4.7.0, current version 4.7.4)
        
/Users/kikohs/QtSDK/Desktop/Qt/474/gcc/lib/QtCore.framework/Versions/4/QtCore 
(compatibility version 4.7.0, current version 4.7.4)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 52.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 
1105.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 159.1.0)

As you can see there is no prefix path for qjson where it should be.

I would appreciate any help.

Thank you,

Kirell
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
QJson-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qjson-devel

Reply via email to