Cruisers Forum
 


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 29-01-2014, 16:39   #1
Registered User

Join Date: May 2010
Posts: 86
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, 16:43   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
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, 18:28   #3
Registered User

Join Date: May 2010
Posts: 86
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, 18:34   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
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, 20:48   #5
Registered User

Join Date: May 2010
Posts: 86
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, 05:48   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
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, 12:27   #7
Registered User

Join Date: May 2010
Posts: 86
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


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 00:26.


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.