Re: CMake build improved, including Mac OS-X support and looking for testers.
"Eric Robinson" <[email protected]> Tue, 18 Nov 2008 17:35:33 -0800
| Newsgroups | gmane.comp.video.cinepaint.devel |
|---|---|
| Message-ID | <[email protected]> |
I've attempted to build cinepaint from CVS on my macbook pro (10.5.5) with
Xcode and other random libraries already installed.
On the first attempt, I tried using the binaries of native gtk2 that can be
downloaded at http://www.gtk-osx.org/ . When running cmake, it would not
find all of the requisite libraries and threw this error:
GTK Include:
/Library/Frameworks/Gtk.framework/Headers/gtk/Library/Frameworks/GLib.framework/Headers/Library/Frameworks/GLib.framework/Headers
Got first
Got second
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake
files:
GTK_gdk_LIBRARY (ADVANCED)
linked by target "cinepaint" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/app
linked by target "blur" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "bmp" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "cineon" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "compose" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "decompose" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "dicom" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "edge" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "fits" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "gauss_rle" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "gbr" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "gifload" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "hdr" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "iff" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "jpeg" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "png" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "pnm" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "sgi" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins
linked by target "openexr" in directory
/Users/robinson/Source/cinepaint-project/cinepaint/plug-ins/openexr
-- Configuring incomplete, errors occurred!
If I editted the cmake cache to point to the correct directory, it would
configure but then immediately threw an error when compiling wire. I don't
have the specific error, but could reproduce it if need be.
After fiddling a bit , I decided to delete the prebuilt gtk2 frameworks and
instead use the jhbuild method that you described. Cmake finished without a
warning, but when I ran make, it got to 71% and threw this linking error
(NOTE - I kept in the warnings in the event that they help understand the
problem. Personally, I don't see the correlation):
[ 71%] Building C object
cinepaint/app/CMakeFiles/cinepaint.dir/depth/hue_saturation.c.o
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:
In function 'hue_saturation_hue_text_update':
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:1642:
warning: assignment discards qualifiers from pointer target type
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:
In function 'hue_saturation_lightness_text_update':
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:1664:
warning: assignment discards qualifiers from pointer target type
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:
In function 'hue_saturation_saturation_text_update':
/Users/robinson/Source/cinepaint-project/cinepaint/app/depth/hue_saturation.c:1686:
warning: assignment discards qualifiers from pointer target type
Linking CXX executable cinepaint
ld: library not found for -llcms
collect2: ld returned 1 exit status
make[2]: *** [cinepaint/app/cinepaint] Error 1
make[1]: *** [cinepaint/app/CMakeFiles/cinepaint.dir/all] Error 2
make: *** [all] Error 2
Obviously the problem is with lcms, like it wasn't built properly earlier
on. I fiddled a little bit, but I didn't want to install it manually because
then it wouldn't be helpful in getting cmake to work properly.
peace,
Eric W. Robinson
c. 650 722 6789
o. 650 366 5892
www.tentatio.com
www.illmorning.com
On Mon, Nov 17, 2008 at 9:22 AM, Michel Lesoinne
<[email protected]>wrote:
> > Michel,
> >
> > Thank you for your work with CMake. It should make a big difference on
> > Mac where the CinePaint autotools stuff has been problematic.
> I am pleased that in my case it all worked so easily using CMake.
> >
> > > 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.
> >
> > For anyone confused what Michel means by a "previous version" of Mac
> > GTK, Michel has chosen to build with the new GTK2 for Mac library rather
> > than with the GTK+OSX library used in our current Mac release. There are
> > two independently maintained Mac GTK libraries available. CinePaint can
> > link with either one. Both will be supported by CMake.
> >
> > FYI, there's an autotools version of the GTK2 for Mac build files. It
> > shouldn't be necessary to install Xcode.
> The script on the web page I gave does it all for you and if for no
> other reason, I found it to be a terrific way to compile the whole GTK2
> libraries.
>
> I will get back to doing the GTK+OSX and check that it also works if you
> prefer to use that.
> >
> > How are you building and installing the other dependent libraries for
> > Mac CinePaint such as zlib, jpeg, png, exr and so forth?
> On machines where the jpeg, png, OpenEXR libraries are installed and the
> include files can be found, they do not get built and the system ones
> are used instead. My kubuntu installation had all the jpeg and thus I
> did not see what to do when it was not available. On OS-X, there was no
> jpeg library so I had to modify CMake to create it from source. The
> current status is that zlib, jpeg, lcms and OpenEXR will build from the
> directories in the cinepaint distribution. Somehow, png seems to work
> without having to compile libpng. But I am a bit confused as to how that
> is.
>
> It is for such reasons that testers are really needed as I cannot create
> "sandbox" configurations of all the combinations of libraries that may
> or may not exist on a system. Testers who can report on which system it
> works or break would greatly help me. I can quickly fix build problems
> if told what breaks.
> >
> > Robin
>
>
> -------------------------------------------------------------------------
> 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=/
> _______________________________________________
> Cinepaint-developers mailing list
> Cinepaint-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/cinepaint-developers
>
-------------------------------------------------------------------------
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=/
_______________________________________________
Cinepaint-developers mailing list
Cinepaint-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/cinepaint-developers