#18906: qtiplot build fails ----------------------------------+----------------------------------------- Reporter: jwhowse4@… | Owner: jonas@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: qtiplot ----------------------------------+----------------------------------------- Comment(by jonas@…): Replying to [comment:9 gnwiii@…]:
Replying to [comment:6 jonas@…]:
I've just commited (r49316) a new version 0.9.7.6, now using the qwt52 port (I had to create a new one because qwt-5.2 contains source incompatible changes compared to 5.1; that's what the release notes proclame).
However, I don't think the linking problem above will be affected. It smells like a problem with libpng... Could you please post the entire linking command, not only the error?
The port file had:
#configure.args "'INCLUDEPATH += ${prefix}/include' 'LIBS += -L${prefix}/libs -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt'"
Note "-L${prefix}/libs" with an "s"! Changed to "lib" without the"s", then I get the same png library problem:
Thanks, fixed in r49871
/usr/bin/g++-4.0 -headerpad_max_install_names -o qtiplot.app/Contents/MacOS/qtiplot [removed tons of qtiplot's .o's] -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/lib -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt -lpython2.5 -framework QtAssistant -framework QtSvg -framework Qt3Support -lresolv -framework QtSql -framework QtXml -framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui -framework Carbon -framework AppKit -framework QtNetwork -framework QtCore -lz -lm -framework ApplicationServices
My linking command (which worked here) looks like this /usr/bin/g++-4.0 -headerpad_max_install_names -o qtiplot.app/Contents/MacOS/qtiplot [removed tons of qtiplot's .o's] -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/libs -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt -lpython2.5 -framework QtAssistant -L/opt/local/lib -L/opt/local/libexec/qt4-mac/lib -F/opt/local/libexec/qt4-mac/lib -framework QtSvg -framework Qt3Support -lresolv -framework QtSql -framework QtXml -framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui -framework Carbon -framework AppKit -lpng -framework QtNetwork -framework SystemConfiguration -lssl -lcrypto -framework QtCore -lz -lm -framework ApplicationServices The interesing part is, that Qt seems to pull in some additional parameters, most notable: * `-L/opt/local/lib` (that why it worked here even with the libs/lib error you pointed out above) * `-lpng` (which is missing in your command and thus causing the errors about missing png symbols) So, it should work if you would add "-lpng" to the linking command. Unfortunately I have now idea (for the moment ;-)) why these parameters are missing on your system. -- Ticket URL: <http://trac.macports.org/ticket/18906#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS