Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 29-01-2014, 17:39   #1
Registered User

Join Date: May 2010
Posts: 81
cmake problem

Hello,

Trying to get my hands dirty on the source code. I ran into a couple of problems:

1. The vdr plugin is not recognized by cmake. Where is the list of plug-ins defined for cmake?
2. This is probably related: I deleted the dashboard plugin directory and cmake now fails.

I did a git pull, so should have the latest source files from today.

Using armhf architecture (oDroid U3).

Cheers, ....Erik.
m/v B.C. Girl.
__________________

__________________
ve7mdl is offline   Reply With Quote
Old 29-01-2014, 17:43   #2
Registered User

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

Quote:
Originally Posted by ve7mdl View Post
Hello,

Trying to get my hands dirty on the source code. I ran into a couple of problems:

1. The vdr plugin is not recognized by cmake. Where is the list of plug-ins defined for cmake?
There is no list, the plugins subdirectory of your source tree is scanned for subdirs ending in _pi
So if you don't have vdr's source in vdr_pi subdir there, it can't be found.
Quote:
2. This is probably related: I deleted the dashboard plugin directory and cmake now fails.

I did a git pull, so should have the latest source files from today.

Using armhf architecture (oDroid U3).

Cheers, ....Erik.
m/v B.C. Girl.
Fails saying what exactly?

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 29-01-2014, 19:28   #3
Registered User

Join Date: May 2010
Posts: 81
Re: cmake problem

Hi Pavel,

Thanks for your response. First problem solved. The plugin directory name ends in '-master', so I'll change it. The second problem show up as:

In file included from /home/odroid/OpenCPN/include/pluginmanager.h:44:0,
from /home/odroid/OpenCPN/include/options.h:37,
from /home/odroid/OpenCPN/src/chart1.cpp:76:
/home/odroid/OpenCPN/include/s57chart.h:38:25: fatal error: ogrsf_frmts.h: No such file or directory
#include <ogrsf_frmts.h>
^
compilation terminated.

Cheers, ....Erik.
__________________
ve7mdl is offline   Reply With Quote
Old 29-01-2014, 19:34   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: cmake problem

ve7....

Focus on the error message, and you may really understand the problem.

Code:
fatal error: ogrsf_frmts.h: No such file or directory
1. Look for ogrsf_frmts.h in your build tree.
2. Set cmake to produce verbose build files, and check the include paths.

Also, I do not recommend adding anything to the plugins directory until the base OCPN builds, installs, and runs correctly. Start simple.

Good luck
Dave
__________________
bdbcat is offline   Reply With Quote
Old 29-01-2014, 21:48   #5
Registered User

Join Date: May 2010
Posts: 81
Re: cmake problem

Hi Dave,

Thanks for the reply.

It looks like the compiler ignores everything in ..../src/mygdal. I'm new to this (well, actually wrote my last program in 'C' in 1982), so I'm not familiar with the tools. How do I get the compiler to pick up that source directory?

Cheers, ....Erik.
__________________
ve7mdl is offline   Reply With Quote
Old 30-01-2014, 06:48   #6
Registered User

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

Erik...
I've actually never seen a problem like this, but after you make changes to the source tree, make sure you also run
Code:
cmake ..
again to regenerate the makefiles.
And if you don't have any own code there and are just playing, just delete it and do a fresh checkout from git. It will save you time hunting for a problem that possibly does not exist at all...

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

Join Date: May 2010
Posts: 81
Re: cmake problem

Hi Pavel,

Thanks for the suggestion. I reloaded the code and it compiles fine now.

Cheers, ....Erik.
Near Vancouver, where it is raining at the moment.
__________________

__________________
ve7mdl 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 10:37.


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.