Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-01-2014, 04:01   #1
Registered User

Join Date: May 2013
Posts: 38
Run problem after compilation

Hello,

First, I wish you all an Happy New Year !

I need to add a "close button" on the control panel of openCPN because I use it on a little screen and the cross on the corner of the window is really small and not practical.

So I donwloaded the source code, I compiled it well (no errors, no warnings) but when I run it I've got this error

Code:
Failed to initialize the user interface. OpenCPN cannot start. The necessary configuration files were not found. See the log file at /home/franck/opencpn.log for details.
I used to do this few month ago and I didn't have any problem.. I've yo got a clue ?


I use Ubuntu 12.04.03 32bits

Thanks,
Franck
__________________

__________________
zodd is offline   Reply With Quote
Old 09-01-2014, 05:38   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Run problem after compilation

Look for the log file and read the end for clues. Any further questions also post the log file here, the initial file would also help.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________

__________________
rgleason is online now   Reply With Quote
Old 09-01-2014, 05:39   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,331
Re: Run problem after compilation

Opencpn.ini file too.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is online now   Reply With Quote
Old 09-01-2014, 07:00   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Run problem after compilation

Franck...
Your problem is what the message says - the UI data files can't be found. You have two options:
The easy one
Code:
sudo make install
or the harder one, good if you want to debug deeper: copy the needed files into your build directory.

Pavel
__________________
nohal is offline   Reply With Quote
Old 09-01-2014, 10:18   #5
Registered User

Join Date: May 2013
Posts: 38
Re: Run problem after compilation

Thanks for your answer.

It works in terminal but I don't understand why I don't mangage to make it run from code::Blocks.

Anyway^^, If I want to compile it, it's to add a little feature for a tactile screen PC: a close button on the toolbar buttons. Do you think it would be possible to add it (maybe in option..) ?
__________________
zodd is offline   Reply With Quote
Old 09-01-2014, 10:38   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Run problem after compilation

What does CodeBlocks say? Or is it behaving differently when you run the binary in the build dir (as "./opencpn" , not just "opencpn", which would launch the one somewhere in your path, most likely /usr/bin)? When you run your locally built binary, the behaviour should be exactly the same as running it from CB.

Pavel
__________________
nohal is offline   Reply With Quote
Old 09-01-2014, 15:27   #7
Registered User

Join Date: May 2013
Posts: 38
Re: Run problem after compilation

well, that's the problem, if I do this :

Code:
cd ~/Documents/opencpn/build
./opencpn
it works.. but it doesn't un CB... but it compile well (0 errors, 0 warnings) ... It's the first time I have this issue..
__________________

__________________
zodd is offline   Reply With Quote
Reply

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.