Crystal Space 3D - Kompilierproblem (Anfängerfrage)



  • Hallo,
    ich habe mir die Crystal Space 3D Engine (http://crystal.sourceforge.net/) runtergeladen (v0.98) und habe versucht, das Simple1.cpp Programm zu kompilieren.
    Da ich in dem Manual keine Hilfe zum Kompilieren gefunden habe, benutze ich folgenden Aufruf:

    g++ -L/usr/local/lib -lcstool -lcsgfx  -lcsgeom -lcsutil -lpthread -lz  -lm -ldl -lnsl -L/usr/local/lib -o simple simple1.c
    

    bzw.

    g++ `cs-config --libs` -o simple simple1.c
    

    Die Fehlermeldungen sind:

    /tmp/cccBV2xY.o(.text+0x47d): In function `Simple::Initialize()':
    : undefined reference to `csInitializer::RequestPlugins(iObjectRegistry*, ...)'
    /tmp/cccBV2xY.o(.text+0x4bb): In function `Simple::Initialize()':
    : undefined reference to `csCommandLineHelper::CheckHelp(iObjectRegistry*, iCommandLineParser*)'
    /tmp/cccBV2xY.o(.text+0x4d1): In function `Simple::Initialize()':
    : undefined reference to `csCommandLineHelper::Help(iObjectRegistry*, iCommandLineParser*)'
    /tmp/cccBV2xY.o(.text+0x7dd): In function `Simple::Initialize()':
    : undefined reference to `csInitializer::OpenApplication(iObjectRegistry*)'
    /tmp/cccBV2xY.o(.text+0x843): In function `Simple::Start()':
    : undefined reference to `csDefaultRunLoop(iObjectRegistry*)'
    /tmp/cccBV2xY.o(.text+0x866): In function `main':
    : undefined reference to `csInitializer::CreateEnvironment(int, char const* const*)'
    /tmp/cccBV2xY.o(.text+0x958): In function `main':
    : undefined reference to `csInitializer::DestroyApplication(iObjectRegistry*)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI4iVFSE5GetIDEv+0x13): In function `scfInterface<iVFS>::GetID()':
    : undefined reference to `iSCF::SCF'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI4iVFSE5GetIDEv+0x23): In function `scfInterface<iVFS>::GetID()':
    : undefined reference to `iSCF::SCF'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI7iEngineE5GetIDEv+0x13): In function `scfInterface<iEngine>::GetID()':
    : undefined reference to `iSCF::SCF'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI7iEngineE5GetIDEv+0x23): In function `scfInterface<iEngine>::GetID()':
    : undefined reference to `iSCF::SCF'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI8iImageIOE5GetIDEv+0x13): In function `scfInterface<iImageIO>::GetID()':
    : undefined reference to `iSCF::SCF'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN12scfInterfaceI8iImageIOE5GetIDEv+0x23): more undefined references to `iSCF::SCF' follow
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0xe1): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x10c): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x137): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x149): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x15b): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x16c): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintfV(char const*, char*)'
    /tmp/cccBV2xY.o(.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc+0x17c): In function `csReporterHelper::ReportV(iObjectRegistry*, int, char const*, char const*, char*)':
    : undefined reference to `csPrintf(char const*, ...)'
    collect2: ld returned 1 exit status
    

    Dabei habe ich Crystal Space ohne Fehlermeldungen konfiguriert, kompiliert und installiert.



  • Und was genau hat das mit mir zu tun?

    Bye, TGGC (NP Intelligenz)



  • Na, was das mit dir zu tun hat weiß ich auch nicht ganz ...


Anmelden zum Antworten