Did Kyra 2.1.3 change the build process?

Help
2006-08-04
2013-06-04
  • Gianfranco Berardi

    All I did was go into the kyra directory and run make.  I even tried following the makefile's example of exporting the environment variable and then running make clean and make.  Am I supposed to do something else first?

    $ sdl-config --version
    1.2.10

    g++ -c -Wall -Wno-unknown-pragmas -Wno-format -O3  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT namefield.cpp -o namefield.o
    namefield.h:94: error: expected `)' before '*' token
    namefield.h:117: error: ISO C++ forbids declaration of 'SDL_RWops' with no type
    namefield.h:117: error: expected ';' before '*' token
    namefield.cpp: In member function 'void KrCachedWrite::Write(const std::string&)':
    namefield.cpp:169: error: 'stream' was not declared in this scope
    namefield.cpp:169: error: 'SDL_RWtell' was not declared in this scope
    namefield.cpp:174: error: 'SDL_WriteLE32' was not declared in this scope
    namefield.cpp: In member function 'void KrCachedWrite::Flush()':
    namefield.cpp:196: error: 'stream' was not declared in this scope
    namefield.cpp:196: error: 'SDL_RWseek' was not declared in this scope
    namefield.cpp:197: error: 'SDL_WriteLE32' was not declared in this scope
    make[1]: *** [namefield.o] Error 1

     
    • Gianfranco Berardi

      After spending some time on it, I found that namefield.h can include "SDL.h" and the engine (and so the library) will compile just fine.  I'm not sure why it wasn't needed in previous versions of Kyra, though. 

       
    • Lee Thomason

      Lee Thomason - 2006-08-06

      SDL 2.10 and 2.11 moved some things around on Kyra. I'm working on getting a new version tested with the new SDL - I'll get it posted in a few weeks.

      Glad you found the workaround!

      lee

       

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks