vinayvenu / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
1 stars 3 forks source link

Add support from Mac OS X Build #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a problem that was submitted by axel.bodart

=====================

Currently building on OSX is not possible, here is a first take at needed fixes 
(too lazy to submit a patch :-) ) :

In main directory :

CMakeLists.txt:59:if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") OR 
(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin"))

In Resources

mongoose-patch.diff:19:+#if defined(__linux) || defined(__APPLE__)

In Resources/CMake/ : 

BoostConfiguration.cmake:29:  if (("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL 
"Linux") OR ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin"))
DcmtkConfiguration.cmake:19:  if (("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL 
"Linux") OR ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin"))  
DownloadPackage.cmake:31:    if (("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux") 
OR ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin"))
LibCurlConfiguration.cmake:5:  if (("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL 
"Linux") OR ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin"))
LibCurlConfiguration.cmake:23:  if (("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL 
"Linux") OR ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin"))  

As a side note, you may want to add your compile flags to those already 
existing instead of overwriting them ie : 

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic 
-Wno-implicit-function-declaration") 

as opposed to : 

set(CMAKE_C_FLAGS "-Wall -pedantic -Wno-implicit-function-declaration")

=====================

libcurl still does not compile : setup_once.h:92: error: redefinition of 
‘struct timeval’

Hmm will have to check this more in depth.
Delete comment

=====================

Thanks Axel! As soon as I have an access to an Apple computer, I will fix this 
build.

Original issue reported on code.google.com by s.jodo...@gmail.com on 14 Sep 2012 at 4:12

GoogleCodeExporter commented 9 years ago
If someone wishes to create a Mac OS X package, feel free to contribute!

Original comment by s.jodo...@gmail.com on 19 Apr 2013 at 9:27

GoogleCodeExporter commented 9 years ago
Many thanks to Ryan Walklin who has created a fork of Orthanc 0.5.2 that builds 
under Mac OS X:
https://code.google.com/r/ryanwalklin-mac/

Please also check the FAQ:
https://code.google.com/p/orthanc/wiki/FAQ?ts=1373461374&updated=FAQ#I_use_Mac_O
S_X,_how_can_I_build_Orthanc?

Original comment by s.jodo...@gmail.com on 10 Jul 2013 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by s.jodo...@gmail.com on 7 Mar 2014 at 2:30

GoogleCodeExporter commented 9 years ago
As a complement to the previous answers, the mainline of Orthanc now properly 
builds with XCode (and without using Homebrew or MacPorts). You can find the 
build instructions at the following location:
https://code.google.com/p/orthanc/source/browse/DarwinCompilation.txt

Original comment by s.jodo...@gmail.com on 25 Jun 2014 at 2:24