Trouble compiling Celestia, and how to add Lua function
Posted: 25.02.2006, 02:25
I'm having trouble compiling Celestia. I am running WinXP with Microsoft Visual Studio 2003.
I have downloaded the Celestia source in the past and been able to compile and run it, but when I recently updated the source from sourceforge, I lost the ability to compile without errors.
It wasn't completely smooth the first time, but this time I can't figure out what is wrong.
The modules I am having problems with are:
celengine, celutil and celestia.
I get this message on all of these modules:
fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory
and this error only with celengine:
c1xx : fatal error C1083: Cannot open source file: '.\octree.cpp': No such file or directory
octree.cpp is in the project makefile, but it isn't on the server anymore. Is it not used now? Can I just delete it from the build?
libintl.h seems to be tied to a language translator utility called "gettext".
How do I either get around using gettext, or install it (for just english)?
The whole reason for me even wanting to recompile, is that I wanted to use the CELEX Lua scripting interface to load a dll called LuaCLIPS. With this dll, I hope to include some AI into the scripts I make for Celestia.
However, when I call the loadlib() function in a CELEX script in Celestia, I get the following error:
Fatal Error:
Attempt to call global "loadlib' (a nil value)
I can run the exact same lua file in standalone Lua(5.02) and the luaCLIPS dll works fine.
So my questions are:
How can I get Celestia to compile?
How can I get the loadlib() function installed in the Lua engine in Celestia?
Thanks
Paul
I have downloaded the Celestia source in the past and been able to compile and run it, but when I recently updated the source from sourceforge, I lost the ability to compile without errors.
It wasn't completely smooth the first time, but this time I can't figure out what is wrong.
The modules I am having problems with are:
celengine, celutil and celestia.
I get this message on all of these modules:
fatal error C1083: Cannot open include file: 'libintl.h': No such file or directory
and this error only with celengine:
c1xx : fatal error C1083: Cannot open source file: '.\octree.cpp': No such file or directory
octree.cpp is in the project makefile, but it isn't on the server anymore. Is it not used now? Can I just delete it from the build?
libintl.h seems to be tied to a language translator utility called "gettext".
How do I either get around using gettext, or install it (for just english)?
The whole reason for me even wanting to recompile, is that I wanted to use the CELEX Lua scripting interface to load a dll called LuaCLIPS. With this dll, I hope to include some AI into the scripts I make for Celestia.
However, when I call the loadlib() function in a CELEX script in Celestia, I get the following error:
Fatal Error:
Attempt to call global "loadlib' (a nil value)
I can run the exact same lua file in standalone Lua(5.02) and the luaCLIPS dll works fine.
So my questions are:
How can I get Celestia to compile?
How can I get the loadlib() function installed in the Lua engine in Celestia?
Thanks
Paul