It is currently Sat Aug 22, 2020 12:25 pm


All times are UTC




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 0xc0150002 problem:BasicExample unable to start correctly
PostPosted: Fri Sep 10, 2010 5:49 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
With Win 7, VC++2010, in debug mode,I built PolyVox from sources. every thing goes ok including build and link process. When I run the basic example.exe file, following error accurs:
Attachment:
problem.png
problem.png [ 77.29 KiB | Viewed 6131 times ]

How to solve it? please help.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Fri Sep 10, 2010 7:48 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
If you set a break point at the start of your main() funtion in 'examples/basic/main.cpp' does it hit it? I'm assuming that it doesn't, that it crashes before it even gets this far.

I think this error is usually caused by missing .dll files. The basic example is dependant on both PolyVox and Qt so it will need to be able to find these dlls at runtime. Are the Qt dlls in your system path? You could try copying the Qt dlls into the same solder as the executable. Make sure the PolyVox dlls are in there as well. And what if you run the executable from explorer rather than VS2010?

If you still have problems, you might want to check out Depenancy Walker to identify which dlls are missing. You can post the results here if you can't make sense of them.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Fri Sep 10, 2010 9:02 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
Below seems to be the problem:
Attachment:
problem.png
problem.png [ 77.12 KiB | Viewed 6125 times ]

Why does those dlls missing?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Fri Sep 10, 2010 9:09 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
After finding these dlls, here are still problems:
Attachment:
problem.png
problem.png [ 68.18 KiB | Viewed 6125 times ]

I totally confused. when I run the same .exe in my another laptop which is windows XP OS, It works fine. But in the OS of Win7, the problem can not be solved.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Fri Sep 10, 2010 9:18 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
the texts below seems to be the vital problems:
Error: The Side-by-Side configuration information for "e:\qt-4.5.3\bin\QTTESTD4.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001).
Error: The Side-by-Side configuration information for "e:\qt-4.5.3\bin\QTCORED4.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001).
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.


How to solve?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Fri Sep 10, 2010 10:09 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I can't write much because i'm at work, but it looks like the problem is with Qt. Also, I *think* that msvcp90d.dll is from an earlier version of visual studio? Did you used to have VS2008 installed, and maybe you used it to build Qt?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Sat Sep 11, 2010 2:57 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
yes, I used to have VS2008 installed and build Qt, then I have my OS updated to Win7 and installed the VS2010. How to solve it without rebuild or reinstall the Qt?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Sat Sep 11, 2010 9:28 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ok, I'm not an expert on VS2010/VS2008 and compatibility issues but I'll give my ideas. Have you written other software with Qt before? If so it would be worth trying to compile your existing software with VS2010 in order to test whether that really is the problem.

If the problem is compatibility with VS2010, and if you intend to use VS2010 for most of your development in the future, then I guess it makes sense just to rebuild Qt for your new compiler.

On the other hand, if you still like to use VS2008 for some existing projects then this might not be a good idea. An alternative it to try building PolyVox and the examples with VS2008 instead. The only problem with this is that VS2008 does not provide the 'shared_ptr' class, and so you will need to install part of Boost in order to get this. The Boost installer will let you pick just the part that you need as getting the whole thing is massive.

When you run CMake on PolyVox you can tell it which compiler to use. I *think* the command will be:

Code:
cmake -G "Visual Studio 9 2008" ..


I should warn you that I don't really test with VS2008 so I can't be certain it will work. You will also need a recent version of PolyVox as I only added the VS2008 support a couple of weeks ago.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Sat Sep 11, 2010 2:41 pm 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
Thank you very much, David. It seems that to recompile Qt in VS2010 may comsume a lot of time and a little bit complicated. As for Qt is not my point, I finally decided to only focus on the PolyVox part and omit Qt part. Thank you your generous answer.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: 0xc0150002 problem:BasicExample unable to start correctl
PostPosted: Sat Sep 11, 2010 3:54 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Yes, that is also possible of course as Qt is only used for the examples. But do let me know if you have any more questions.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net