

$ cmake -DCMAKE_INSTALL_PREFIX=/Users/dsr/tmp. To avoid this, change the install location with 'cmake' as follows: Everything from /usr/local/bin get's packaged into your DMG which is not desirable. The default install location is (/usr/local/bin). To use the “Run” action you need to build the “OpenCPN” target rather than the default “ALL_BUILD” target. Open the `OpenCPN.xcodeproj` file in Xcode, and use the “Build”, “Run”, “Debug”, etc features as normal.


$ mkdir OpenCPN/build & cd OpenCPN/buildīuild Method 1 - From the command line Prepare our build environment:īuild Method 2 - Using Xcode Create the Xcode project: Regardless of which method we choose, the first steps are the same: Get the OpenCPN source:Ĭreate the build directory, where our local builds will take place, so that we don't work directly in the source tree: Officially OpenCPN is built from the command line, but it's also possible to use Apple's Xcode IDE for development.
