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
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: *** [namefield.o] Error 1
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.
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!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.