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 08-06-2012, 04:55   #1
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
make package from a fresh compile: about files right??

Hello all,

I made a package after compiling OpenCPN source code and I had files right problem when I deploy the .deb on my target...

(I compile it and make a package on a virtualbox target but deploy on a hardware target running Lubuntu 10.04)

In fact on my target I must be root to launch OpenCPN...

What is need to do to deal with files right?
I mean to be able to build a .deb that evrybody could install.
manuprenlair is offline   Reply With Quote
Old 08-06-2012, 05:06   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: make package from a fresh compile: about files right??

Emmanuel...
You must be root to install any deb package - it writes to /usr, which is -w for normal users, but you don't need to be root to run what's installed there. If it's not the case, something went wrong when you created the package. Upload your package somewhere so we can have a look then.

Pavel
nohal is online now   Reply With Quote
Old 08-06-2012, 07:00   #3
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: make package from a fresh compile: about files right??

Pavel,

Of course I know that you must be root to install a .deb package.

In fact, I didn't explain well my problem.

In my lubuntu with the package I made (with 3.0.0 source and
$ sudo make package ) I havent any link to opencpn create in my launch menu.

So I need to go in /usr/local/share/applications to lauch OCPN.
and of course I need to be root to do that.

So finally the title of this thread would be: How to customize the package to create a link in the launch menu of lubuntu ... sorry

Thanks Pavel

(I am a poor software maker )
manuprenlair is offline   Reply With Quote
Old 08-06-2012, 07:44   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: make package from a fresh compile: about files right??

And I'm no LXDE user, so excuse my ignorance here Could you point me to some instructions to make a shortcut in LXDE? That process will have to be somehow incorporated into the package build.

Pavel
nohal is online now   Reply With Quote
Old 08-06-2012, 08:19   #5
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: make package from a fresh compile: about files right??

May not be related but
Quote:
$ sudo make package
you don't need to be root to create a package so
Quote:
$ make package
should work.

BTW, you should use /usr prefix when you create a package
Quote:
cmake -DPREFIX=/usr ../
If you create a link in /usr/share/applications can you see it in the launch menu? (if yes, then the above PREFIX=/usr wil do the job)

Jean-Eudes
SethDart is offline   Reply With Quote
Old 08-06-2012, 23:15   #6
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: make package from a fresh compile: about files right??

hey Pavel, the ignorant here, it's me, so don't take my job !

humm I will test what SethDart talk about.

If I well remembered when I installed an old package made by OpenCPN team for Ubuntu 10.04, it made a link in the LXDE start menu "Educational -> OpenCPN"

Well I need to learn on how "link in start menu" are build with "make package"...

I will do that this weekend, if somebody know, evry help is welcome!

Emmanuel

Quote:
Originally Posted by nohal View Post
And I'm no LXDE user, so excuse my ignorance here Could you point me to some instructions to make a shortcut in LXDE? That process will have to be somehow incorporated into the package build.

Pavel
manuprenlair is offline   Reply With Quote
Old 08-06-2012, 23:31   #7
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: make package from a fresh compile: about files right??

OK, so after a quick search, to creat a new menu item in LXDE:

The application menu works by resolving the .desktop files located in /usr/share/applications (from https://wiki.archlinux.org/index.php/LXDE).

So, I think its same as in KDE and Gnome.
Well so I didn't understand why when I make the package its not modify .desktop to add the link to OCPN.

Well, I need to install the package in my Ubuntu 11.10 to look if a menu item is build.
manuprenlair is offline   Reply With Quote
Old 09-06-2012, 16:20   #8
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: make package from a fresh compile: about files right??

Emmanuel,

You are right. OpenCPN appears under Educational in the menu. If you did not use cmake -DPREFIX=/usr ../ the menu incorrectly registers opencpn as /usr/bin/opencpn. Without the cmake -DPREFIX=/usr ../, the executable is actually installed in /usr/local/bin/opencpn. It would be a rare exception for a program compiled from source to install in /usr/bin. However, most if not all "packaged" programs (.deb/.rpm) install their executables in /usr/bin. I resolved the issue by creating a desktop shortcut to /usr/local/bin/opencpn.

Could not find a way to edit the menu... Would love to know how if you find an answer.

armido
armido is offline   Reply With Quote
Old 11-06-2012, 22:44   #9
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: make package from a fresh compile: about files right??

Hello all,

I made some test yesterday and I confirm what I thinking, my problem is a right file problem.
Nothing to do with cmake -DPREFIX=/usr ../
So I will start another thread more precise about this problem.

Emmanuel
manuprenlair is offline   Reply With Quote
Reply


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


Advertise Here


All times are GMT -7. The time now is 05:22.


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.