Qt error: Cannot find -lQxOrmd

Forum for posting problems using QxOrm library

Qt error: Cannot find -lQxOrmd

Postby mena » Wed Apr 26, 2017 5:58 pm

I am using Qt 5.8,

I followed the tutorial on how to setup Qxorm step by step.
But, when i try to run the qxBlog test project on Qt, i get the following errors:

cannot find -lQxOrmd
error: id returned 1 exit status.



Compilation on qt:

19:54:27: Running steps for project qxBlog...
19:54:27: Configuration unchanged, skipping qmake step.
19:54:27: Starting: "C:\Users\HP\Desktop\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
C:/Users/HP/Desktop/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/HP/Desktop/QxOrm/QxOrm/test/build-qxBlog-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
g++ -Wl,-export-all-symbols -Wl,-enable-auto-import -Wl,-subsystem,windows -mthreads -o ..\..\..\QxOrm\test\_bin\qxBlogd.exe debug/author.o debug/blog.o debug/category.o debug/comment.o debug/main.o -lmingw32 -LC:\Users\HP\Desktop\Qt\5.8\mingw53_32\lib C:\Users\HP\Desktop\Qt\5.8\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -L..\..\..\QxOrm\test\_bin -lQxOrmd C:\Users\HP\Desktop\Qt\5.8\mingw53_32\lib\libQt5Guid.a C:\Users\HP\Desktop\Qt\5.8\mingw53_32\lib\libQt5Sqld.a C:\Users\HP\Desktop\Qt\5.8\mingw53_32\lib\libQt5Cored.a
C:/Users/HP/Desktop/Qt/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQxOrmd
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:78: recipe for target '..\..\..\QxOrm\test\_bin\qxBlogd.exe' failed
mingw32-make[1]: Leaving directory 'C:/Users/HP/Desktop/QxOrm/QxOrm/test/build-qxBlog-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
mingw32-make[1]: *** [..\..\..\QxOrm\test\_bin\qxBlogd.exe] Error 1
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
19:54:42: The process "C:\Users\HP\Desktop\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project qxBlog (kit: Desktop Qt 5.8.0 MinGW 32bit)
When executing step "Make"
19:54:42: Elapsed time: 00:16.

please help.

thanks.
mena
 
Posts: 2
Joined: Wed Apr 26, 2017 5:50 pm

Re: Qt error: Cannot find -lQxOrmd

Postby qxorm » Wed Apr 26, 2017 6:47 pm

Hello,

Your linking step is looking for QxOrm library here : -L..\..\..\QxOrm\test\_bin -lQxOrmd
And I think you only have the binary in the ./QxOrm/lib/ directory.

I have a script for MinGW which copy from ./lib/ dir to ./test/_bin/ dir (true only for samples projects).
This is not great, so it has been improved in current 1.4.4 BETA version, you can download it here : https://www.qxorm.com/version/QxOrm_1.4.4_BETA_21.zip
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Qt error: Cannot find -lQxOrmd

Postby mena » Wed Apr 26, 2017 7:33 pm

Thank u so much for replying,
However, I tried the beta version and the problem is the same.

I checked the lib directory and it is empty in both the 1.4.3 version and the 1.4.4 beta version.
mena
 
Posts: 2
Joined: Wed Apr 26, 2017 5:50 pm

Re: Qt error: Cannot find -lQxOrmd

Postby qxorm » Thu Apr 27, 2017 12:42 pm

Have you built QxOrm yourself before compiling samples projects ?
If yes, then you should have QxOrmd shared library somewhere on your computer.
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron