cartrite wrote:Fridger,
Youl'll notice that the vcproj file from cvs has
CELX;LUA_VER=0x050100;USE_SPICE;WINVER=0x0400
Are these needed in the vcproj file generated by qmake to build spice and lua support?
I changed my qmake.conf to look like this
Code: Select all
DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT CELX LUA_VER=0x050100 USE_SPICE WINVER=0x0400 _WIN32_WINNT=0x400
and changed the celestia.pro file to include the extra libs and header folders.
I'm not sure if I need that in qmake.conf or not.
cartrite
cartrite,
yes these DEFINES are for lua and spice. The best is to add them into
the
project file rather than in qmake.conf as
DEFINES = CELX LUA_VER=0x050100 USE_SPICE
separated by BLANKS and without trailing -D's! You might need
another variant of the LUA_VER definition, depending on the LUA lib
you are using.
I would not add macros to qmake.conf that are dependent on a
particular program! For these things the .pro project file is meant.
Things work very well for me after I updated of course the project file
with FOUR .cpp files + respective headers that are using LUA:
celestia/celx.cpp \
celengine/scriptobject.cpp \
celengine/scriptorbit.cpp \
celengine/scriptrotation.cpp \
and the same for the headers.
Then you must also add the lua and spice libs and includes here
(towards the bottom of the project file)
win32 {
INCLUDEPATH += \
../inc/libintl \
../inc/libz \
../inc/libpng \
../inc/libjpeg
../inc/lua-5.1 \
../inc/spice
LIBS += -L../lib \
-lzlib \
-llibpng \
-llibjpeg \
-lintl \
-llua \
-lspice
}
++++++++++++++++++++++
I do these changes in another copy of celestia.pro, called
celestia-lua.pro, that will NOT be updated when Chris commits further
changes.
++++++++++++++++++++++
If things don't work for you I can send you my celestia-lua.pro file.
Note that the names of your includes and libs may differ!
F.