Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 22-12-2019, 10:01   #1
Registered User

Join Date: Dec 2019
Posts: 24
OpenCPN Compilation Package error on Windows

Hi,
I have followed the steps in the following link to compile OpenCPN on windows
https://opencpn.org/wiki/dokuwiki/do...piling_windows

Everything was perfect, but in the Building OpenCPN
the cmake command " cmake --build . --config release --target package"
gives me error


CPack: Create package using NSIS
CPack: Install projects
EXEC : CPack error : Problem creating temporary directory: C:/Users/priya/source/OpenCPN/build/_CPack_Packages/win32/NS
IS/opencpn_5.0.522_setup/ [C:\Users\priya\source\OpenCPN\build\package.vcxpro j]
EXEC : CPack error : Error when generating package: OpenCPN [C:\Users\priya\source\OpenCPN\build\package.vcxpro j]

Anyone Please help me to figure it out?
__________________

priyanka is offline   Reply With Quote
Old 22-12-2019, 14:12   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,792
Re: OpenCPN Compilation Package error on Windows

priyanka..
I'm not sure but the real problem could be NSIS don't find needed files to copy and not really having problem creating the directory.

So.. Did you copy needed files to create the package?
One tip is to use a bat file mentioned here, but you may have to edit directories in the file. (I use my own so haven't seen that one in details.)
https://opencpn.org/wiki/dokuwiki/do..._step_to_debug

What the bat does is described here if like to do it manually:
https://opencpn.org/wiki/dokuwiki/do...of_setup_files


Håkan
__________________

Hakan is offline   Reply With Quote
Old 22-12-2019, 16:38   #3
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN Compilation Package error on Windows

Hi
Thanks for the reply. I have typed cpack in cmd and it did create install package under the NSIS sub-directory.
Then I run cmake --build . --config release --target package .

And I could see the OpenCPN setup file. I tried to install it but gets an error at the end of installation while I open installed OpenCPN

"The code execution cannot proceed because wxmsw313u_gl_vc_custom.dll was not found. Reinstalling the program may fix the error"
priyanka is offline   Reply With Quote
Old 22-12-2019, 17:27   #4
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: OpenCPN Compilation Package error on Windows

There has been some fiddling with the dependencies I think in the latest master build. Have a look at a log from a recent successful windows build here:

https://ci.appveyor.com/project/bdbc...uilds/29702742

It is using wxWidgets 3.1.2 but yours is built against 3.1.3. That is ok but you need to include the wx 3.1.3 dlls in your package or you need to put the location of the 3.1.3 dlls in your path environment variable. If you want to use the package on another computer you have to do the former.
transmitterdan is offline   Reply With Quote
Old 22-12-2019, 17:29   #5
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,093
Re: OpenCPN Compilation Package error on Windows

Priyanka,

Unless you are planning to make changes to OpenCPN the latest installers for git master builds are always available here:

https://cloudsmith.io/~david-registe...us%3Acompleted

Note that these are "unstable" and not for real work. They are just if you want to see what is in the upcoming release.
transmitterdan is offline   Reply With Quote
Old 24-12-2019, 13:48   #6
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN Compilation Package error on Windows

Hi All,

I could figure it out.I think the problem was with the path variables.

After I set environment variables and path as the following, everything got work well.
set WXWIN=C:\wxWidgets-3.1.2
set wxWidgets_ROOT_DIR=%WXWIN%
set wxWidgets_LIB_DIR=%WXWIN%\lib\vc_dll
SET PATH=%PATH%;%WXWIN%;%wxWidgets_LIB_DIR%;C:\Program Files (x86)\Poedit\Gettexttools\bin;C:\Program Files\Git\bin;c:\MinGw\bin

Thank you guys for helping me.
__________________

priyanka is offline   Reply With Quote
Reply

Tags
enc, opencpn, wind

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Plugin Compilation issue dachancellor OpenCPN 7 10-11-2015 09:11
opencpn windows cmake error ailton OpenCPN 1 09-08-2012 11:08
Compilation error building survey_pi globalkeith OpenCPN 1 20-05-2012 08:01
2.6 beta no compilation for ubuntu 10.04 ?? manuprenlair OpenCPN 3 16-12-2011 13:15
Fedora 13 Compilation Failure . . . PorkLoin OpenCPN 9 20-09-2010 22:38

Advertise Here


All times are GMT -7. The time now is 22:03.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.