Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-02-2016, 06:36   #1
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Compiling Linux

In the online manual for compiling from source Linux Compiling - Linux | Official OpenCPN Homepage is is stated:

Code:
$ cd opencpn $ git pull
However, the created directory when you do a GIT clone will be
OpenCPN and not opencpn. Linux is case sensitive so the
instructions should be changed to:
Code:
  $ cd OpenCPN 
$ git pull
The same also applies for the build instructions on the same side.
__________________

__________________
petter5 is offline   Reply With Quote
Old 05-02-2016, 07:59   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
Re: Compiling Linux

Fixed!
Thanks!

/Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 05-02-2016, 08:26   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Compiling Linux

Thomas fixed it in the manual. ..Thanks T.
__________________
rgleason is offline   Reply With Quote
Old 07-02-2016, 13:10   #4
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Compiling Linux

Oboy! a thread to lay out my gibberish! but seriously, since latest git, I git this:

Quote:
/usr/include/wx-3.0/wx/containr.h: In instantiation of ‘void wxNavigationEnabled<W>::SetFocus() [with W = wxTopLevelWindow]’:
/home/gormin/OpenCPN/src/garmin/jeeps/garmin_wrapper.cpp:367:1: required from here
/usr/include/wx-3.0/wx/containr.h:247:39: error: ‘SetFocus’ is not a member of ‘wxNavigationEnabled<wxTopLevelWindow>::BaseWindow Class {aka wxTopLevelWindow}’
BaseWindowClass::SetFocus();
^
make[2]: *** [CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/garmin_wrapper.cpp.o] Error 1
make[2]: Leaving directory `/home/gormin/OpenCPN/build'
make[1]: *** [CMakeFiles/GARMINHOST.dir/all] Error 2
make[1]: Leaving directory `/home/gormin/OpenCPN/build'
make: *** [all] Error 2
thar's plenty more where this came from but "jeeps/garminwrapper" seems to be the rock it is repeatedly swept onto? what is "Error 1?" or Error 2?

Path exists but "garmin_wrapper.cpp.o" does not.
I do have a "garmin_wrapper_utils.c"

linux Mint "Cinnamon "x64.
__________________
HappySeagull is offline   Reply With Quote
Old 14-02-2016, 04:38   #5
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: Compiling Linux

When compiling on ubuntu 14.04 using the instructions Compiling - Linux | Official OpenCPN Homepage , The compiling succeeds and after "make install" I can start opencpn normally, but it seems that the installed version miss the possibility to change the language from interfacing/language settings. Only US English is available in the language drop down.

The system I'm compiling on has Norwegian language settings as default.
__________________
petter5 is offline   Reply With Quote
Old 14-02-2016, 05:08   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Compiling Linux

Should User Manual be more explicit re opengl improvements and languages? What changes additions needed.
__________________
rgleason is offline   Reply With Quote
Old 14-02-2016, 05:24   #7
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: Compiling Linux

Quote:
Originally Posted by rgleason View Post
Should User Manual be more explicit re opengl improvements and languages? What changes additions needed.
It would be useful if the compiling instructions included steps so that the install package produced during compilation has the ability to change language in the user interface, today this is not the case, has tried on two different pc's with Norwegian language installed. The resulting opencpn installation has only US English available in the language menu.
__________________
petter5 is offline   Reply With Quote
Old 14-02-2016, 05:24   #8
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
Re: Compiling Linux

Quote:
Originally Posted by petter5 View Post
When compiling on ubuntu 14.04 using the instructions Compiling - Linux | Official OpenCPN Homepage , The compiling succeeds and after "make install" I can start opencpn normally, but it seems that the installed version miss the possibility to change the language from interfacing/language settings. Only US English is available in the language drop down.

The system I'm compiling on has Norwegian language settings as default.
You have to make sure that you have the relevant language packages installed.
Linux is different from Win when it comes to handling languages. This is not an OpenCPN issue.
If you read your "opencpn.log" I'm sure that O complains about lack of languages. I think that O only lists those languages that are supported.
Use Synaptic (sudo apt-get install synaptic) to search for your Norwegian language packages.

I think that this is an issue only with users new to Linux that don't use Linux except for running OpenCPN. If you had installed and used Linux, based on Norwegian instructions from a Magazine or user-group, language in O would not be a problem.


I compile my own Linux version as well. Here is part of my language choices

Click image for larger version

Name:	N430.png
Views:	59
Size:	49.4 KB
ID:	118906


/Thomas
__________________
cagney is offline   Reply With Quote
Old 14-02-2016, 05:44   #9
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: Compiling Linux

Quote:
Originally Posted by cagney View Post
You have to make sure that you have the relevant language packages installed.
Linux is different from Win when it comes to handling languages. This is not an OpenCPN issue.
If you read your "opencpn.log" I'm sure that O complains about lack of languages. I think that O only lists those languages that are supported.
Use Synaptic (sudo apt-get install synaptic) to search for your Norwegian language packages.

I think that this is an issue only with users new to Linux that don't use Linux except for running OpenCPN. If you had installed and used Linux, based on Norwegian instructions from a Magazine or user-group, language in O would not be a problem.


I compile my own Linux version as well. Here is part of my language choices

Attachment 118906


/Thomas
My system default language is nb_NO.

From Opencpnlog:
System default Language: nb_NO
Opencpn language set to: en_US
The only option in the language menu opencpn is US English - no other options is displayed. --- Yes something is obviously not correct, I'm just trying to track down what,,,
__________________
petter5 is offline   Reply With Quote
Old 14-02-2016, 07:37   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Compiling Linux

Once linux is installed following the instructions, is there a set of commands to add languages?
And then pick the language?
__________________
rgleason is offline   Reply With Quote
Old 14-02-2016, 07:37   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
Re: Compiling Linux

We could then add those to the instructions.
__________________
rgleason is offline   Reply With Quote
Old 14-02-2016, 07:48   #12
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: Compiling Linux

Quote:
Originally Posted by rgleason View Post
We could then add those to the instructions.
It seems some path differences between installation from PPA and compiled from source and installed with make install.

Installed from PPA: /user/lib/opencpn (checker on another pc running unbuntu 14.04 installed from PPA - language working fine.
Installed from local compile: /usr/local/lib/opencpn ( compiled on another ubuntu 14.04 - language not working.
__________________
petter5 is offline   Reply With Quote
Old 14-02-2016, 08:13   #13
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: Compiling Linux

Quote:
Originally Posted by petter5 View Post
It seems some path differences between installation from PPA and compiled from source and installed with make install.

Installed from PPA: /user/lib/opencpn (checker on another pc running unbuntu 14.04 installed from PPA - language working fine.
Installed from local compile: /usr/local/lib/opencpn ( compiled on another ubuntu 14.04 - language not working.
In the CmakeLists.txt there is a line stating:
SET(TENTATIVE_PREFIX "/usr/local")

Might the difference be hare ?? If removing "local" the compiled version should end up in same directory structure as if installed from PPA ??
__________________
petter5 is offline   Reply With Quote
Old 14-02-2016, 10:29   #14
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Compiling Linux

Folks...

This is normal behaviour, by design. If you want local builds to behave exactly the same as PPA installs, try:

Code:
$cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$make
$make install
Dave
__________________

__________________
bdbcat is online now   Reply With Quote
Reply

Tags
linux

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
Linux cross compiling for windows failing jongough OpenCPN 42 29-11-2014 20:09
Compiling OCPN on Scientific Linux 6.4 64bit HotRod OpenCPN 6 23-05-2013 07:51
Make - Problems (Compiling) schotenandi OpenCPN 2 10-10-2010 18:57
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 21:56.


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.