[MacPorts] #53101: jasper fails to build +universal due to glut/OpenGL problems
MacPorts
noreply at macports.org
Sun Dec 18 21:04:44 CET 2016
#53101: jasper fails to build +universal due to glut/OpenGL problems
----------------------+--------------------
Reporter: jeremyhu | Owner: jmroot
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: jasper
----------------------+--------------------
{{{
[ 87%] Linking C executable jiv
cd /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build/src/appl && /opt/local/bin/cmake
-E cmake_link_script CMakeFiles/jiv.dir/link.txt --verbose=ON
/usr/bin/clang -pipe -Os -DNDEBUG -arch x86_64 -arch i386 -mmacosx-
version-min=10.12 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
-L/opt/local/lib -Wl,-headerpad_max_install_names
CMakeFiles/jiv.dir/jiv.c.o -o jiv
-Wl,-rpath,/opt/local/var/macports/build
/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build/src/libjasper
../libjasper/libjasper.4.0.0.dylib /opt/local/lib/libjpeg.dylib
/opt/local/lib/libglut.dylib -framework OpenGL /usr/lib/libm.dylib
ld: warning: ignoring file /opt/local/lib/libglut.dylib, file was built
for x86_64 which is not the architecture being linked (i386):
/opt/local/lib/libglut.dylib
Undefined symbols for architecture i386:
"_glutCreateWindow", referenced from:
_main in jiv.c.o
"_glutDisplayFunc", referenced from:
_main in jiv.c.o
"_glutGet", referenced from:
_loadimage in jiv.c.o
"_glutGetModifiers", referenced from:
_specialfunc in jiv.c.o
"_glutInit", referenced from:
_main in jiv.c.o
"_glutInitDisplayMode", referenced from:
_main in jiv.c.o
"_glutKeyboardFunc", referenced from:
_main in jiv.c.o
"_glutMainLoop", referenced from:
_main in jiv.c.o
"_glutPostRedisplay", referenced from:
_specialfunc in jiv.c.o
_keyboardfunc in jiv.c.o
_loadimage in jiv.c.o
"_glutReshapeFunc", referenced from:
_main in jiv.c.o
"_glutReshapeWindow", referenced from:
_loadimage in jiv.c.o
"_glutSetWindowTitle", referenced from:
_loadimage in jiv.c.o
"_glutSpecialFunc", referenced from:
_main in jiv.c.o
"_glutSwapBuffers", referenced from:
_displayfunc in jiv.c.o
"_glutTimerFunc", referenced from:
_loadimage in jiv.c.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [src/appl/jiv] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build
/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build'
make[1]: *** [src/appl/CMakeFiles/jiv.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build
/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build
/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build'
Command failed: cd "/opt/local/var/macports/build
/_Users_jeremy_src_macports_macports-
ports_graphics_jasper/jasper/work/build" && /usr/bin/make -w all
VERBOSE=ON
Exit code: 2
Error: Failed to build jasper: command execution failed
Error: See /opt/local/var/macports/logs
/_Users_jeremy_src_macports_macports-ports_graphics_jasper/jasper/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
}}}
The build is failing because /opt/local/lib/libglut.dylib is not
+universal, but that's not the main problem.
/opt/local/lib/libglut.dylib is provided by the freeglut port and uses
GLX, not CGL. If jasper should be using GLX, it needs to link against
/opt/local/lib/libGL.dylib (from mesa) rather than OpenGL.framework. If
jasper should be using CGL, then it should be using GLUT.framework and not
libglut.dylib
--
Ticket URL: <https://trac.macports.org/ticket/53101>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list