test examples won't run

Forum for posting problems using QxOrm library

test examples won't run

Postby Mirko » Wed Apr 04, 2012 8:28 am

Hi All,
and kudos to the QxOrm developers, as far as I read is really good.

I wanted to use this library so I decided to start with the example.

I compiled boost, then QxOrm, then the examples.

Unfortunately running them I have this error:

"
---------------------------
Executable Failed
---------------------------
An exception was triggered:
Exception at 0x7c97478e, code: 0xc0000135: DLL not found, flags=0x0.
During startup program exited with code 0xc0000135.
---------------------------
OK
---------------------------
"

the _run folder contains all the dll needed (as far as I know, QxOrmd.dll, libboost_serialization-mgw46-mt-d-1_49.dll), and I don't undrstand what the problem is.

Can you help me?

I'm on win xp. Boost 1.49.0 and Mingw32 4.6.2.

Thanks all,
Mirko
Mirko
 

Re: test examples won't run

Postby QxOrm admin » Wed Apr 04, 2012 9:06 am

Hi,

I wanted to use this library so I decided to start with the example.

Very good decision : don't start your own project before all examples from ./test/ directory will run without any problem ;)

Just for information, I don't know if you have seen it, but there is a script to build all (QxOrm library + all examples) using mingw : mingw_build_all_debug.bat into ./tools/ directory (for more details, goto the FAQ : http://www.qxorm.com/qxorm_en/faq.html#faq_30).
Then, all binaries will be inside ./test/_bin/ directory.
Be sure to add your Qt bin directory and boost lib directory to the Path of Windows => to load automatically all exec without copying Qt or boost binaries.

Note : using mingw, I have a problem to load SQL plugins, so I have to copy sqldrivers directory from Qt into ./test/_bin/ to load all examples correctly.
I don't know why (there is no problem with MSVC2008 and MSVC2010), but maybe you have the same problem ?
QxOrm admin
 

Re: test examples won't run

Postby Mirko » Wed Apr 04, 2012 9:27 am

QxOrm admin wrote:Hi,

I wanted to use this library so I decided to start with the example.

Very good decision : don't start your own project before all examples from ./test/ directory will run without any problem ;)

Just for information, I don't know if you have seen it, but there is a script to build all (QxOrm library + all examples) using mingw : mingw_build_all_debug.bat into ./tools/ directory (for more details, goto the FAQ : http://www.qxorm.com/qxorm_en/faq.html#faq_30).
Then, all binaries will be inside ./test/_bin/ directory.
Be sure to add your Qt bin directory and boost lib directory to the Path of Windows => to load automatically all exec without copying Qt or boost binaries.


Done that already.

QxOrm admin wrote:Note : using mingw, I have a problem to load SQL plugins, so I have to copy sqldrivers directory from Qt into ./test/_bin/ to load all examples correctly.
I don't know why (there is no problem with MSVC2008 and MSVC2010), but maybe you have the same problem ?


OK, thanks.
I'll try that and let you know.

Mirko
Mirko
 

Re: test examples won't run

Postby Guest » Wed Apr 04, 2012 9:56 am

Hi,

no. It didn't work.

even adding the files i cannot un the application.

from QTCreator i have this situation:
1) compile as debug
2) run with debug
3) the application loads the dlls (I can see from the messages...)
4) QTcreator spends a lot of time on the message "setting breakpoints..."
5) I get this message:
"---------------------------
Signal received
---------------------------
<p>The inferior stopped because it received a signal from the Operating System.<p><table><tr><td>Signal name : </td><td>?</td></tr><tr><td>Signal meaning : </td><td>Unknown signal</td></tr></table>
---------------------------
OK
---------------------------
"

uhm... I am lost :)
And I really would like to use this library....

Mirko
Guest
 

Re: test examples won't run

Postby Guest » Wed Apr 04, 2012 9:57 am

The application I am testing is qxServer.

Mirko
Guest
 

Re: test examples won't run

Postby QxOrm admin » Wed Apr 04, 2012 12:12 pm

The application I am testing is qxServer.

qxServer[d].exe depends on qxServiceServer[d].dll : you must have this DLL in the same directory as qxServer[d].exe.

You should try those steps :
1- delete your QxOrm directory from your computer ;
2- extract QxOrm package (so you will have a clean directory) ;
3- open QxOrm.pri file and set your boost path and boost serialization lib name : QX_BOOST_INCLUDE_PATH, QX_BOOST_LIB_PATH, QX_BOOST_LIB_SERIALIZATION_DEBUG and QX_BOOST_LIB_SERIALIZATION_RELEASE (goto the FAQ for more details) ;
4- goto ./tools/ directory and execute mingw_build_all_debug.bat script ;
5- wait until the script is finished ;
6- goto ./test/_bin/ directory ;
7- execute qxServer[d].exe.
QxOrm admin
 

Re: test examples won't run

Postby Mirko » Wed Apr 04, 2012 1:40 pm

QxOrm admin wrote:
The application I am testing is qxServer.

qxServer[d].exe depends on qxServiceServer[d].dll : you must have this DLL in the same directory as qxServer[d].exe.

You should try those steps :
1- delete your QxOrm directory from your computer ;
2- extract QxOrm package (so you will have a clean directory) ;
3- open QxOrm.pri file and set your boost path and boost serialization lib name : QX_BOOST_INCLUDE_PATH, QX_BOOST_LIB_PATH, QX_BOOST_LIB_SERIALIZATION_DEBUG and QX_BOOST_LIB_SERIALIZATION_RELEASE (goto the FAQ for more details) ;
4- goto ./tools/ directory and execute mingw_build_all_debug.bat script ;
5- wait until the script is finished ;
6- goto ./test/_bin/ directory ;
7- execute qxServer[d].exe.



I followed your hints but nothing... always the same error...

Mirko
Mirko
 

Re: test examples won't run

Postby QxOrm admin » Wed Apr 04, 2012 2:03 pm

Ok so if you have followed all the previous steps, you must have qxBlogd.exe into your ./test/_bin/ directory.
Do you have the same error executing qxBlogd.exe ?

You can try 2 tools :
- Dependency Walker : http://www.dependencywalker.com/
- DebugView : http://technet.microsoft.com/en-us/sysi ... s/bb896647

Dependency Walker can show you what DLL are not found by your exec.
And DebugView can trace something to help you to debug what's wrong.

Another thing : do you compile Qt yourself ?
Because you are using mingw 4.6.2 and by default Qt is compiled with mingw gcc 4.4 : I don't know if this is the problem and if 4.4 and 4.6.2 are compatible ?
QxOrm admin
 

Re: test examples won't run

Postby Mirko » Wed Apr 04, 2012 2:23 pm

QxOrm admin wrote:Ok so if you have followed all the previous steps, you must have qxBlogd.exe into your ./test/_bin/ directory.
Do you have the same error executing qxBlogd.exe ?

You can try 2 tools :
- Dependency Walker : http://www.dependencywalker.com/
- DebugView : http://technet.microsoft.com/en-us/sysi ... s/bb896647

Dependency Walker can show you what DLL are not found by your exec.
And DebugView can trace something to help you to debug what's wrong.

Another thing : do you compile Qt yourself ?
Because you are using mingw 4.6.2 and by default Qt is compiled with mingw gcc 4.4 : I don't know if this is the problem and if 4.4 and 4.6.2 are compatible ?


Thanks for your help,
I really appreciate.

With Dependency Walker I've got:
Warning: At least one delay-load dependency module was not found. (related to MSJAVA.DLL)
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. (related to MPR.DLL)

I will try to recompile QxOrm using the default QT mingw... anyway, should I rebuild the boost too?

Mirko
Mirko
 

Re: test examples won't run

Postby QxOrm admin » Wed Apr 04, 2012 2:46 pm

I will try to recompile QxOrm using the default QT mingw... anyway, should I rebuild the boost too?

Yes, it's much better if you build everything using the same compiler.

To build boost serialization with BJAM, just use this command :
bjam.exe --build-dir=build --toolset=gcc --with-serialization variant=debug,release link=shared threading=multi runtime-link=shared stage
bjam.exe --build-dir=build --toolset=gcc --with-serialization variant=debug,release link=shared threading=multi runtime-link=shared install


Note : I don't know if you must work with mingw or not, but on Windows, I think that MSVC2008 and MSVC2010 are better.
Anyway, QxOrm is compatible with mingw and your problem is really strange !
QxOrm admin
 

Next

Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 5 guests

cron