Building Scan Tailor on OSX
Posted: 21 Oct 2009, 18:31
Hey all,
I've already gotten two requests to describe how I built Scan Tailor on OSX, so I just realized it would probably be useful to put my procedure here:
UPDATE: If you want to recompile Scan Tailor after you upgrade to 10.6 (Snow Leopard) then you must wipe out darwinports (=macports) and reinstall it, and all the ports you installed.
Update: How to get the source code:
Once you get the Scan Tailor source code, and assuming you already have Darwinports installed, and also assuming you have XCode installed (which gives you gcc) you can do this:
sudo port install cmake
sudo port install qt4-mac This will take several hours.
sudo port install boost
I'm pretty sure that qt4-mac will install tiff, jpeg and png, but if not:
sudo port install tiff
sudo port install jpeg
sudo port install libpng
After that's done, hopefully you should be able to go into the Scan Tailor directory and type
(note the space and dot at the end!)
When that's done, type
make
And hopefully it will work.
TO RUN SCANTAILOR, you must open Terminal, go to the scantailor directory, and type ./scantailor which should bring it up.
I've already gotten two requests to describe how I built Scan Tailor on OSX, so I just realized it would probably be useful to put my procedure here:
UPDATE: If you want to recompile Scan Tailor after you upgrade to 10.6 (Snow Leopard) then you must wipe out darwinports (=macports) and reinstall it, and all the ports you installed.
Update: How to get the source code:
Here's the process that I used:The latest code is always in Scan Tailor's git repository:
git://scantailor.git.sourceforge.net/gitroot/scantailor/scantailor
If you are not familiar with git, you can grab the latest sources using the web interface:
http://scantailor.git.sourceforge.net/g ... ;a=summary
Use the topmost "snapshot" link for that purpose.
Once you get the Scan Tailor source code, and assuming you already have Darwinports installed, and also assuming you have XCode installed (which gives you gcc) you can do this:
sudo port install cmake
sudo port install qt4-mac This will take several hours.
sudo port install boost
I'm pretty sure that qt4-mac will install tiff, jpeg and png, but if not:
sudo port install tiff
sudo port install jpeg
sudo port install libpng
After that's done, hopefully you should be able to go into the Scan Tailor directory and type
Code: Select all
CMAKE_LIBRARY_PATH=/opt/local/lib CMAKE_INCLUDE_PATH=/opt/local/include cmake -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake .
When that's done, type
make
And hopefully it will work.
TO RUN SCANTAILOR, you must open Terminal, go to the scantailor directory, and type ./scantailor which should bring it up.