kdeedu4 4.4.0 does not compile under OS X

Jan Gosmann jan at hyper-world.de
Fri Mar 5 17:06:06 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I posted the following message already at the kde-edu mailing list. But
it seems that they are there not able to help me and they pointed me to
kde-buildsystem mailing list.

Building kdeedu4 4.4.0 under Mac OS X 10.6.2 fails with the following
output:

<snip>
make -f
kalzium/libavogadro-kalzium/src/CMakeFiles/avogadro-kalzium.dir/build.make
kalzium/libavogadro-kalzium/src/CMakeFiles/avogadro-kalzium.dir/build
Linking CXX shared library ../../../lib/libavogadro-kalzium.dylib
cd
/opt/local/var/macports/build/_Volumes_Home_blubb_Public_ports_kde_kdeedu4/work/build/kalzium/libavogadro-kalzium/src
&& /opt/local/bin/cmake -E cmake_link_script
CMakeFiles/avogadro-kalzium.dir/link.txt --verbose=1
/usr/bin/g++-4.2   -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
- -mmacosx-version-min=10.6 -O2 -arch x86_64  -fno-common
- -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2
- -DNDEBUG -DQT_NO_DEBUG -dynamiclib -headerpad_max_install_names
- -single_module -multiply_defined suppress -L/opt/local/lib
- -current_version 0.9.3 -o ../../../lib/libavogadro-kalzium.0.9.3.dylib
- -install_name /opt/local/lib/libavogadro-kalzium.0.dylib
CMakeFiles/avogadro-kalzium.dir/avogadro-kalzium_automoc.o
CMakeFiles/avogadro-kalzium.dir/animation.o
CMakeFiles/avogadro-kalzium.dir/atom.o
CMakeFiles/avogadro-kalzium.dir/bond.o
CMakeFiles/avogadro-kalzium.dir/boxcontrol.o
CMakeFiles/avogadro-kalzium.dir/camera.o
CMakeFiles/avogadro-kalzium.dir/color.o
CMakeFiles/avogadro-kalzium.dir/colorbutton.o
CMakeFiles/avogadro-kalzium.dir/cube.o
CMakeFiles/avogadro-kalzium.dir/cylinder.o
CMakeFiles/avogadro-kalzium.dir/elementtranslate.o
CMakeFiles/avogadro-kalzium.dir/engine.o
CMakeFiles/avogadro-kalzium.dir/extension.o
CMakeFiles/avogadro-kalzium.dir/filetreeitem.o
CMakeFiles/avogadro-kalzium.dir/fragment.o
CMakeFiles/avogadro-kalzium.dir/glgraphicsview.o
CMakeFiles/avogadro-kalzium.dir/global.o
CMakeFiles/avogadro-kalzium.dir/glpainter.o
CMakeFiles/avogadro-kalzium.dir/glwidget.o
CMakeFiles/avogadro-kalzium.dir/idlist.o
CMakeFiles/avogadro-kalzium.dir/line.o
CMakeFiles/avogadro-kalzium.dir/mesh.o
CMakeFiles/avogadro-kalzium.dir/meshgenerator.o
CMakeFiles/avogadro-kalzium.dir/molecule.o
CMakeFiles/avogadro-kalzium.dir/navigate.o
CMakeFiles/avogadro-kalzium.dir/neighborlist.o
CMakeFiles/avogadro-kalzium.dir/painter.o
CMakeFiles/avogadro-kalzium.dir/periodictableview.o
CMakeFiles/avogadro-kalzium.dir/plotaxis.o
CMakeFiles/avogadro-kalzium.dir/plotobject.o
CMakeFiles/avogadro-kalzium.dir/plotpoint.o
CMakeFiles/avogadro-kalzium.dir/plotwidget.o
CMakeFiles/avogadro-kalzium.dir/plugin.o
CMakeFiles/avogadro-kalzium.dir/pluginmanager.o
CMakeFiles/avogadro-kalzium.dir/point.o
CMakeFiles/avogadro-kalzium.dir/primitive.o
CMakeFiles/avogadro-kalzium.dir/primitiveitemmodel.o
CMakeFiles/avogadro-kalzium.dir/primitivelist.o
CMakeFiles/avogadro-kalzium.dir/protein.o
CMakeFiles/avogadro-kalzium.dir/residue.o
CMakeFiles/avogadro-kalzium.dir/sphere.o
CMakeFiles/avogadro-kalzium.dir/textrenderer.o
CMakeFiles/avogadro-kalzium.dir/tool.o
CMakeFiles/avogadro-kalzium.dir/toolgroup.o
CMakeFiles/avogadro-kalzium.dir/undosequence.o
CMakeFiles/avogadro-kalzium.dir/zmatrix.o
CMakeFiles/avogadro-kalzium.dir/engines/bsdyengine.o
CMakeFiles/avogadro-kalzium.dir/colors/elementcolor.o
- -F/opt/local/libexec/qt4-mac/lib -L/opt/local/lib
/opt/local/lib/libopenbabel.dylib -framework QtOpenGL -framework
- -lOpenGL -framework -lAGL -framework QtGui /opt/local/lib/libpng.dylib
- -framework Carbon -framework AppKit -framework QtCore -lpthread
/opt/local/lib/libz.dylib -framework ApplicationServices -framework AGL
- -framework OpenGL -lOpenGL -lAGL -framework QtGui
/opt/local/lib/libpng.dylib -framework Carbon -framework AppKit
- -framework QtCore -lpthread /opt/local/lib/libz.dylib -framework
ApplicationServices -framework AGL -framework OpenGL
ld: framework not found -lOpenGL
collect2: ld returned 1 exit status
make[2]: *** [lib/libavogadro-kalzium.0.9.3.dylib] Error 1
make[1]: ***
[kalzium/libavogadro-kalzium/src/CMakeFiles/avogadro-kalzium.dir/all]
Error 2
make: *** [all] Error 2
</snap>

The error message that the framework "-lOpenGL" was not found is
correct, because the framework is just OpenGL without the -l prefix.
Therefore the "-framework -lOpenGL" somewhere within the options should
be replaced by "-framework OpenGL".

Also there is somewhere a "-framework -lAGL" which has to be replaced by
"-framework AGL" and, finally, there are occurrences of "-lAGL" and
"-lOpenGL" (without the "-framework" before it) which have to be removed
entirely from the command.

I would create a patch myself, but I am unfamiliar with the cmake build
system and do not know in which file I have to edit in which way to make
this work.

Best regards,
Jan

- -- 
Homepage: http://www.hyper-world.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuRK+4ACgkQ5zkufi1obaHl9QCeIvId8Y5YOeo0VAl/GkGxV10N
zeUAn00rZjB0HnovIwo0DRXWcUoYxR4z
=8m9m
-----END PGP SIGNATURE-----


More information about the Kde-buildsystem mailing list