Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 10-07-2018, 02:34   #1
Registered User

Join Date: Nov 2013
Location: Sweden
Boat: Kelsal 39
Posts: 12
Images: 4
Send a message via Skype™ to kai.weeks
Compiling on Fedora Linux

Hi,


I have successfully compiled OpenCPN 4.99.0 Build 2018-02-10 on Fedora 28.



Struggling with the information provided at:
https://opencpn.org/wiki/dokuwiki/do...llation:fedora

I have also been struggling with the repos kindly hosted and provided at: Index of /repo/fedora


So I thought I'd give some details on what I did to get it working here on the forums. I use 'dnf' as my package manager on Fedora.


The following is definitely required:

Code:
sudo dnf install git cmake gcc-c++ mesa-libGLU-devel gtk3-devel wxGTK3-devel libcurl-devel sqlite-devel
If running cmake (as instructed at the bottom of this post) at this point then cmake will mention missing libraries:
Code:
-- Portaudio Not Found...
-- Could NOT find TinyXML (missing: TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
-- Could NOT find LibArchive (missing: LibArchive_LIBRARY LibArchive_INCLUDE_DIR)
--  Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY  LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER  LIBLZMA_HAS_LZMA_PRESET) 
-- Could NOT find EXIF (missing: EXIF_LIBRARY EXIF_INCLUDE_DIR) (found version "")
--  Some or all of the gtk libraries were not found. (missing:  GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR GTK2_GDK_INCLUDE_DIR  GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY)
They are to be found in these following packages. Note that OpenCPN compiles without them but they are probably required for some program functionality.

Code:
sudo dnf install portaudio-devel libexif-devel lzma-devel tinyxml-devel libarchive-devel
Finally some other packages have been recommended to be installed for OpenCPN but I see no mention of them when compiling:
Code:
sudo dnf install rpm-build libstdc++-devel gtk2-devel wxGTK-devel mesa-libGL-devel gettext bzip2-devel
So, anyway, once you are happy that the dependencies are all installed then it's just to do the following:


Code:
git clone git://github.com/OpenCPN/OpenCPN.git

cd OpenCPN
git pull //# Unless you've just cloned.//

cd OpenCPN   //# unless already in this directory.//
mkdir build
cd build
cmake ../
make

sudo make install
That should be it!
kai.weeks is offline   Reply With Quote
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
compile error Linux Fedora Rawhide Lucodealethea OpenCPN 5 09-05-2016 17:00
Linux cross compiling for windows failing jongough OpenCPN 42 29-11-2014 19:09
Compiling OCPN on Scientific Linux 6.4 64bit HotRod OpenCPN 6 23-05-2013 06:51
Compiling on Fedora 12 teejayevans OpenCPN 29 01-04-2010 00:34
Compiling OpenCPN on Fedora 12 inSaNo OpenCPN 9 08-12-2009 04:09



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 07:51.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.