Help with porting FreeCAD

Chris H bsd-lists at bsdforge.com
Wed Jan 7 15:54:25 UTC 2015


On Wed, 07 Jan 2015 09:47:53 +0100 Andrea Venturoli <ml at netfence.it> wrote

> On 01/07/15 00:10, Chris H wrote:
> 
> > Sure. OK.
> > Maybe something along the lines of:
> >
> > BUILD_DEPENDS+=    ${PREFIX}/bin/gcc49:${PORTSDIR}/lang/gcc49
> 
> This did not help.
> Some extract from the configuration/build:
> 
> > ===>   freecad-20150106 depends on executable: gfortran48 - found
> > ...
> > /usr/local/bin/g++49   -pipe -g -Wl,-rpath=/usr/local/lib/gcc49
> > -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -Wno-deprecated
> > -Wno-write-strings -pipe -g -Wl,-rpath=/usr/local/lib/gcc49
> > -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -DFC_DEBUG  
> > -Wl,-rpath=/usr/local/lib/gcc48  -L/usr/local/lib/gcc48 -B/usr/local/bin
> > -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49
> > CMakeFiles/FreeCADMain.dir/MainGui.cpp.o  -o ../../bin/FreeCAD 
> > ../../lib/libFreeCADGui.so ../../lib/libFreeCADApp.so
> > ../../lib/libFreeCADBase.so /usr/local/lib/libpython2.7.so
> > /usr/local/lib/libxerces-c.so -lz -lutil /usr/local/lib/libCoin.so
> > /usr/local/lib/qt4/libQtOpenGL.so /usr/local/lib/qt4/libQtSvg.so
> > /usr/local/lib/qt4/libQtUiTools.a /usr/local/lib/qt4/libQtWebKit.so
> > /usr/local/lib/qt4/libQtGui.so /usr/local/lib/qt4/libQtXml.so
> > /usr/local/lib/qt4/libQtNetwork.so /usr/local/lib/qt4/libQtCore.so
> > /usr/local/lib/libboost_filesystem.so
> > /usr/local/lib/libboost_program_options.so /usr/local/li!  b/libboost
> _regex.so /usr/local/lib/libboost_signals.so
> /usr/local/lib/libboost_system.so /usr/local/lib/libboost_thread.so
> /usr/local/lib/libGL.so /usr/local/lib/libshiboken-python2.7.so
> /usr/local/lib/libpyside-python2.7.so
> -Wl,-rpath,/tmp/usr/ports/cad/freecad/work/.build/lib:/usr/local/lib:/usr/loc
> al/lib/qt4: > ../../lib/libFreeCADGui.so: undefined reference to
> 'std::__throw_out_of_range_fmt(char const*, ...)' 
>
> My guess is the problem still comes from "-L/usr/local/lib/gcc48" coming 
> before "-L/usr/local/lib/gcc49".
My guess is a problem with qt(4|5)
There was also a suggestion regarding making use of hints in
Mk/Uses/fortran which may also be of help to you here. I can't
believe I overlooked that myself. :P

Best wishes.

--Chris
> 
> 
> 
> > Also, regarding your USE_GCC
> > you would do well to choose:
> > USE_GCC=    4.9+
> > which says: Must use gcc49, or greater.
> 
> Ok, now I'm just trying to get it working, but your suggestion is welcome.
> 
>   bye & Thanks
>     av.
> 
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"




More information about the freebsd-ports mailing list