CMake build improved, including Mac OS-X support and looking for testers.

Michel Lesoinne <[email protected]> Sat, 15 Nov 2008 08:17:16 -0700
Newsgroups gmane.comp.video.cinepaint.devel
Message-ID <[email protected]>
Hello all,

I have improved the CMake build files but I probably do not have every 
perfectly robust yet for all architectures and all options. 
Nevertheless, it is a lot closer to be able to do a correct job in all 
cases than before.
To continue  improving the cmake release, I am looking for testers on 
various platforms who can report here the problems they encounter and I 
plan to quickly address their problems.
To try and test the cmake build, you need to insure you have installed 
cmake version 2.6. Most recent linux distribution will have it. If yours 
only has cmake version 2.4, or does not have cmake in its packages, go 
to http://www.cmake.org/cmake/resources/software.html and install the 
latest version. For Mac OS, assuming you have Tiger, the dmg package 
makes it very easy to install it.

Once you have cmake installed, check out the latest cvs version and in 
the cinepaint-project directory, type:

cmake -D CMAKE_INSTALL_PREFIX="<destination directory>" .
make

Do not forget the "." in the first line. The -D CMAKE_INSTALL_PREFIX is 
only if you want to install cinepaint somewhere else than /usr/local
Notes for Mac OS-X:

I started from a fresh Mac OS-X 10.5 install and first installed XCode, 
though I am not sure if it was really necessary, but after it was 
installed, all the required compilers and tools were in place.
I then installed GTK2 as released from: 
http://developer.imendio.com/projects/gtk-macosx
I followed the build instructions, i.e. I downloaded  
gtk-osx-build-setup.sh then I ran:

sh gtk-osx-build-setup.sh

I added ~/bin to my path as recommended by the above script then went on:

jhbuild bootstrap
jhbuild build meta-gtk-osx-bootstrap
jhbuild build

Finally when all this was done, I ran

jhbuild shell
cd <base-dir-for-cinepaint>/cinepaint-project
cmake -D CMAKE_INSTALL_PREFIX="/Users/michel/local" .
make

The cmake has to be done under the the jhbuild shell the first time so 
that it does find the GTK2 packages. After that, any further cmake or 
make can be done in any shell. If you wipe out the CMakeCache.txt file, 
then you will again to run cmake under the jhbuild shell once.

I ran a few examples and it seems to be working exactly as on linux. My 
testing was not extensive however and I hope testers can exercise the 
code thoroughly and let me know of any problem they encounter. If you 
encounter bugs in GTK2 for Mac OS, let us know as well, but I will not 
be able to fix them. GTK2 as distributed by the site I gave here seems 
to work correctly, but again I have not tested enough to guarantee it.

Note: All my compilations have so far used GTK2. If you use the previous 
GTK version, let me know of any problem with the cmake setup and I will 
make any necessary corrections.

Finally, a make uninstall has been added. It will remove all the 
installed files, but not the new directories that were created.

Let me know what you guys find out.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/