Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Rasbats <miker@members.swis.net>
  • Loading branch information
Rasbats committed Dec 7, 2017
1 parent 8383af5 commit 0d6856f
Show file tree
Hide file tree
Showing 77 changed files with 53,723 additions and 0 deletions.
75 changes: 75 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,75 @@
##---------------------------------------------------------------------------
## Author: Mike Rossiter with massive help from Sean D'Epagnier
## Copyright:
## License: GPLv3
##---------------------------------------------------------------------------

# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)

PROJECT(PhotoLayer_pi)
SET(PACKAGE_NAME PhotoLayer_pi)
SET(VERBOSE_NAME PhotoLayer)
SET(TITLE_NAME PhotoLayer)
SET(CPACK_PACKAGE_CONTACT "Mike Rossiter")

SET(VERSION_MAJOR "0")
SET(VERSION_MINOR "1")

IF (MSVC)
INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/include/msvc)
ENDIF (MSVC)

INCLUDE("cmake/PluginConfigure.cmake")

SET(SRC_PHOTOLAYER
src/PhotoLayer_pi.cpp
src/PhotoLayer_pi.h
src/PhotoLayer.cpp
src/PhotoLayer.h
src/PhotoLayerUI.cpp
src/PhotoLayerUI.h
src/PhotoLayerImage.cpp
src/PhotoLayerImage.h
src/AboutDialog.cpp
src/AboutDialog.h
src/icons.cpp
src/icons.h
src/wximgkap.cpp
src/wximgkap.h
)




IF(UNIX)
INCLUDE("cmake/FindTinyXML.cmake")
FIND_PACKAGE(TinyXML QUIET)
ENDIF(UNIX)

IF(TINYXML_FOUND)
message (STATUS "Building with system tinyxml")
INCLUDE_DIRECTORIES(${TINYXML_INCLUDE_DIR})
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_PhotoLayer})
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} ${TINYXML_LIBRARIES})
ELSE(TINYXML_FOUND)
message (STATUS "Building with embedded tinyxml")
INCLUDE_DIRECTORIES(src/tinyxml/)
SET(SRC_LTINYXML
src/tinyxml/tinyxml.cpp
src/tinyxml/tinyxmlparser.cpp
src/tinyxml/tinyxmlerror.cpp
)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_PHOTOLAYER} ${SRC_LTINYXML})
ENDIF(TINYXML_FOUND)
ADD_DEFINITIONS(-DTIXML_USE_STL)



ADD_DEFINITIONS(-DTIXML_USE_STL)


INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")

43 changes: 43 additions & 0 deletions README
@@ -0,0 +1,43 @@
Weather Fax Plugin for OpenCPN
=======================================
Implement weather fax ability for opencpn. This includes retrieval via sound card (radio fax) as well as the internet, or local image files.

Compiling
=========


* git clone git://github.com/seandepagnier/weatherfax_pi.git


Build as normally:

* cd ..
* cd build
* cmake .. # To produce a binary compatible with Windows XP, you must set the respective toolset - use 'cmake -T v120_xp ..'
* make
* make install

Windows Specific Libraries
==========================
The Windows compilation is dependent on these files

Under windows, you must find the file "opencpn.lib" (Visual Studio) or "libopencpn.dll.a" (mingw) which is built in the build directory after compiling opencpn. This file must be copied to the plugin directory.

There are also some libraries and an external program needed:
http://sourceforge.net/projects/opencpnplugins/files/opencpn_packaging_data/portaudio-vc12.7z/download
http://sourceforge.net/projects/opencpnplugins/files/opencpn_packaging_data/PVW32Con.exe/download (not an archive, this one just copy to buildwin)
and unpack all these files into the buildwin directory as the compile is dependent on these.

OSX Specific Libraries
==========================
The OS X compilation is dependent on these files

Under OS X the port audio library is needed. Install it using ```brew install portaudio```
There is a zip file containing header and library files:
http://sourceforge.net/projects/opencpnplugins/files/weatherfax_pi/OSXportaudiofiles.zip/download
Download this file and unzip it in the /usr/local directory as the compile is dependent on these.
The make create-pkg command will include the library in the package.

License
=======
The plugin code is licensed under the terms of the GPL v3+
4 changes: 4 additions & 0 deletions VERSION.cmake
@@ -0,0 +1,4 @@
SET(PLUGIN_VERSION_MAJOR "1")
SET(PLUGIN_VERSION_MINOR "7")
SET(PLUGIN_VERSION_PATCH "001")
SET(PLUGIN_VERSION_DATE "2017-05-14")
2,227 changes: 2,227 additions & 0 deletions WeatherFax.fbp

Large diffs are not rendered by default.

Binary file added buildosx/InstallOSX/pkg_background.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0d6856f

Please sign in to comment.