Ticket #28629 (closed defect: fixed)
port install wxgtk +opengl fails
| Reported by: | t.koziara@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | justin.ales@… | |
| Port: | wxgtk |
Description
It seems like there issues with linking the compiled objects. See:
:info:build /usr/bin/g++-4.0 -dynamiclib -single_module -headerpad_max_install_names -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wxgtk/work/wxGTK-2.8.1
1/lib/libwx_gtk2_gl-2.8.0.7.0.dylib gldll_gtk_glcanvas.o -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wxgtk/work/wxGTK-2.8.11/lib -install_name /opt/
local/lib/libwx_gtk2_gl-2.8.0.dylib -compatibility_version 8.0 -current_version 8.0 -L/opt/local/lib -arch i386 -L/usr/X11R6/lib -framework IOKit -framework CoreServices -framework System -framework Applic
ationServices -L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lgio-2.0 -lXfixes -lX11 -lp
ng14 -lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -lXinerama -lXxf86vm -lSM -lpng -lz -ljpeg -ltiff -L/opt/local/lib -arch i386 -L/usr/X11R6/lib -fr
amework IOKit -framework CoreServices -framework System -framework ApplicationServices -lz -lpthread -liconv -lwx_gtk2_core-2.8 -lwx_base-2.8 -lz -lpthread -liconv
:info:build Undefined symbols:
:info:build "_glColor3f", referenced from:
:info:build wxGLCanvas::SetColour(char const*)in gldll_gtk_glcanvas.o
:info:build "_glXMakeContextCurrent", referenced from:
:info:build wxGLContext::SetCurrent(wxGLCanvas const&) constin gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build "_glXMakeCurrent", referenced from:
:info:build wxGLContext::SetCurrent(wxGLCanvas const&) constin gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build "_glXQueryVersion", referenced from:
:info:build wxGLCanvas::QueryGLXVersion() in gldll_gtk_glcanvas.o
:info:build "_glXCreateNewContext", referenced from:
:info:build wxGLContext::wxGLContext(wxWindow*, wxGLContext const*)in gldll_gtk_glcanvas.o
:info:build "_glXGetCurrentContext", referenced from:
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build "_glXSwapBuffers", referenced from:
:info:build wxGLCanvas::SwapBuffers() in gldll_gtk_glcanvas.o
:info:build "_glXChooseVisual", referenced from:
:info:build wxGLCanvas::ChooseGLVisual(int*) in gldll_gtk_glcanvas.o
:info:build "_glXCreateContext", referenced from:
:info:build wxGLContext::wxGLContext(wxWindow*, wxGLContext const*)in gldll_gtk_glcanvas.o
:info:build "_glXGetVisualFromFBConfig", referenced from:
:info:build wxGLApp::InitGLVisual(int*) in gldll_gtk_glcanvas.o
:info:build wxGLCanvas::Create(wxWindow*, wxGLContext const*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)in gldll_gtk_glcanvas.o
:info:build "_glXChooseFBConfig", referenced from:
:info:build wxGLCanvas::ChooseGLFBC(int*) in gldll_gtk_glcanvas.o
:info:build "_glXDestroyContext", referenced from:
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build wxGLContext::~wxGLContext()in gldll_gtk_glcanvas.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wxgtk/work/wxGTK-2.8.11/lib/libwx_gtk2_gl-2.8.0.7.0.dylib] Error 1
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wxgtk/work/wxGTK-2.8.11" && /usr/bin/make all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for wxgtk): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Attachments
Change History
Changed 21 months ago by justin.ales@…
- Attachment wxGtkPortfilePatch added
patch for compilation of opengl variant
Note: See
TracTickets for help on using
tickets.


OK, here is the fix that worked for me:
I edited directly the Makefile in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wxgtk/work/wxGTK-2.8.11
by adding "-L/opt/local/lib/ -lg" at the end of this line
Somebody who is into autoconf & automake stuff might like to add suitable patch.