Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-08-2014, 07:02   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

In the opencpn-mingw/buildwin directory there are lots of files related to NSIS all of type 2.46.3 including "nsis-2.46-Unicode-setup.exe"

What do I do about that? Those were part of the git pull!

I am going to try changing the compression type..much simpler. Just change project.nsi line.
__________________

__________________
rgleason is offline   Reply With Quote
Old 08-08-2014, 07:17   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Ok,
I found out that if I right click on project.nsi I can select the type of comression etc.
Ran a couple with zlib and failed. Then I went in and edited the file and just ran it.
Took off the /Final and ran LZMA

Got this error:
ClearErrors
FileOpen: $TEMP\opencpn_hdd_full_scan.tmp as r -> $R0
IfErrors ?done1:
!insertmacro: _Do
!insertmacro: end of _Do
Error: FileReadUTF16LE is only available when building a Unicode installer
Error in script "C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS\project.nsi " on line 1909 -- aborting creation process

--So it is looking for itself and I have it open or something?
__________________

__________________
rgleason is offline   Reply With Quote
Old 08-08-2014, 07:29   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Ok from right click project.nsi tried Bzip2 without Unicode
Error: FileReadUTF16LE is only available when building a Unicode installer
Error in script "C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS\project.nsi " on line 1909 -- aborting creation process

====
Then tried right click on project.nsi pick Bzip2 with Unicode got this error
SetCompressor: /FINAL bzip2
Processing config:
!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS"

Processing script file: "C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS\project.nsi "
warning: SetCompressor ignored due to previous call with the /FINAL switch (C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS\project.nsi :34)
Invalid command: Unicode
Error in script "C:\Data-Dart\Up-Soft\Navigation\opencpn-mingw\build\_CPack_Packages\win32\NSIS\project.nsi " on line 36 -- aborting creation process
__________________
rgleason is offline   Reply With Quote
Old 08-08-2014, 07:49   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Change project.nsi compression to Bzip2 with unicode. Then

8. Compile Installer
9. cmake -G "MSYS Makefiles" ..
10. make
11. make package
12. output now says:

CPack Error:
Problem running NSIS command:
"C:/Program Files (x86)/NSIS/Unicode.makensis.exe"
"C:/data-dart/.../opencpn-mingw/build/_Cpack_Packages/win32/NSIS/NSISoutput.log for errors.
CPack Error: Problem compressing directory.
CPack Error: Error when gnerating package: Opencpn
make: *** [package] Error 1

NSISoutput.log
Processing script file: "C:/Data-Dart/Up-Soft/Navigation/opencpn-mingw/build/_CPack_Packages/win32/NSIS/project.nsi"

SetCompressor: /FINAL lzma

Invalid command: Unicode

Error in script "C:/Data-Dart/Up-Soft/Navigation/opencpn-mingw/build/_CPack_Packages/win32/NSIS/project.nsi" on line 36 -- aborting creation process

So somehow in compiling the compression type was reset again to LZMA

--Later - It appears that "make install" is changing it back to LZMA with unicode.
__________________
rgleason is offline   Reply With Quote
Old 08-08-2014, 08:20   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

REMOVED NSIS 2.46.33
REMOVED NSIS 3.0b
REINSTALLED NSIS 3.0b in NSIS directory
Reran
8. Compile Installer
9. cmake -G "MSYS Makefiles" ..
10. make
11. make package
12. output now says:

CPack - Package: C:/Data-Dart/...opencpn_3.3.1911_setup.exe generated.

WAPINTA

Dare I try it? Should I upload it?
__________________
rgleason is offline   Reply With Quote
Old 08-08-2014, 19:47   #21
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Thanks Sean for the advice to load nsis 3.0b you were right.
__________________
rgleason is offline   Reply With Quote
Old 09-08-2014, 03:18   #22
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,804
Re: Building Opencpn using mingw (gcc) on Windows

Quote:
Originally Posted by rgleason View Post
Thanks Sean for the advice to load nsis 3.0b you were right.
It would be interesting to compare the size of this installer to the official installer.

I tried to use llvm to compile opencpn, and it compiles and links with a small change, but when running crashes, no idea why.
__________________
boat_alexandra is offline   Reply With Quote
Old 09-08-2014, 06:49   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

mingw (gcc) - opencpn_3.3.1911_setup.exe 31,538 kb
msvc++ - opencpn_3.3.1931_setup.exe 35,997 kb

I've installed to C:/MinGW with mingw-get-setup.exe
and can compile using the msys.bat file, but there is no exe for MinGW or graphical interface and I get lost in the install documentation. Is there anything more than msys.bat?


I do like the messages better with mingw, but still getting familiar.
Is there a way to copy and paste pathnames into msys? That would be helpful.
Also how do you highlight and copy parts of the output of msys?
I use these all the time with msvcc command line.

The msys.bat file is pretty big.

Also How do you do a back trace as in MSVCC graphical?
Is there a graphical interface?
--Maybe I should try debug mode and see?

I suppose this is "minimal" so some of these things aren't available?
__________________
rgleason is offline   Reply With Quote
Old 09-08-2014, 07:13   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

I find the Install Notes very muddy, unclear, and uncrisp with too many conditionals.

Computer > Right Click > Properties > Advanced System Settings > Environment Variables
Have now set these additional paths:

;C:\MinGW\bin;C:\MinGW\MSYS\1.0\local\bin;C:\MinGW \MSYS\1.0\bin

Following Getting Started | MinGW
See the "Environment Settings" (at bottom)

Now what exactly IS it that they want me to do with STartup? ---Why don't they just install it for heavens sake? --They need to use NSIS I think!
__________________
rgleason is offline   Reply With Quote
Old 09-08-2014, 07:24   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

MinGW for First Time Users HOWTO | MinGW

HOWTO Specify the Location of Libraries for use with MinGW | MinGW
__________________
rgleason is offline   Reply With Quote
Old 09-08-2014, 07:45   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Installed the NSIS Install file after deleting my MSVC Opencpn v3.3.1911 and the MinGW (gcc) NSIS install went into a new Opencpn 3.3.1911 directory very nicely.

It RUNS! along with Grib and Dash. Is there a way to update this current to 1931 or do I run it this way? --I suppose I should be testing the beta when I am using Opencpn however!
__________________
rgleason is offline   Reply With Quote
Old 11-08-2014, 10:38   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Building Opencpn using mingw (gcc) on Windows

Rick wrote about the MinGW notes on the MinGW website Getting Started
Getting Started | MinGW
Quote:
I find the Install Notes very muddy, unclear, and uncrisp with too many conditionals.
I was not refering to the Opencpn MinGW install notes.

I have made some changes and (hopefully) some improvements and clarifications to the Opencpn MinGW compile page that Sean created here:
Compiling Windows MinGW | Official OpenCPN Homepage


__________________
rgleason is offline   Reply With Quote
Old 16-11-2014, 14:13   #28
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,023
Re: Building Opencpn using mingw (gcc) on Windows

Just trying to compile OpenCPN for now. Used the instructions at aforementioned web page. All seemed to go well as far as installing MinGW and other tools. But making OpenCPN hits early error (see below). Any idea what I missed?

$ make
[ 4%] Built target GARMINHOST
[ 12%] Built target NMEA0183
[ 12%] Building CXX object CMakeFiles/S57ENC.dir/src/s57chart.cpp.obj
In file included from C:/MinGW/msys/1.0/home/Dan/opencpn/OpenCPN/include/pluginmanager.h:41:0,
from c:/MinGW/msys/1.0/home/Dan/opencpn/OpenCPN/src/s57chart.cpp:57:
C:/MinGW/msys/1.0/home/Dan/opencpn/OpenCPN/include/datastream.h:226:25: error: field 'm_mrq' has incomplete type
struct ip_mreq m_mrq; // mreq rather than mreqn for windows

make[2]: *** [CMakeFiles/S57ENC.dir/src/s57chart.cpp.obj] Error 1
make[1]: *** [CMakeFiles/S57ENC.dir/all] Error 2
make: *** [all] Error 2
__________________
transmitterdan is offline   Reply With Quote
Old 05-04-2015, 18:23   #29
Opu
Registered User

Join Date: Apr 2015
Posts: 8
Re: Building Opencpn using mingw (gcc) on Windows

I'm trying to compile OpenCPN 4.0 using MinGW/gcc. The 'make' step fails with an error message: 'DISPLAY_DEVICE_ACTIVE' was not in this scope. The failure occurs when compiling chart1.cpp. I haven't been able to locate the identifier in either source or include files.

Does anyone have a suggestion?
________________
Dick
Frustrated
__________________
Opu is offline   Reply With Quote
Old 05-04-2015, 22:05   #30
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Building Opencpn using mingw (gcc) on Windows

Greg...
It is used in chart1.cpp and according to https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx should be defined in wingdi.h, but looking at the MinGW sources it isn't. Try to replace it with DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
Still wondering what is this effort good for...

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Reply

Tags
wind, opencpn, enc

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
How to share your Wi-Fi signal using a single card, under Windows 7 or 8 nigelmercier Marine Electronics 0 24-11-2013 03:45
Wood That Won't Warp For Building Entire Kitchen Counter, and Advice On Building Hatc albergsailor Monohull Sailboats 30 25-09-2012 10:15
Display Differences - Like More Info - Using Linux vs Windows? sdowney717 OpenCPN 2 13-01-2012 12:17
Building OpenCPN on a MacBook Pro NickA OpenCPN 55 23-09-2010 12:39
Raytech RNS and Windows 7 and Windows XP kene66 Marine Electronics 2 23-02-2010 15:50



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 02:16.


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.