Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-04-2011, 14:11   #1
Registered User

Join Date: Oct 2005
Posts: 120
Question Installation Issue with Ubuntu 11.04

The installation seemed to go smoothly, but the application is nowhere to be found, opencpn log and config files are empty, and ubuntu syslog indicates:

christian-EasyNote-TK83 AptDaemon.Worker: INFO: Installing local package file: /media/KINGSTON/New Folder/opencpn_2.3.1-1_i386.deb
Apr 28 22:44:48 christian-EasyNote-TK83 AptDaemon.Worker: WARNING: An additional step to open the cache is required
Apr 28 22:44:52 christian-EasyNote-TK83 AptDaemon.Worker: INFO: Finished transaction /org/debian/apt/transaction/de42418154ba416c9c0400feb61925af

Any suggestion?
__________________
claire
claire is offline   Reply With Quote
Old 28-04-2011, 22:42   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Installation Issue with Ubuntu 11.04

claire,
are you using the new Unity desktop environment in Ubuntu 11.04? Is so, Add new applications to Ubuntu Netbook Launcher could be a guide for you as the things changed a lot.

Pavel
nohal is offline   Reply With Quote
Old 29-04-2011, 03:12   #3
Registered User

Join Date: Oct 2005
Posts: 120
Re: Installation Issue with Ubuntu 11.04

Pavel,

Thanks for the reply, I'll check it out.
I solved my problem by finally getting a configuration of 3G modem working on Ubuntu and downloading opencpn directly i.s.o. getting it from a usb flash. After a re-install, opencpn was working fine.
Any advice to get my second 3G modem and or my second Egyptian operator working on ubuntu? I have 2 different modems with 2 different sim cards working perfectly with windows, but only one combinaition working with ubuntu: very frustrating!
__________________
claire
claire is offline   Reply With Quote
Old 01-05-2011, 13:49   #4
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

Some issues with compiling on 11.04
-------------------------------------------------------
[ 7%] Building CXX object CMakeFiles/NMEA0183.dir/src/nmea.cpp.o
In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:25,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from /home/chris123/opencpn/opencpn/include/dychart.h:239,
from /home/chris123/opencpn/opencpn/src/nmea.cpp:50:
/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/NMEA0183.dir/src/nmea.cpp.o] Error 1
make[1]: *** [CMakeFiles/NMEA0183.dir/all] Error 2
make: *** [all] Error 2

chris123@segrund:~/opencpn/opencpn$ locate glibconfig
/usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h

------------------------------------------------------

so what is glibconfig.h doing in /usr/lib/i386-gnu....and how do I give cmake this variable to look for it. Upgraded from 10.10 to 11.04 last night. Are there better solutions to this. Anyone else seen this?

Best regards and thanks
sailias is offline   Reply With Quote
Old 01-05-2011, 14:07   #5
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Installation Issue with Ubuntu 11.04

It looks like you have libglib2.0-dev installed.
As the trace includes a lot of gtk/gdk directories, why not try this this fix to some compilation problems I had with Kubuntu 11.04.

Thomas
PS. I see that your problems occur at the exact same place in the compilation as my problem did.
cagney is offline   Reply With Quote
Old 01-05-2011, 18:53   #6
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

Thanks Thomas, looked at the instruction but not sure where the line change is to be added as its not defined, (for us non coders..:_) Reading the bug report seems this is going to be an issue till cmake or Ubuntu make changes, probably Ubuntu, so perhaps an instruction for dummies would be very helpful.

Best and thanks

/ch
sailias is offline   Reply With Quote
Old 01-05-2011, 22:54   #7
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: Installation Issue with Ubuntu 11.04

Quote:
Originally Posted by sailias View Post
Some issues with compiling on 11.04
-------------------------------------------------------

make[2]: *** [CMakeFiles/NMEA0183.dir/src/nmea.cpp.o] Error 1
make[1]: *** [CMakeFiles/NMEA0183.dir/all] Error 2
make: *** [all] Error 2

chris123@segrund:~/opencpn/opencpn$ locate glibconfig
/usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h

------------------------------------------------------

so what is glibconfig.h doing in /usr/lib/i386-gnu....and how do I give cmake this variable to look for it. Upgraded from 10.10 to 11.04 last night. Are there better solutions to this. Anyone else seen this?

Best regards and thanks
Cmake in 11.04 is a bit broken at the menent have problem with gtk stuff, at least.

Lanhcu pad bug, https://bugs.launchpad.net/ubuntu/+s...ke/+bug/751940

And CMake bug.

0012037: support multiarch lib paths for Debian/Ubuntu - MantisBT

There is a temp patch one can add by hand, but i suggest waiting if one don't know much about Ubuntu and CMake.
balp is offline   Reply With Quote
Old 02-05-2011, 08:43   #8
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Installation Issue with Ubuntu 11.04

Quote:
Originally Posted by sailias View Post
Thanks Thomas, looked at the instruction but not sure where the line change is to be added as its not defined, (for us non coders..:_) Reading the bug report seems this is going to be an issue till cmake or Ubuntu make changes, probably Ubuntu, so perhaps an instruction for dummies would be very helpful.

Best and thanks

/ch
In the file CMakeLists.txt add this line (copy and paste) between lines 84 and 85.
Code:
ADD_DEFINITIONS("`pkg-config --cflags --libs gtk+-2.0`")
Save. Do a "make clean" in the build directory and delete the "CMakeCache.txt" file, then recompile, make & sudo make install.

Thomas
cagney is offline   Reply With Quote
Old 02-05-2011, 10:54   #9
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

Simple. Works like a charm. Almost done compiling and it looks to be fine. Perhaps someone may want to highlight that instruction as many will want that info till Ubuntu cleans up their act.

Many thanks Thomas.

/ch
sailias is offline   Reply With Quote
Old 02-05-2011, 11:39   #10
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

OK....it seems I spoke to soon. The same error occurs for libfreetype as its also been relocated.
-------------------------------------------------------------
/home/chris123/opencpn/opencpn/src/gpxdocument.cpp: In static member function ‘static int GpxDocument::GetRandomNumber(int, int)’:
/home/chris123/opencpn/opencpn/src/gpxdocument.cpp:131:52: warning: integer overflow in expression
[ 58%] Building CXX object CMakeFiles/opencpn.dir/src/scrollingdialog.cpp.o
make[2]: *** No rule to make target `/usr/lib/libfreetype.so', needed by `opencpn'. Stop.
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make: *** [all] Error 2
chris123@segrund:~/opencpn/opencpn$ locate libfreetype.so
/usr/lib/i386-linux-gnu/libfreetype.so
/usr/lib/i386-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6.6.2
----------------------------------------------

Best regards

/ch
Ubuntu 11.04 stock
sailias is offline   Reply With Quote
Old 02-05-2011, 12:08   #11
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: Installation Issue with Ubuntu 11.04

Quote:
Originally Posted by sailias View Post
OK....it seems I spoke to soon. The same error occurs for libfreetype as its also been relocated.
Code:
sudo apt-get install libfreetype6-dev
I don't have the full list of need libraries in my head.

Code:
balp@silvara:~/src/opencpn/github/OpenCPN/build_11.04$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Building opencpn 2.4.423 ***
-- Found wxWidgets: TRUE 
-- 
-- *** Building PlugIns ***
-- 
-- *** Building dashboard_pi ***
-- *** Building grib_pi ***
-- 
-- *** Building opencpn  ***
-- Found Freetype: /usr/lib/i386-linux-gnu/libfreetype.so 
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so 
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- GPSD Library support: enabled
-- Found gps: /usr/lib/libgps.so
-- Building with libgps includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/balp/src/opencpn/github/OpenCPN/build_11.04
balp is offline   Reply With Quote
Old 02-05-2011, 12:20   #12
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

The needed libraries are installed. Pilot error as I did not remove the CMakeCache.txt file as instructed.

It build to completion without error this time. So the patch works to compile it.

However now that its build...I get a segfault when I launch opencpn
-------------------------
chris123@segrund:~/opencpn/opencpn$ opencpn
*** buffer overflow detected ***: opencpn terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x50)[0xbacdf0]
/lib/i386-linux-gnu/libc.so.6(+0xe4cca)[0xbabcca]
/lib/i386-linux-gnu/libc.so.6(__strcpy_chk+0x3f)[0xbab05f]
opencpn(_ZN8MyConfig12LoadMyConfigEi+0x67d0)[0x8153950]
opencpn(_ZN5MyApp6OnInitEv+0x1e22)[0x80cead2]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x78)[0x186c68]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPc+0x37)[0x186d27]
opencpn(main+0x1b)[0x80b346b]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xadde37]
opencpn[0x80ae2b1]
-------------------------------

Not seen this before. Clueless...

/ch
sailias is offline   Reply With Quote
Old 02-05-2011, 13:00   #13
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Installation Issue with Ubuntu 11.04

Not unexpected
That's repeating my experience! What probably happens is that the 11.04 compiler rearranges things in a way that reveals a real bug that passed unnoticed before. Dave has come up with a fix. Will be in the next beta.
To test if it is the same thing, kill opencpn, delete opencpn.conf, chartlist.dat and the CM93 directory in your $home/.opencpn/ directory. Then restart. You will be asked for charts. Just pick raster charts and all will be OK. Then pick any kind of vector charts (S57 or CM93) and an instant crash will occur.

Now it's time to install 2.4.423 from opencpn.org and then wait for the next beta!
Beta testing is not always easy.

Thomas
cagney is offline   Reply With Quote
Old 02-05-2011, 13:07   #14
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Installation Issue with Ubuntu 11.04

Non issue...its fun. 32 bit system Thomas. Thanks for the updates and information. Good to know.

/ch
sailias is offline   Reply With Quote
Old 02-05-2011, 13:08   #15
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: Installation Issue with Ubuntu 11.04

Quote:
Originally Posted by cagney View Post
Not unexpected
You will be asked for charts. Just pick raster charts and all will be OK. Then pick any kind of vector charts (S57 or CM93) and an instant crash will occur.

Now it's time to install 2.4.423 from opencpn.org and then wait for the next beta!
Beta testing is not always easy.

Thomas
I think i got the S57 charts working, but any CM93 killes it, but iu not actually zommed into them yet....


Ok, did test, S57 kills it as well...
balp is offline   Reply With Quote
Reply

Tags
installation


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
AIS installation- Open CPN and Ubuntu Tia Bu OpenCPN 11 25-04-2011 16:49
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 12:16
Windows - Ubuntu Ray Perry OpenCPN 16 08-12-2010 21:10
WiFi Antenna Installation Issue Zydeco Marine Electronics 30 12-08-2010 17:13
Inverter Installation Issue michaelmrc Electrical: Batteries, Generators & Solar 12 23-03-2009 19:01

Advertise Here


All times are GMT -7. The time now is 15:35.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.