Unable to compile under linux

  • Patrick

    Patrick - 2006-12-03

    Linux kernel 2.6.17 gcc 4.1.2 on amd64 and source from svn

    Compilation quits with:

    make[3]: Entering directory `/usr/src/pixie/src/ri'
    if /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..     -MT renderer.lo -MD -MP -MF ".deps/renderer.Tpo" -c -o renderer.lo renderer.cpp; \         then mv -f ".deps/renderer.Tpo" ".deps/renderer.Plo"; else rm -f ".deps/renderer.Tpo"; exit 1; fi
    g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -MT renderer.lo -MD -MP -MF .deps/renderer.Tpo -c renderer.cpp  -fPIC -DPIC -o .libs/renderer.o
    renderer.cpp: In member function 'CShaderInstance* CRendererContext::getShader(const char*, int, int, char**, void**)':
    renderer.cpp:750: error: 'parseShader' was not declared in this scope
    renderer.cpp: In member function 'void CRendererContext::rendererThread(void*)':
    renderer.cpp:2113: error: cast from 'void*' to 'int' loses precision
    ../common/containers.h: In member function 'void CTrie<valType>::insert(const char*, valType) [with valType = CNetFileMapping*]':
    renderer.cpp:6503:   instantiated from here
    ../common/containers.h:318: error: cast from 'CTrie<CNetFileMapping*>::CTrieLeaf*' to 'unsigned int' loses precision
    ../common/containers.h:321: error: cast from 'CTrie<CNetFileMapping*>::CTrieNode*' to 'unsigned int' loses precision

    I've tried compiling with gcc-3.4 instead, and it will finish, but rndr segfaults.

    • Patrick

      Patrick - 2006-12-12

      After digging through the forums, I see now the code isn't 64bit compliant. Out of curiosity, any plans for the future to make it so?

      • Okan Arikan

        Okan Arikan - 2006-12-12

            Hi Patrick,

            Yes, this is actually not too difficult. But this will have to wait until the version after the next. We're already doing a lot of fundamental changes.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks