View Single Post
Old 07-23-2011, 04:13 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,860
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi user_none,

Here is my current build process on Lion for Sigil-0.4.0RC1


Build Instructions on Mac OS X Lion
Using CMake and Command Line Tools and not XCode Dev Environment
(Unfortunately I only use command line tools and don't know Xcode dev env at all).

1. download and install the latest Developer Tools from the Mac App Store
(XCode Version 4.1) - Note the Appstore actually give you an InstallXcode.app in
/Applications after download that you must run manually to do the actual install.

2. download and install CMake 2.8-5 from cmake.org (you do need the latest)

3. download and install qt libs/ide opensource for mac 4.73 (you do not need the entire 1 gig SDK unless you want it) from qt.nokia.com

4. in a new directory do the following:

unzip Sigil-0.4.0RC1-Code.zip
mkdir build

5. Unless you have done a special install with XCode you must build with the 10.6.sdk
which you can do by editing Sigil-0.4.0-Code/CMakeList.txt and making the following changes:

--- CMakeLists.txt~ 2011-04-22 10:18:00.000000000 -0400
+++ CMakeLists.txt 2011-07-23 14:29:03.000000000 -0400
@@ -41,12 +41,12 @@
endif()

# We need this to make sure g++ and the linker
-# create exes that can run on 10.5+
-set( CMAKE_OSX_DEPLOYMENT_TARGET "10.5" )
+# create exes that can run on 10.6+
+set( CMAKE_OSX_DEPLOYMENT_TARGET "10.6" )

-# Build fails with the 10.4 SDK, so we'll just have to use
-# the 10.5 one and hope for the best.
-set( CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk" )
+# Build fails with the 10.5 SDK, so we'll just have to use
+# the 10.6 one and hope for the best.
+set( CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" )

# Universal builds for mac
set( CMAKE_OSX_ARCHITECTURES "i386;x86_64" )


6. Then do the following:

cd build
cmake -G "Unix Makefiles" -DCMAKE_BUIlD_TYPE=Release ../Sigil-0.4.0-Code/

and when it completes simply type

make


and cmake takes over and you can watch the progress of your build.

The build completed just fine. You will find the just built Sigil.app in the bin/ subdirectory created in your build directory.

Last edited by KevinH; 07-23-2011 at 04:16 PM. Reason: fix typos
KevinH is offline   Reply With Quote