This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:osx:scantailor [2009/10/22 02:19] – admin | software:osx:scantailor [2009/10/22 12:17] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Building scantailor on Mac OSX ====== | ====== Building scantailor on Mac OSX ====== | ||
- | This page describes how to install scantailor on Max OSX. [[http:// | + | This page describes how to install scantailor on Max OSX. A lot of thanks go to [[http:// |
- | ===== Installation of MacPorts on os 10.5.8 ===== | + | ===== Installation of scantailor with Qt and MacPorts on os x 10.5.8 ===== |
If you haven' | If you haven' | ||
- | * < | + | * Download Xcode from Apple and install it (It automatically updates the current version).\\ Note that the 10.5 compatible Xcode is a bit hidden away. In the Mac Dev Center -> Member Site (in right column); it requires another login. Member Site -> Downloads. Download -> Developer Tools (In right column). |
* Install X11 User from the osx installation dvd | * Install X11 User from the osx installation dvd | ||
* Download and install MacPorts (1.8.1 - 10.5 Leopard) | * Download and install MacPorts (1.8.1 - 10.5 Leopard) | ||
Line 12: | Line 12: | ||
==== Install qt4-mac ==== | ==== Install qt4-mac ==== | ||
- | Installing | + | Install |
- | < | + | |
- | Command output: / | + | |
- | Making all in dbus | + | |
- | / | + | |
- | /bin/sh ../libtool --tag=CC | + | |
- | ../libtool: line 460: CDPATH: command not found | + | |
- | / | + | |
- | / | + | |
- | libtool: Version mismatch error. | + | |
- | libtool: definition of this LT_INIT comes from an older release. | + | |
- | libtool: You should | + | |
- | libtool: and run autoconf again. | + | |
- | make[3]: *** [dbus-address.lo] Error 63 | + | |
- | make[2]: *** [all] Error 2 | + | |
- | make[1]: *** [all-recursive] Error 1 | + | |
- | make: *** [all] Error 2 | + | |
- | + | ||
- | Error: The following dependencies failed to build: dbus jpeg libmng autoconf help2man gettext libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake lcms tiff zlib libtool libpng openssl sqlite3 readline | + | |
- | Error: Status 1 encountered during processing.</ | + | |
- | + | ||
- | After some google search, I read somewhere that I should install dbus(([[http:// | + | |
- | sudo port install libtool && sudo port clean dbus && sudo port install dbus | + | |
- | When almost finished, the following text appears: | + | |
- | < | + | |
- | # Startup items have been generated that will aid in | + | |
- | # starting dbus with launchd. They are disabled | + | |
- | # by default. Execute the following command to start them, | + | |
- | # and to cause it to launch at startup: | + | |
- | # | + | |
- | # sudo launchctl load -w / | + | |
- | # launchctl load -w / | + | |
- | ##################################################################################################</ | + | |
- | + | ||
- | Then try installing qt4-mac: | + | |
sudo port install qt4-mac | sudo port install qt4-mac | ||
- | Unfortunately this fails due to an old Xcode version: | ||
- | < | ||
- | ---> | ||
- | On Mac OS X 10.5, tiff 3.9.1 requires Xcode 3.1 or later but you have Xcode 3.0. | ||
- | Error: Target org.macports.extract returned: incompatible Xcode version | ||
- | Error: The following dependencies failed to build: libmng lcms tiff libpng openssl sqlite3 readline | ||
- | Error: Status 1 encountered during processing.</ | ||
- | This Xcode version was installed | + | ^ After you have installed |
- | sudo port clean qt4-mac | + | |
- | Then continue with installing: | + | Before installing cmake, first install boost. If boost would be missing, cmake would throw an error that it "Could not find boost headers or libraries." and "You may need to install a package named libboost1.35-dev or similarly."\\ \\ |
- | sudo port install | + | Install boost (It installed |
- | During the next 6 hours version 4.5.3_0 will be installed successfully. | + | sudo port install |
==== Install cmake ==== | ==== Install cmake ==== | ||
sudo port install cmake | sudo port install cmake | ||
After about 20 minutes, version 2.6.4_1 is successfully installed. | After about 20 minutes, version 2.6.4_1 is successfully installed. | ||
- | sudo | + | |
==== Install scantailor ==== | ==== Install scantailor ==== | ||
- | Make a directory: | + | Browse |
- | / | + | |
- | Browse | + | |
cd / | cd / | ||
In that directory in your favorite shell make a local copy of scantailor sources with svn, by entering the svn command to check out the sources((See: | In that directory in your favorite shell make a local copy of scantailor sources with svn, by entering the svn command to check out the sources((See: | ||
svn co https:// | svn co https:// | ||
- | For now, ignore the fingerprint warning. Just enter t (temporarily)\\ | + | For now, ignore the fingerprint warning. Just enter t (temporarily)\\ |
- | | + | cmake . |
- | mkdir -p builds/ | + | (notice the space and the dot) |
- | cd builds/ | + | It should say something like: |
- | The process now differs with MacPorts.\\ With MacPorts | + | |
- | cmake -G "Unix Makefiles" | + | |
- | This says: use the "Unix Makefiles" | + | |
< | < | ||
+ | -- Checking pthreads with CFLAGS="" | ||
-- Configuring done | -- Configuring done | ||
-- Generating done | -- Generating done | ||
- | -- Build files have been written to: / | + | -- Build files have been written to: / |
</ | </ | ||
- | If you installed Qt using MacPorts, then you may see an error reporting that "Qt4 could not be found" | ||
- | cd to / | ||
- | sudo ln -s qmake-mac qmake | ||
- | Go back to your build/ | ||
- | === libboost1.35-dev error #1 === | ||
- | Skip this, continue reading to #2.\\ If you receive an error about missing package named libboost1.35-dev or similarly: | ||
- | < | ||
- | CMake Error at CMakeLists.txt: | ||
- | Could not find boost headers or libraries. | ||
- | You may need to install a package named libboost1.35-dev or similarly. | + | Then perform the make of scantailer with: |
- | </ | + | |
- | Try to install libsdl with the following command: | + | |
- | sudo port install libsdl | + | |
- | It installed libsdl 1.2.14_8.\\ | + | |
- | === libboost1.35-dev error #2 === | + | |
- | Try to install boost((See: [[http:// | + | |
- | sudo port install boost | + | |
- | It installed boost 1.40.0_1+powerpc\\ \\ Now, if you are not there, go back to your build/ | + | |
- | ==== build scantailer ==== | + | |
- | Then perform the build of scantailer with three steps: | + | |
make | make | ||
- | make install | + | You should find Scantailor.app |
- | make macosx_bundle | + | / |
- | Now up in / | + | and start from there ./ |
===== Packaging scantailor===== | ===== Packaging scantailor===== | ||
Line 131: | Line 67: | ||
svn update | svn update | ||
**IMPORTANT**: | **IMPORTANT**: | ||
+ | |||
+ | ===== Troubleshoot ===== | ||
+ | Install boost if you receive the following error: | ||
+ | < | ||
+ | CMake Error at CMakeLists.txt: | ||
+ | Could not find boost headers or libraries. | ||
+ | |||
+ | You may need to install a package named libboost1.35-dev or similarly. | ||
+ | </ |