Cruisers & Sailing Forums (http://www.cruisersforum.com/forums/)
-   OpenCPN (http://www.cruisersforum.com/forums/f134/)
-   -   Installation Issue with Ubuntu 11.04 (http://www.cruisersforum.com/forums/f134/installation-issue-with-ubuntu-11-04-a-59723.html)

claire 28-04-2011 14:11

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?

nohal 28-04-2011 22:42

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

claire 29-04-2011 03:12

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!

sailias 01-05-2011 13:49

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

cagney 01-05-2011 14:07

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.

sailias 01-05-2011 18:53

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

balp 01-05-2011 22:54

Re: Installation Issue with Ubuntu 11.04
 
Quote:

Originally Posted by sailias (Post 678307)
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.

cagney 02-05-2011 08:43

Re: Installation Issue with Ubuntu 11.04
 
Quote:

Originally Posted by sailias (Post 678482)
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

sailias 02-05-2011 10:54

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 02-05-2011 11:39

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

balp 02-05-2011 12:08

Re: Installation Issue with Ubuntu 11.04
 
Quote:

Originally Posted by sailias (Post 678914)
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


sailias 02-05-2011 12:20

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

cagney 02-05-2011 13:00

Re: Installation Issue with Ubuntu 11.04
 
Not unexpected:whistling:
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!:D
Beta testing is not always easy.

Thomas

sailias 02-05-2011 13:07

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

balp 02-05-2011 13:08

Re: Installation Issue with Ubuntu 11.04
 
Quote:

Originally Posted by cagney (Post 678960)
Not unexpected:whistling:
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!:D
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...


All times are GMT -7. The time now is 12:11.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.