The attached trivial patch for Mac OS X adds a make rule for installing the 
Garmin drivers into the QLandkarte GT bundle.  As a result, the bundle could 
now be deployed as a ready-to-use executable on Mac OS X.

Furthermore, it marks the GPSMap60CSx "route upload" as tested for BE machines.

Best, Albrecht.
Index: INSTALL
===================================================================
--- INSTALL	(Revision 1852)
+++ INSTALL	(Arbeitskopie)
@@ -34,3 +34,21 @@ As user you might want to do a
     sudo make install
 
 to copy all stuff into your system. 
+
+
+Installation on Mac OS X
+------------------------
+
+On Mac OS X, you probably want to include the Garmin drivers in the bundle
+where QLandkarteGT searches for them.  To this end, when running ccmake be sure
+to set the variable QLANDKARTEGT_BUILD_DIR to the folder where you built
+QLandkarteGT.  The default is "../build_QLandkarteGT", assuming that you use an
+out-of-source build environment as suggested in the QLandkarteGT instructions.
+
+Then, after running make, simply say
+
+	make mac-deploy
+	
+which will copy all drivers to the bundle.
+
+You should not use "make install" on Mac OS X.
Index: src/GPSMap60CSx/CDevice.cpp
===================================================================
--- src/GPSMap60CSx/CDevice.cpp	(Revision 1852)
+++ src/GPSMap60CSx/CDevice.cpp	(Arbeitskopie)
@@ -945,7 +945,6 @@ void CDevice::_downloadRoutes(std::list<Garmin::Ro
 void CDevice::_uploadRoutes(list<Garmin::Route_t>& routes)
 {
     if(usb == 0) return;
-    UNTESTED;
 
     if(devid == 0x0231) return IDeviceDefault::_uploadRoutes(routes);
 
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(Revision 1852)
+++ CMakeLists.txt	(Arbeitskopie)
@@ -45,6 +45,15 @@ include_directories(
 
 if(APPLE)
   set(SHARED_LIB_EXT ".dylib")
+  set(QLANDKARTEGT_BUILD_DIR "../build_QLandkarteGT"
+  	  CACHE PATH "location of the QLandkarteGT build folder")
+  add_custom_target(mac-deploy
+  	COMMAND
+  	  rm -rf "${QLANDKARTEGT_BUILD_DIR}/bin/QLandkarte\ GT.app/Contents/Resources/Drivers" &&
+  	  mkdir -p "${QLANDKARTEGT_BUILD_DIR}/bin/QLandkarte\ GT.app/Contents/Resources/Drivers" &&
+  	  tar -cpf - --exclude '*.a' -C ${LIBRARY_OUTPUT_PATH} . |
+  	  tar -xpf - -C "${QLANDKARTEGT_BUILD_DIR}/bin/QLandkarte\ GT.app/Contents/Resources/Drivers"
+  )
 elseif(UNIX)
   set(SHARED_LIB_EXT ".so")
 endif (APPLE)

Attachment: pgpafr0VobgP3.pgp
Description: PGP signature

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
QLandkarte-users mailing list
QLandkarte-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkarte-users

Reply via email to