Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-02-2016, 14:54   #1
Registered User

Join Date: Nov 2015
Posts: 22
Missing cairo.h and expat.h

I've tried building the latest code from git, and get several errors due to missing cairo.h and one about expat.h

Is there something additional I need to have installed ?

I'm building in the same manner that worked successfully for some earlier 4.1.xxx versions (I think the latest I built was 4.1.1108).

I'm sure this is a simple fix...what am I overlooking ?

Thanks in advance,
Chandler
__________________

__________________
dachancellor is offline   Reply With Quote
Old 01-02-2016, 15:59   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Re: Missing cairo.h and expat.h

Check Compiling - Linux | Official OpenCPN Homepage for compile instructions.
The full dependency line for Ubuntu runs
Code:
$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev
You are probably missing the last two entries.

/Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 02-02-2016, 06:22   #3
Registered User

Join Date: Nov 2015
Posts: 22
Re: Missing cairo.h and expat.h

Thanks for the quick response.

I failed to mention that I am compiling on Windows.
Any suggestions for fixing this error on Windows compilation ?

Thanks,
Chandler
__________________
dachancellor is offline   Reply With Quote
Old 02-02-2016, 08:46   #4
Registered User

Join Date: Oct 2014
Posts: 177
Re: Missing cairo.h and expat.h

Chandler,

There was a change in the dependencies bundle near the end of December.

Dave (bdbcat) posted this in the "OpenCPN Beta test 4.1.1108 Release" thread concerning the changes made to support Vector Graphics Format (SVG).

Quote:
bdbcat
29-12-2015, 09:28
Ahoy Beta Builders...

Thanks to a burst effort by Pavel (nohal), we have pushed a significant update to github master.
We now support vector graphics format (SVG) for our toolbar tools and other icons. This gives us much better rendering of icons when scaled, and better images all around.

If you are build OCPN from github source, there are some new build dependencies which must be satisfied.

On all platforms, SVG support can be disabled by -DOCPN_USE_SVG=OFF cmake parameter
On Linux, we try to use GTK2 and if it is not found, look for GTK3. GTK3 dependency can be forced by -DOCPN_FORCE_GTK3=ON

Inclusion of wxSVG adds dependency on Expat and Cairo (and their dependencies like Pixman, LibPNG, Iconv, Fontconfig and LibXML2)

Prerequisities:

OS X:
brew install cairo



Linux:
apt-get install libexpat1-dev libcairo2-dev
or equivalent

Windows:
All the needed files included in the dependencies bundle (As part of the process the openssl dependency was dropped and cURL included to 9.46 + using the same ZLIB as the GTK libraries), the updated bundle is available at
Download opencpnplugins from SourceForge.net (Download opencpnplugins from SourceForge.net)


The vector graphics bundled into the package are placed in
data/svg/<STYLESYSNAME>/


We need some feedback from builders to ensure that we have the dependencies all identified correctly. And, of course, feedback on performance and appearance.

There are some known problems with a few icons which are under review now. Let us know what you see, as well.

Thanks, and good luck building
Dave
For the Windows build you need the new buildwin-svg bundle from SourceForge as noted above. I also found that "git pull" failed to update my copy of the source. My builds were without errors, but the SVG icons did not scale properly until I did a new "git clone".

Paul
__________________
.Paul. is offline   Reply With Quote
Old 02-02-2016, 08:53   #5
Registered User

Join Date: Nov 2015
Posts: 22
Re: Missing cairo.h and expat.h

Thanks Paul.

I'll give this a shot tomorrow.
(I have to do the sourceforge d/l at home, as it is blocked at work).

V/r,
Chandler
__________________
dachancellor is offline   Reply With Quote
Old 03-02-2016, 08:01   #6
Registered User

Join Date: Nov 2015
Posts: 22
Re: Missing cairo.h and expat.h

Paul,

The instructions you provided worked great.
I was able to build with no issues.

Support on this forum is amazing !

Thanks again,
Chandler
__________________

__________________
dachancellor 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SS City of Cairo nigel1 Off Topic Forum 0 09-05-2015 05:20
sail from the Mediterranean Sea up the Niles River to Cairo sveinutne Navigation 23 15-02-2013 09:30
Crew Available: Spanish speaking Canadian ExPat in Riviera Maya KCee Crew Archives 0 21-10-2012 05:34
Expat in Bremen, Germany Lock Meets & Greets 6 28-10-2010 23:03
US Expat Buying Boat in Europe Dockhead Rules of the Road, Regulations & Red Tape 0 05-04-2009 15:46



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.