Can't build QxORM

Forum for posting problems using QxOrm library

Can't build QxORM

Postby andoresu » Tue Sep 10, 2013 4:38 pm

I'm trying to build QxORM on openSUSE 12.3, but I can't. When i do "make debug" it says:

Code: Select all
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: no se puede encontrar -lboost_serialization-mt-d
collect2: error: ld returned 1 exit status
make[1]: *** [lib/libQxOrmd.so.1.2.5] Error 1
make[1]: se sale del directorio `/home/andres/Escritorio/QxOrm'
make: *** [debug] Error 2


how can I fix it?
andoresu
 
Posts: 5
Joined: Tue Sep 10, 2013 4:14 pm

Re: Can't build QxORM

Postby qxorm » Wed Sep 11, 2013 2:51 pm

Hi,

no se puede encontrar -lboost_serialization-mt-d

You don't have boost serialization installed (or it is built with another name ? if yes, please modify QxOrm.pri file).
You must install Qt and boost before working with QxOrm library...
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Can't build QxORM

Postby andoresu » Wed Sep 11, 2013 6:19 pm

Boost (dev packages) were actually installed. I finally solved it modifying the pri file. For openSUSE it seems the name is "boost_serialization" instead of "boost_serialization-mt-d".

Now, I cannot build any QxORM project (from the examples, on the "test" directory). When I try to build it, on Qt Creator or from the command line, it says:

Code: Select all
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: no se puede encontrar -lQxOrmd
collect2: error: ld returned 1 exit status
make[1]: *** [../../../QxOrm/test/_bin/qxBlogd] Error 1
make[1]: se sale del directorio `/home/andres/QxOrm_copia/test/qxBlog'
make: *** [debug] Error 2



What can I do?
andoresu
 
Posts: 5
Joined: Tue Sep 10, 2013 4:14 pm

Re: Can't build QxORM

Postby qxorm » Thu Sep 12, 2013 8:17 am

Already the same error :
no se puede encontrar -lQxOrmd
==> this is a problem with your shared libraries !

When you build QxOrm library, you execute :
1- qmake (to generate make files) ;
2- make debug (or make release to build QxOrm library) ;
3- make install (to install shared library in the directory /usr/local/) ==> you can do this step manually if you want.

I think you don't execute step 3-, could you check it please ?
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Can't build QxORM

Postby andoresu » Thu Sep 12, 2013 4:53 pm

I followed these instructions, but i didn't see any "make install" instruction.

http://qxorm.com/qxorm_en/faq.html#faq_30

I'm going to test if it works.
andoresu
 
Posts: 5
Joined: Tue Sep 10, 2013 4:14 pm

Re: Can't build QxORM

Postby andoresu » Fri Sep 13, 2013 2:47 am

I made "sudo make install". I opened QxBlog project from pro file on Qt Creator, but it still is telling me QxORM is not present.
:-1: error: cannot find -lQxOrmd
:-1: error: collect2: error: ld returned 1 exit status


There is no information about how to build it from command line.

I tried with the "Hello world" example project, but is not well described, it doesn't say what does "export.h" must content, or if its pro file must add something, neither it says how to build it.

Do you know how to do it or where I can get this information? I'm really in a hurry, it's been three days since I started to looking to use this ORM, and I'm still into trouble with it.

I'll be grateful if you can help me. Thank you very much. Sorry for my bad english.
andoresu
 
Posts: 5
Joined: Tue Sep 10, 2013 4:14 pm

Re: Can't build QxORM

Postby qxorm » Fri Sep 13, 2013 7:27 am

Since the beginning of this topic, you only have 1 problem and this is not a QxOrm library issue : you just don't understand how shared libraries (*.so files) work on Linux (OpenSuse).
So I strongly recommend this : you should try to understand how shared libraries work (try to search "LD_LIBRARY_PATH" on google or ask on a linux forum...).

I followed these instructions, but i didn't see any "make install" instruction.

On the FAQ, it's written : gcc_build_all_debug.sh and gcc_build_all_release.sh scripts in the directory ./tools/ can quickly built QxOrm library and all tests with GCC compiler on Linux.
Have you tried to run this script ?

I made "sudo make install". I opened QxBlog project from pro file on Qt Creator, but it still is telling me QxORM is not present.

Maybe OpenSuse puts its shared libraries in another directory (I don't know OpenSuse) : this is why you should learn about *.so files...

Sorry for my bad english.

Don't worry about that, my english is not perfect too :)
If you speak french, you can go to this french QxOrm forum : http://www.developpez.net/forums/f1563/c-cpp/bibliotheques/qt/outils/bibliotheques/qxorm/
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am

Re: Can't build QxORM

Postby andoresu » Fri Sep 13, 2013 8:19 pm

Ok, thank you for your help. And Happy Programmers' day.
andoresu
 
Posts: 5
Joined: Tue Sep 10, 2013 4:14 pm


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 9 guests