Hi Thomas,

Am Mittwoch, 23. November 2016 18:28:28 UTC+1 schrieb T. Modes:
>
> Hi Niklas,
>
> Am Dienstag, 22. November 2016 21:30:05 UTC+1 schrieb Niklas Mischkulnig:
>>
>>
>>> Build scripts for Mac OS. Here needs the Mac builder to express their 
>>> opinion if they they still need them.
>>>
>>>
>> Not needed anymore. The whole mac/ folder except for ExternalPrograms could 
>> be deprecated, since cmake can now create the bundled apps and there don't 
>> seem to be any issues.
>>
>> Thanks for feedback. I removed all files from the mac folder except the 
> ExternalPrograms subfolder.
> Hopefully I did not removed a needed file.
>
> Thomas
>


I'm sorry, my fault, these files are still needed:

   - CopyTranslations.sh
   - DmgBackground.jpg
   - DmgDS_Store.in
   - DmgScript.scpt
   - PackageCreateToolsLibs.sh
   - (+ExternalPrograms/)

The scripts in ExternalPrograms have code to build multi-arch libraries. Do 
we still need a version supporting both 64bit/32bit? Every mac with OS X 
Lion (released Mid 2011) runs a 64-bit operating system. 

While I'm at it: the attached patch makes it possible to compile Hugin with 
clang from the llvm-formula from Homebrew (the one shipped with Xcode 
doesn't support OpenMP) and supports the changed output of the current 
otool.


Niklas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/16f10d7e-e7dd-436b-9fb0-1cd37fb416a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@
 endif(COMMAND cmake_policy)
 
 if(APPLE)
-  set(CMAKE_OSX_SYSROOT macosx10.11)
+  set(CMAKE_OSX_SYSROOT macosx10.12)
   set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
   if (MAC_SELF_CONTAINED_BUNDLE)
       set(CMAKE_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/mac/ExternalPrograms/repository/lib)
@@ -549,8 +549,10 @@
 SET(INSTALL_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/hugin/data)
 SET(INSTALL_LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/${LOCALEDIR})
 
-# setup bundle install prefix
 IF (APPLE)
+  SET(CMAKE_EXE_LINKER_FLAGS    "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++")
+  SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -stdlib=libc++ -lc++")
+  # setup bundle install prefix
   IF (NOT MAC_SELF_CONTAINED_BUNDLE)
     IF (CMAKE_INSTALL_PREFIX STREQUAL "/opt/local")
       # MacPorts
diff --git a/CMakeModules/PackageMacAppBundleLibs.sh.in b/CMakeModules/PackageMacAppBundleLibs.sh.in
--- a/CMakeModules/PackageMacAppBundleLibs.sh.in
+++ b/CMakeModules/PackageMacAppBundleLibs.sh.in
@@ -27,7 +27,7 @@
 mkdir -p "${FRAMEWORKS_PATH}"
 
 get_libraries() {
-  local LIBRARIES=$(echo $(otool -X -L $1 | grep -v ${RPATH_PLUGIN_PATH} | grep -v \/System\/Library | grep -v \/usr\/lib | sed -e 's/(.*)//' | sort -u))
+  local LIBRARIES=$(echo $(otool -L $1 | grep -v ${RPATH_PLUGIN_PATH} - | grep -v \/System\/Library - | grep -v \/usr\/lib - | sed -ne '1!p' | sed -e 's/(.*)//' | sort -u))
   if [ -n "$LIBRARIES" ]; then
     for library in $LIBRARIES
     do
@@ -62,9 +62,9 @@
 done
 
 
-  # -----------------------------------------------------------------------------
-  # Copy ExifTool into the stitchers
-  # -----------------------------------------------------------------------------
+# -----------------------------------------------------------------------------
+# Copy ExifTool into the stitchers
+# -----------------------------------------------------------------------------
 if [ "${APPLICATION_APP_BUNDLE}" == "PTBatcherGUI.app" ] || [ "${APPLICATION_APP_BUNDLE}" == "HuginStitchProject.app" ]; then
 
   if [ ! -x "${APPLICATION_APP_BUNDLE}/Contents/Resources/ExifTool/exiftool" ]; then

Reply via email to