Created attachment 66602 [details] gcc error Version: 2.4.0 (using KDE 4.7.3) OS: Linux libkvkontakte does not compile against qjson with gcc 4:4.6.1-2ubuntu5 from Ubuntu development version Reproducible: Didn't try Steps to Reproduce: compile extras/libkvkontakte Expected Results: it would compile
It's more likely due to GNU ld (GNU Binutils for Ubuntu) 2.22 which is new in ubuntu development versions (12.04). libkvkontakte does link successfully in 11.10 which uses ld 2.21.53.20110810
The other reason might be that libQJson has been changed to multiarch in ubuntu 12.04 so it installed in /usr/lib/i386-linux-gnu/libqjson.so (etc) rather than /usr/lib/libqjson.so
It successfully links if libqjson is installed to /usr/lib and not /usr/lib/i386-linux-gnu/
If i add ${qjson_LIBRARIES} into extra/libkvkontakte/libkvkontakte/CMakeLists.txt it works fine, for some reason ${QJSON_LIBRARIES} is blank there
Git commit 42b3652322b63fa6e11b426e40351f7138f51292 by Alexander Potashev. Committed on 11/12/2011 at 08:13. Pushed by aspotashev into branch 'master'. Also accept QJson library path passed in ${qjson_LIBRARIES} BUG: 288679 M +1 -0 libkvkontakte/CMakeLists.txt http://commits.kde.org/libkvkontakte/42b3652322b63fa6e11b426e40351f7138f51292
FWIW, this should not be needed anymore. The "qjson" prefix existed only in qjson's git master for a few months, and it was reverted back to "QJSON" a few days ago.