Re: [Tnfox-discussion] building issue with TnFox 0.89
Brought to you by:
ned14
From: Niall D. <s_s...@ne...> - 2010-12-02 15:10:34
|
Hi, Sorry it's taken so long to get back to you. It turns out that LOTS of stuff had become broken and last night I pushed a fairly hefty update of source changes to the GIT repos. It now compiles cleanly on VS2010 and GCC v4.3. However right now it segfaults on process init on both Linux and Windows :( I know what the problem is on Windows (latest changes to nedmalloc) but on Linux the segfault happens so early that gdb can't attach which is a PITA. I'm hoping the fixes on Windows will fix Linux. The only major change since the last time it was working on Linux and now is nedmalloc, and I suppose rvalue reference support in GCC (TnFOX has had rvalue reference support since it was first proposed for addition, it was just always #ifdef disabled). Seeing as rvalues are working on MSVC properly it could be a bug in this version of GCC. I have yet to try force disabling them and seeing if it fixes the process init problem. In other words, I'll get back to you! And my profuse apologies for this - I had no idea that TnFOX had become this unmaintained. It was working absolutely fine about fourteen months ago when I last ran a full test suite on all supported platforms. It's amazing how quickly toolsets can suddenly change. Niall On 28 Nov 2010 at 17:52, Paul Thomas wrote: > > > > > > The first time I downloaded a tarball, but failed to document where/how. > > This time I installed git, and used git as follows: > sudo git clone --recursive https://github.com/ned14/tnfox.git > > ...which worked well. Prior to that I had tried using: > sudo git submodule update --init --recursive > https://github.com/ned14/tnfox.git > but git complained it didn't understand the target location. > > The only config edit I made was to comment out -fast-math option in > ../tnfox/config/g++.py, > then started the build with, "sudo scons tnfox" > > Then encountered the following build error: > > > Configured for x86 DEBUG build ... > Using platform configuration /home/walnut/projects/tnfox/config/g++.py ... > Setting jobs to 2 (use -j <n> to override) > Checking for C header file pthread.h... (cached) yes > Checking for pthread_setaffinity_np(0,0,0) in C library pthread... (cached) yes > Checking for __cxa_throw() in C++ library stdc++... (cached) yes > Checking for XOpenDisplay() in C library X11... (cached) yes > Checking for XShmAttach() in C library Xext... (cached) yes > Checking for C header file X11/Xcursor/Xcursor.h... (cached) yes > Checking for C header file X11/Xft/Xft.h... (cached) yes > Checking for C header file X11/extensions/XShm.h... (cached) yes > Checking for shm_open() in C library rt... (cached) yes > Checking for dlopen() in C library dl... (cached) yes > Checking for C library cups... (cached) no > Disabling CUPS support > Checking for C library pam... (cached) no > Checking for C library pam... (cached) no > Disabling PAM support > Checking for crypt() in C library crypt... (cached) yes > Checking for GCC global symbol visibility support...(cached) yes > Checking if GCC can enable C++0x features ...(cached) yes > Making sure this is really a 32 bit compiler ...(cached) yes > Is the compiler configured for big endian architecture ...(cached) no > Checking for C++0x feature N1720 (static assertions) ...(cached) yes > Checking for C++0x feature N2118 (rvalue references) ...(cached) yes > Local VTK not found > Checking for C library z... (cached) yes > Checking for C library tiff... (cached) yes > Checking for C library png... (cached) no > PNG library not found, disabling support > Checking for C library jpeg... (cached) yes > Checking for C library bz2... (cached) no > BZip2 library not found, disabling support > Checking for SSL_library_init() in C library ssl... (cached) no > OpenSSL library not found, disabling support > Checking for glBegin(GL_POINTS) in C library GL... (cached) yes > Checking for C++ header file GL/glu.h... (cached) yes > Checking for vtkVersion::GetVTKVersion() in C++ library vtkCommon... (cached) no > basetarget= lib/x86_7/libTnFOX-0.89d.so.0.0.0 > basetarget= lib/x86_7/libTnFOX_sql-0.89d.so.0.0.0 > basetarget= lib/x86_7/libTnFOX_graphing-0.89d.so.0.0.0 > scons: done reading SConscript files. > scons: Building targets ... > python UpdateMunged.py -d src -s include/tnfxgitrev.h -c "-f 4 -c > include/FXErrCodes.h -t TnFOXTrans.txt" > TnFOX Munge file updater v0.22 > UpdateMunged.py:77: DeprecationWarning: os.popen4 is deprecated. Use > the subprocess module. > (childinh, childh)=os.popen4("git describe") > > This is built from GIT revision 63e2e7c > > > No files need updating > > [snip: gcc compile listing] > > > In file included from src/TnFXApp.cxx:26: > include/qptrlist.h:60: error: redefinition of default argument for > 'class allocator' > include/fxdefs.h:982: note: original definition appeared here > include/qptrlist.h:61: error: redefinition of default argument for > 'class allocator' > include/fxdefs.h:983: note: original definition appeared here > scons: *** [Debug_g++_x86_7/TnFXApp.os] Error 1 > scons: building terminated because of errors. > > Also wondering about any "Hello World" proggy for tnFox. Possibly refer to > fox toolkit for examples? > > Thank you. > -- Technology & Consulting Services - ned Productions Limited. http://www.nedproductions.biz/. VAT reg: IE 9708311Q. Company no: 472909. |