Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 28-04-2011, 15: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, 23:42   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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 online now   Reply With Quote
Old 29-04-2011, 04: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, 14:49   #4
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 15:07   #5
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
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, 19:53   #6
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 23:54   #7
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
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, 09:43   #8
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
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, 11:54   #9
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 12:39   #10
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 13:08   #11
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
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, 13:20   #12
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 14:00   #13
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,248
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, 14:07   #14
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 333
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, 14:08   #15
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
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

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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:09.


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.