Page 1 of 2

QxOrm compilation

PostPosted: Wed Jun 09, 2010 3:32 pm
by Ilya Zhigalko
Hello. I dont speak french, and my english is very bad, but i have a question.
QxOrm wont compile in debian unstable with boost 1.42.
Error:
src/QxSingleton/QxSingletonX.cpp: In static member function ‘static void qx::QxSingletonX::deleteAllSingleton()’:
src/QxSingleton/QxSingletonX.cpp:78: error: ‘_foreach_col78’ was not declared in this scope
src/QxSingleton/QxSingletonX.cpp:78: error: ‘_foreach_cur78’ was not declared in this scope
src/QxSingleton/QxSingletonX.cpp:78: error: ‘_foreach_end78’ was not declared in this scope
src/QxSingleton/QxSingletonX.cpp:78: warning: unused variable ‘_foreach_end’
src/QxSingleton/QxSingletonX.cpp:78: warning: unused variable ‘_foreach_col’

Re: QxOrm compilation

PostPosted: Fri Jun 11, 2010 10:09 am
by QxOrm admin
Hello,

Another user has been the same error due to Qt installation (after reinstalling Qt, there is no problem to compile QxOrm).
What is your Qt version ?

Thank you for testing our library.

QxOrm

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 6:24 am
by Paul
Hi, have the same problem.
Using ubuntu linux 10.04, QT is set up from repositories...

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 6:32 am
by QxOrm admin
Ok I will try to reproduce your problem.

What is your Ubuntu version ?
What is your Qt version ?
What is your boost version ?
What is your gcc version ?

For information, I compile QxOrm whitout problem on Ubuntu 9.XXX, Qt 4.5.2, boost 1.38 and gcc 4.4.1.
Maybe the problem came from gcc or an option of gcc (???).

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 6:36 am
by Paul
QxOrm admin wrote:Ok I will try to reproduce your problem.

What is your Ubuntu version ?
What is your Qt version ?
What is your boost version ?
What is your gcc version ?

For information, I compile QxOrm whitout problem on Ubuntu 9.XXX, Qt 4.5.2, boost 1.38 and gcc 4.4.1.
Maybe the problem came from gcc or an option of gcc (???).

What is your Ubuntu version ?

Ubuntu 10.04
What is your Qt version ?
What is your boost version ?
What is your gcc version ?

Where i can find versions of these ones?

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 6:38 am
by Paul
QxOrm admin wrote:What is your gcc version ?

4.4.3

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 6:49 am
by Paul
QxOrm admin wrote:What is your Qt version ?

qt 4.6.2

Sorry, i have no any idea, how to find boost version

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 7:43 pm
by QxOrm admin
Goto file :
./usr/include/boost/version.hpp

This file contains the boost version.

This is maybe your compilation problem because QxOrm uses BOOST_FOREACH macro.

You need to install at least boost version 1.38 to use QxOrm.

Re: QxOrm compilation

PostPosted: Mon Jun 28, 2010 8:33 pm
by Paul
QxOrm admin wrote:./usr/include/boost/version.hpp.


#define BOOST_LIB_VERSION "1_40"

Re: QxOrm compilation

PostPosted: Thu Jul 08, 2010 8:07 pm
by greg
I'm in the same boat.
Using Qt 4.6.2, boost 1.43.0 & gcc 4.3.4