Opened 15 years ago
Closed 15 years ago
#23720 closed defect (fixed)
kdeedu4: framework not found -lOpenGL
Reported by: | djackan@… | Owned by: | nerdling (Jeremy Lavergne) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | sharky@…, ryandesign (Ryan Carsten Schmidt), sgaragagghu@…, mf2k (Frank Schima), jgosmann (Jan Gosmann), lang@… | |
Port: | kdeedu4 kdelibs4 |
Description
I'm building kdeedu4 on a 15" Macbook Pro with the Intel Santa Rosa processor. The Xcode is 3.2.1 The error message is below and I have attached the debug log:
Linking CXX shared library ../../../lib/libavogadro-kalzium.dylib cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_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[1]: *** Waiting for unfinished jobs.... /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdeedu4 /work/build/CMakeFiles [ 58%] Building CXX object marble/src/lib/CMakeFiles/marblewidget.dir/gps/GpxFile.o
Thank you for any help you can provide.
Attachments (2)
Change History (13)
Changed 15 years ago by djackan@…
Attachment: | kdeedu4debuglog.zip added |
---|
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Cc: | snc@… removed |
---|---|
Owner: | changed from macports-tickets@… to snc@… |
comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Summary: | Kdeedu4 fails to build on Snow Leopard → kdeedu4: framework not found -lOpenGL |
comment:6 Changed 15 years ago by jgosmann (Jan Gosmann)
Same problem for me with 15" Unibody Macbook Pro, Mac OS X 10.6.2 and XCode 3.2.1
comment:7 Changed 15 years ago by jgosmann (Jan Gosmann)
I just posted this problem to the kde-edu mailing list.
Also I did some further research. To execute the command successfully "-framework -lOpenGL" has to be replaced by "-framework OpenGL" and "-framework -lAGL" by "-framework AGL". Moreover, "-lAGL" and "-lOpenGL" (without the "-framework" before it) have to removed entirely.
I would write a patch myself, but I am unfamiliar with the cmake build system and do not know which files have to be edited in which way.
comment:8 Changed 15 years ago by jgosmann (Jan Gosmann)
Alexander Neundorf of the kde-buildsystem mailing list wrote a patch and will commit it. Therefore it should build again with the next versions of kdelibs4 and kdeedu4. I will attach it also to this comment. It has applied to Qt4ConfigDependentSettings.cmake (in /opt/local/share/apps/cmake/modules/). This file is part of kdelibs4.
Changed 15 years ago by jgosmann (Jan Gosmann)
Attachment: | opengl-on-mac.patch added |
---|
Patch for Qt4ConfigDependentSettings.cmake to build kdeedu4
comment:10 Changed 15 years ago by nerdling (Jeremy Lavergne)
Port: | kdelibs4 added |
---|---|
Status: | new → assigned |
comment:11 Changed 15 years ago by nerdling (Jeremy Lavergne)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed in r65552.
I just got this too on a MacBookPro3,1 with Mac OS X 10.6.2 and Xcode 3.2.1. The error message "ld: framework not found -lOpenGL" is correct: there is no framework called "-lOpenGL", nor would one expect there to be one. There is a framework "OpenGL" but that is not what the software asked for. The software should use "-framework OpenGL" if it wants to link to OpenGL as a framework, or "-lOpenGL" if it wants to link to it as a library, but "-framework -lOpenGL" does not make sense.