Building Scan Tailor on OSX

Discussions, questions, comments, ideas, and your projects having to do with DIY Book Scanner software. This includes the Stereo Data Maker software for the cameras, post-processing software, utilities, OCR packages, and so on.

Building Scan Tailor on OSX

Postby rob » 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:
The latest code is always in Scan Tailor's git repository:
git://scantailor.git.sourceforge.net/gi ... 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.


Here's the process that I used:

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 -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake .
(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.
The Singularity is Near.
User avatar
rob
 
Posts: 207
Joined: 03 Jun 2009, 13:50
Location: Maryland, US

Re: Building Scan Tailor on OSX

Postby w_m0zart » 22 Oct 2009, 14:01

Thanks Rob for sharing your knowledge.

Maybe it's noteworthy to mention that it's important to have a proper Xcode version. Originally I tried the default Xcode from my osx 10.5 installation dvd, but a.o. installing qt4 with macports threw a lot of errors. I wrote about it here:

https://sourceforge.net/apps/phpbb/scantailor/viewtopic.php?f=6&t=8&start=0#p32
and here:
http://www.auditeon.com/software:osx:scantailor

Eventually it would be great to have Scan Tailor as a proper application bundle, which can be started by double clicking.
w_m0zart
 
Posts: 2
Joined: 21 Oct 2009, 16:25

Re: Building Scan Tailor on OSX

Postby Tulon » 22 Oct 2009, 15:54

Yeah, that would be nice. Don't count on me though. I do have an old iBook G4 running Tiger around, but what I don't have is time.
Tulon
 
Posts: 63
Joined: 03 Oct 2009, 06:13
Location: London, UK


Return to Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest