Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-06-2011, 21:29   #1
Registered User

Join Date: May 2011
Posts: 10
Compiling OpenCPN - Error when trying to start

I compiled OpenCPN per the "Compiling for Windows" page on the Opencpn site. The compiled opencpn.exe will run fine on the computer I use to compile it. If I copy the exe to any other computer I get a error box (in win7) that says "The application has failed to start because its side-by-side configuration is incorrect". Am I compiling incorrectly?
__________________

__________________
X7JAY7X is offline   Reply With Quote
Old 17-06-2011, 00:25   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Compiling OpenCPN - Error when trying to start

Hi,
did you previously have OpenCPN installed and running on that other computer? If not, read Crash on first start-up: 2.3.1 and 606 (Vista) - your problem looks like MSVC redistributable related.

Good luck

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 17-06-2011, 04:57   #3
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

I tried it on a win7 computer that previously had OpenCPN installed. I also tried it on a WinXP machine that did not have opencpn on it before. I am getting the same error in winxp but I belive it is just worded a bit different. It said there was a configuration error when I click on the opencpn.exe in winxp.

Thanks
__________________
X7JAY7X is offline   Reply With Quote
Old 17-06-2011, 05:03   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Compiling OpenCPN - Error when trying to start

Same stuff - MSVC redistributable related. Did you try to install vc_redist.exe manually?

Pavel
__________________
nohal is offline   Reply With Quote
Old 17-06-2011, 07:06   #5
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

But why would it do this on a computer that previously had and official build of OpenCPN installed?
__________________
X7JAY7X is offline   Reply With Quote
Old 17-06-2011, 08:57   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Compiling OpenCPN - Error when trying to start

You are not specific about the version that was previously installed - if it was reasonably recent and worked and you are just replacing opencpn.exe you should definitely not see these errors - at least if you also compile against redistributable 2008sp1...
But as your info is not very exact, all I can suggest is the obvious, which we've learned during the time. Until now every time we've seen these errors, they were related to MSVC redistributable. Sometimes to insufficient user rights to install it properly, sometimes to antivirus software used. Always impossible to reproduce by any of the developers.

Pavel
__________________
nohal is offline   Reply With Quote
Old 17-06-2011, 11:02   #7
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

I installed OpenCPN 2.4 beta v612. I compiled that same version. I first just replaced the OpenCPN.exe and I got this error. I then deleted the Official Build (as found in the v612 thread) and used my compiled installer and I still get this error.
__________________
X7JAY7X is offline   Reply With Quote
Old 17-06-2011, 20:44   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: Compiling OpenCPN - Error when trying to start

X7.....

How about this: on a fresh compile of 612, in the VS2008 IDE, can you build and run the "opencpn" (Release or Debug) target from within the IDE? That is, do not build or run the "package" target....

This should use the dlls built-in to the VS2008 system.

Also, in "ControlPanel->Add/Remove Programs", what versions of VC runtime are installed? Before and after the opencpn installer.....

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 17-06-2011, 23:00   #9
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

Quote:
How about this: on a fresh compile of 612, in the VS2008 IDE, can you build and run the "opencpn" (Release or Debug) target from within the IDE? That is, do not build or run the "package" target....

This should use the dlls built-in to the VS2008 system.
Yes i can run the debug and release targets.


Quote:
Also, in "ControlPanel->Add/Remove Programs", what versions of VC runtime are installed? Before and after the opencpn installer.....
On my WinXp Machine I have VC Redist 2008 x86 9.0.30729.17. This was the first install of OpenCPN on this machine. There was no VC runtime on this machine before I used my compiled installer.

On my Win7 64bit machine I have VB Redist 2008 x86 9.0.30729.17, .4974, .6161, .5570. This machine had the official beta release of .612 on it before.

Thanks
Jason
__________________
X7JAY7X is offline   Reply With Quote
Old 17-06-2011, 23:23   #10
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

I got it to run but now it is looking for "wxbase28_net_vc_custom.dll" instead of "wxbase28u_net_vc_custom.dll" that the installer installs. It errors on all the dll's because it is looking for dll's with the "u" in them.
__________________
X7JAY7X is offline   Reply With Quote
Old 18-06-2011, 00:32   #11
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Re: Compiling OpenCPN - Error when trying to start

Quote:
Originally Posted by X7JAY7X View Post
It errors on all the dll's because it is looking for dll's with the "u" in them.
You have to use the Unicode version of the wxWidget library.
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
Netsurfer is offline   Reply With Quote
Old 18-06-2011, 23:07   #12
Registered User

Join Date: May 2011
Posts: 10
Re: Compiling OpenCPN - Error when trying to start

When I compile the package it packages the Unicode wxWidget library. I can see unicode dll's when I use this package to install on another computer. The opencpn.exe is still looking for the non-unicode wxwidgets and errors out because it cannot find them. How do I compile opencpn to use the unicode wxwidget dll's?
__________________
X7JAY7X is offline   Reply With Quote
Old 19-06-2011, 01:57   #13
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Compiling OpenCPN - Error when trying to start

The easiest way is to remove the non-unicode wxwidgets dlls against which you compile. Another option is to run cmake-gui and modify the appropriate values (Check Advanced and scroll down to WX_* stuff, there's a lot of it). Of course make sure you actually have the unicode dlls - you should if you followed the build instructions. The dlls that are packaged to the installer are part of the git repository and are not used for compilation.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Fails to Start Samarang OpenCPN 22 30-04-2011 01:51
Make - Problems (Compiling) schotenandi OpenCPN 2 10-10-2010 18:57
OpenCPN S52 Display Principle Error epilot10 OpenCPN 3 01-10-2010 01:26
Compiling on Fedora 12 teejayevans OpenCPN 29 01-04-2010 01:34
Compiling OpenCPN on Fedora 12 inSaNo OpenCPN 9 08-12-2009 05:09



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 01:10.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.