View Issue Details

IDProjectCategoryView StatusLast Update
0000711FSSCP---------public2006-01-13 15:13
ReporterMr_Maniac Assigned Totaylor  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000711: Little LUA-Problems (Linux)
DescriptionI hope I can report it here:
fs2_open won't compile with LUA-Support...

1. In code/parse/lua.h two lua-include-files get included.
But they are included in a way that I would have to have lua installed...
Adding a simple "../../lua/" before the files solves this...

2. Another simple thing: In code/parse/lua.cpp in line 7 "Ship/shipfx.h" should be changed to "ship/shipfx.h".
Linux is very strict with that :P

3. Now to something I don't know... When finally linking fs2_open:

ranlib libcode.a
g++ -O0 -g -Wall -I/usr/include/SDL -D_REENTRANT -fsigned-char -Wno-unknown-pragmas -O2 -march=athlon-tbird -m3dnow -mmmx -pipe -DUSE_LUA -Wno-deprecated -Wno-char-subscripts -O2 -march=athlon-tbird -m3dnow -mmmx -pipe -DUSE_LUA -g -lGL -lGLU -lopenal -lSDL -lpthread -logg -lvorbis -lvorbisfile -o fs2_open_d freespace.o levelpaging.o libcode.a ../libjpeg/libjpeg.a ../lua/liblua.a
libcode.a(scripting.o): In function `script_state::RunBytecode(script_hook&)':
./parse/scripting.h:36: undefined reference to `LuaError(char*, int, lua_State*)'
TagsNo tags attached.

Activities

taylor

2006-01-13 15:13

administrator   ~0004233

Building and linking should be fixed in CVS now.

That code is only of the quality that a Microsoft compiler would let through though (sorry WMC, but it's true). Prepare for a good bit of crashing when running scripts until the code can be fixed to work properly and a few bit size things are fixed. I don't have any time to work on it though so there is no telling when that might happen.

taylor

2006-01-13 15:13

administrator   ~0004234

Fixered.

Issue History

Date Modified Username Field Change
2006-01-13 14:05 Mr_Maniac New Issue
2006-01-13 14:22 taylor Status new => assigned
2006-01-13 14:22 taylor Assigned To => taylor
2006-01-13 15:13 taylor Note Added: 0004233
2006-01-13 15:13 taylor Status assigned => resolved
2006-01-13 15:13 taylor Resolution open => fixed
2006-01-13 15:13 taylor Note Added: 0004234