[MacPorts] #41382: libQGLViewer example fails to link when building universal

MacPorts noreply at macports.org
Mon Nov 18 10:02:46 PST 2013


#41382: libQGLViewer example fails to link when building universal
-------------------------------+-----------------------
  Reporter:  dv30fps-macosx@…  |      Owner:  raphael@…
      Type:  defect            |     Status:  closed
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.2.1
Resolution:  fixed             |   Keywords:
      Port:  libQGLViewer      |
-------------------------------+-----------------------
Changes (by raphael@…):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 {{{
 :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
 }}}

 Replying to [comment:2 michaelld@…]:
 > It's trying to link to an already-installed
 /opt/local/lib/libQGLViewer.dylib, which was built for just x86_64.

 Ah, sorry, I missed that.

 > Try adding the following to the Portfile:
 > {{{
 > configure.cppflags-delete -I/opt/local/include
 > configure.ldflags-delete -L/opt/local/lib
 > }}}
 > and see if that helps.

 Here, these two lines remove the {{{-L/opt/local/lib}}} before
 {{{-lQGLViewer}}} in the linker call, so I added these lines to the
 Portfile in r113512.

 dv30fps, please selfupdate, try again to install libQGLViewer and reopen
 this ticket if you still have the same problem.

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


More information about the macports-tickets mailing list