I have successfully compiled OpenCPN
4.99.0 Build 2018-02-10 on Fedora 28.
Struggling with the information provided at:
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:
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:
-- 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.
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:
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:
git clone git://github.com/OpenCPN/OpenCPN.git
git pull //# Unless you've just cloned.//
cd OpenCPN //# unless already in this directory.//
sudo make install
That should be it!