On 22/01/2015 10:49, Dr. Nikolaus Klepp wrote: > Hi all! > > At last I found some time to try compiling TDE on FreeBSD - and I have a question, too :-) > > First of all, I manged to compile tqt3 using gcc47 and as fas as I can tell all provided testprograms (example/ and tutorial/) are working as expected, just "examples/thread" ends up non-responsive. I have not tried gcc48. > > What I did not get right: > * I failed to set the correct compiler, so I had to add a symlink from g++47 -> g++ and gcc47 -> gcc > * I had to add "-thread" to configure, otherwise the build fails (debian: both "-thread" and "-no-thread" builds succeed) > * I had to add "LD_LIBRARY_PATH=<...>/tqt3/lib", otherwise the build fails because "tquic" misses it's libriaries. > * some build options like OpenGL support etc. > > So my questions are: > * Is there a way to set the compiler gp "g++47" and "gcc47" ? > * What are the build options for the current debian build? "configure" gives me this list: > It's not unusual to have symlinks to the various gcc versions as numerous may be installed. Way back, when tqt3 was qt3, I would build it on debian with something like this; cd $BUILD gzip -dc $SRC/qt3-3.5.13.tar.gz | tar -xf - && mv qt3-3.5.13 qt cd qt DEBUG_AUTOTOOL_OPT="--enable-debug=full" DEBUG_CMAKE_OPT="-ggdb" PREFIX=/opt/trinity QPREFIX=/opt/qt QTDIR=`pwd` PATH=$QTDIR/bin:/opt/trinity/bin:$PATH MANPATH=$QTDIR/doc/man:$MANPATH LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export QTDIR PREFIX QPREFIX PATH MANPATH LD_LIBRARY_PATH DEBUG_AUTOTOOL_OPT DEBUG_CMAKE_OPT echo "yes" | CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" ./configure -prefix $QPREFIX -sysconfdir /etc/trinity -release -thread -shared -fast -no-exceptions -platform linux-g++ -nis -no-pch -cups -stl -ipv6 -sm -xshape -xinerama -xcursor -xrandr -xrender -xft -tablet -xkb -system-zlib -system-libpng -system-libmng -system-libjpeg -system-nas-sound -enable-opengl -dlopen-opengl -qt-gif -qt-imgfmt-png -qt-imgfmt-jpeg -plugin-imgfmt-mng -plugin-sql-psql -plugin-sql-mysql -plugin-sql-sqlite -I/usr/include/x86_64-linux-gnu -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/freetype2 -lfontconfig -inputmethod -L/usr/lib -L/usr/lib/x86_64-linux-gnu make && make install Obviously, it's now tqt3 and there are many ways to skin a cat, this was just one way. It might give you the idea. Cheers, Mike. --