[MacPorts] #41382: libQGLViewer example fails to link

MacPorts noreply at macports.org
Fri Nov 15 11:42:31 PST 2013


#41382: libQGLViewer example fails to link
------------------------------+--------------------------------
 Reporter:  dv30fps-macosx@…  |      Owner:  macports-tickets@…
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.2.1
 Keywords:                    |       Port:  libQGLViewer
------------------------------+--------------------------------
 After the fix for ticket #41358, libQGLViewer.dylib builds successfully
 for x86_64, but the link of the example program called animation fails.
 libQGLViewer.dylib is built for x86_64 only and the example program is
 trying to link i386.


 {{{
 :info:build /usr/bin/clang++ -headerpad_max_install_names -arch x86_64
 -arch i386 -Xarch_x86_64 -mmacosx-version-min=10.8 -o
 animation.app/Contents/MacOS/animation .obj/animation.o .obj/main.o
 -F/opt/local/Library/Frameworks -F/opt/local/lib  -L/opt/local/lib
 -lQGLViewer -framework OpenGL -framework AGL
 -F/opt/local/Library/Frameworks -F/opt/local/lib -framework QtXml
 -framework QtCore -framework QtOpenGL -framework QtGui
 :info:build ld: warning: ignoring file /opt/local/lib/libQGLViewer.dylib,
 file was built for x86_64 which is not the architecture being linked
 (i386): /opt/local/lib/libQGLViewer.dylib
 :info:build Undefined symbols for architecture i386:
 :info:build   "QGLViewer::closeEvent(QCloseEvent*)", referenced from:
 :info:build       vtable for Viewer in animation.o
 :info:build   "QGLViewer::setPathKey(int, int)", referenced from:
 :info:build       vtable for Viewer in animation.o
 :info:build   "QGLViewer::timerEvent(QTimerEvent*)", referenced from:
 :info:build       vtable for Viewer in animation.o
 :info:build   "QGLViewer::wheelEvent(QWheelEvent*)", referenced from:
 :info:build       vtable for Viewer in animation.o
 ...
 :info:build ld: symbol(s) not found for architecture i386
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [animation.app/Contents/MacOS/animation] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_libQGLViewer/libQGLViewer/work/libQGLViewer-2.4.0/examples/animation'
 :info:build make[1]: *** [sub-animation-all] Error 2

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41382>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list