cannot find -lqjsonrpc1

60 views
Skip to first unread message

Noureddine BOUBAKER

unread,
Jul 28, 2015, 11:32:46 AM7/28/15
to qjsonrpc-development
Hello,
I tried to run the qjson rpc example under windows 7 with Qt creator 3.4.2(Qt 5.5.0) , , when I compilet this example I got the below message
Could you please help me
Thanks in advance

17:03:42: Exécution des étapes pour le projet qjsonrpc...

17:03:42: Débute : "C:\Qt\5.5\mingw492_32\bin\qmake.exe" C:\Users\\Worspace\qjson-rpc\devonit-qjsonrpc-469db9ed89c8\tests\manual\qjsonrpc\qjsonrpc.pro -r -spec win32-g++ "CONFIG+=debug"

17:03:43: Le processus "C:\Qt\5.5\mingw492_32\bin\qmake.exe" s'est terminé normalement.

17:03:43: Débute : "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe"

C:/Qt/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug

mingw32-make[1]: Entering directory 'C:/Users//Worspace/qjson-rpc/devonit-qjsonrpc-469db9ed89c8/tests/manual/build-qjsonrpc-Desktop_Qt_5_5_0_MinGW_32bit-Debug'

g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQJSONRPC_SHARED -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"C:/Users//Worspace/qjson-rpc/devonit-qjsonrpc-469db9ed89c8/tests/manual/build-qjsonrpc-Desktop_Qt_5_5_0_MinGW_32bit-Debug"' -I../qjsonrpc -I. -I../../../src -I../../../src/json -IC:/Qt/5.5/mingw492_32/include -IC:/Qt/5.5/mingw492_32/include/QtNetwork -IC:/Qt/5.5/mingw492_32/include/QtTest -IC:/Qt/5.5/mingw492_32/include/QtCore -Idebug -IC:/Qt/5.5/mingw492_32/mkspecs/win32-g++ -o debug/qjsonrpc.o ../qjsonrpc/qjsonrpc.cpp

g++ -Wl,-subsystem,console -mthreads -o debug/qjsonrpc.exe debug/qjsonrpc.o -L../../../src -lqjsonrpc1 -LC:/Qt/5.5/mingw492_32/lib -lQt5Networkd -lQt5Testd -lQt5Cored

C:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lqjsonrpc1

collect2.exe: error: ld returned 1 exit status

Makefile.Debug:77: recipe for target 'debug/qjsonrpc.exe' failed

mingw32-make[1]: *** [debug/qjsonrpc.exe] Error 1

mingw32-make[1]: Leaving directory 'C:/Users//Worspace/qjson-rpc/devonit-qjsonrpc-469db9ed89c8/tests/manual/build-qjsonrpc-Desktop_Qt_5_5_0_MinGW_32bit-Debug'

makefile:34: recipe for target 'debug' failed

mingw32-make: *** [debug] Error 2

17:03:47: Le processus "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" s'est terminé avec le code 2.

Erreur lors de la compilation/déploiement du projet qjsonrpc (kit : Desktop Qt 5.5.0 MinGW 32bit)

When executing step "Make"

17:03:47: Temps écoulé : 00:06.

Matt Broadstone

unread,
Jul 28, 2015, 11:44:50 AM7/28/15
to Noureddine BOUBAKER, qjsonrpc-development


On Tuesday, July 28, 2015, Noureddine BOUBAKER <boubaker....@gmail.com> wrote:
Hello,
I tried to run the qjson rpc example under windows 7 with Qt creator 3.4.2(Qt 5.5.0) , , when I compilet this example I got the below message
Could you please help me
Thanks in advance


On Linux the manual examples are LD preloaded for convenience, however this is not possible for windows. In order to run the examples on windows you need to run each of the executables from within a folder that contains the qjsonrpc DLL (you'll probably want to copy both binaries and the library into a single folder and run your tests from there)

Matt
 
--
You received this message because you are subscribed to the Google Groups "qjsonrpc-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qjsonrpc-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages