Garmin Radar PlugIn for OpenCPN
C++ CMake C Other
Switch branches/tags
Nothing to show
Latest commit 93282fe Jun 10, 2015 @bdbcat Merge pull request #1 from nohal/packaging
Packaging + Localization
Permalink
Failed to load latest commit information.
buildosx/InstallOSX
buildwin
cmake
po
src
CMakeLists.txt
README.md

README.md

gradar_pi - Garmin Radar Plugin for OpenCPN

Downloads

http://opencpn.org/ocpn/downloadplugins

Compiling

  • This plugin now builds out of the OpenCPN source tree
git clone https://github.com/bdbcat/gradar_pi.git

###Build:

mkdir gradar_pi/build
cd gradar_pi/build
cmake ..
cmake --build .

Windows note: You must place opencpn.lib into your build directory to be able to link the plugin DLL. You can get this file from your local OpenCPN build, or alternatively download from http://sourceforge.net/projects/opencpnplugins/files/opencpn_lib/

Debugging: If you check out the plugin source into the plugins subdirectory of your OpenCPN source tree, you can build it as part of it (exactly as with the versions prior to 1.0)

###Creating a package Linux

make package

Windows

cmake --build . --config release --target package

###Build on Mac OS X: Tools: Can be installed either manually or from Homebrew (http://brew.sh)

#brew install git #If I remember well, it is already available on the system
brew install cmake
brew install gettext
ln -s /usr/local/Cellar/gettext/0.19.2/bin/msgmerge /usr/local/bin/msgmerge
ln -s /usr/local/Cellar/gettext/0.19.2/bin/msgfmt /usr/local/bin/msgfmt

To target older OS X versions than the one you are running, you need the respective SDKs installed. The easiest way to achieve that is using https://github.co

####Building wxWidgets (do not use wxmac from Homebrew, it is not compatible with OpenCPN) Get wxWidgets 3.0.x source from http://wxwidgets.org Configure, build and install

cd wxWidgets-3.0.2
./configure --enable-unicode --with-osx-cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7
make
sudo make install

####Building the plugin Before running cmake, you must set the deployment target to OS X 10.7 to be compatible with the libraries used by core OpenCPN

export MACOSX_DEPLOYMENT_TARGET=10.7

####Packaging on OS X Get and install the Packages application from http://s.sudre.free.fr/Software/Packages/about.html

make create-pkg

License

The plugin code is licensed under the terms of the GPL v2.