Iris2.de

Iris2-Forum
It is currently Thu Mar 28, 2024 2:03 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Nov 25, 2008 5:13 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
MAIN_WORKING_DIR_NOT_SET_VIA_COMPILE

This is my iris.make
Code:
# C++ Static Library Makefile autogenerated by premake
# Don't edit this file! Instead edit `premake.lua` then rerun `make`

ifndef CONFIG
  CONFIG=Debug
endif

# if multiple archs are defined turn off automated dependency generation
DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)

ifeq ($(CONFIG),Debug)
  BINDIR := bin
  LIBDIR := .
  OBJDIR := obj/Debug
  OUTDIR := bin
  CPPFLAGS := $(DEPFLAGS) -D "USE_OPENAL" -I "lugre/include" -I "./lugre/lib/lua-5.1.4//src/" -I "include" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/"
  CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g `pkg-config --cflags OGRE` `pkg-config --cflags openal` `pkg-config --cflags vorbisfile` `wx-config --cflags`
  CXXFLAGS += $(CFLAGS)
  LDFLAGS += -L$(BINDIR) -L$(LIBDIR) `pkg-config --libs OGRE` `pkg-config --libs openal` `pkg-config --libs vorbisfile` `wx-config --libs` -llugrelib -llugrelua -llugreois -llugrelua -lmd5lib -lcaelumlib
  LDDEPS := liblugrelib.a liblugrelua.a liblugreois.a liblugrelua.a libmd5lib.a libcaelumlib.a
  RESFLAGS := -D "USE_OPENAL" -I "lugre/include" -I "./lugre/lib/lua-5.1.4//src/" -I "include" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/"
  TARGET := iris
BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
endif

ifeq ($(CONFIG),Release)
  BINDIR := bin
  LIBDIR := .
  OBJDIR := obj/Release
  OUTDIR := bin
  CPPFLAGS := $(DEPFLAGS) -D "USE_OPENAL" -I "lugre/include" -I "./lugre/lib/lua-5.1.4//src/" -I "include" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/"
  CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -O2 `pkg-config --cflags OGRE` `pkg-config --cflags openal` `pkg-config --cflags vorbisfile` `wx-config --cflags`
  CXXFLAGS += $(CFLAGS)
  LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -s `pkg-config --libs OGRE` `pkg-config --libs openal` `pkg-config --libs vorbisfile` `wx-config --libs` -llugrelib -llugrelua -llugreois -llugrelua -lmd5lib -lcaelumlib
  LDDEPS := liblugrelib.a liblugrelua.a liblugreois.a liblugrelua.a libmd5lib.a libcaelumlib.a
  RESFLAGS := -D "USE_OPENAL" -I "lugre/include" -I "./lugre/lib/lua-5.1.4//src/" -I "include" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/" -I "lugre/lib/md5/include/" -I "lugre/lib/caelum/include/"
  TARGET := iris
BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
endif

OBJECTS := \
   $(OBJDIR)/data_groundblock.o \
   $(OBJDIR)/huffman.o \
   $(OBJDIR)/data_hue.o \
   $(OBJDIR)/data_hue_L.o \
   $(OBJDIR)/data_mapinfo.o \
   $(OBJDIR)/spritemanager.o \
   $(OBJDIR)/data_multi.o \
   $(OBJDIR)/data_map.o \
   $(OBJDIR)/grannyloader_i2.o \
   $(OBJDIR)/terrain.o \
   $(OBJDIR)/ogremanualloader_L.o \
   $(OBJDIR)/data_common.o \
   $(OBJDIR)/data_texmap.o \
   $(OBJDIR)/data_staticblock_L.o \
   $(OBJDIR)/data_tiletype_L.o \
   $(OBJDIR)/data_artmap_L.o \
   $(OBJDIR)/data_tiletype.o \
   $(OBJDIR)/terrain_multitex.o \
   $(OBJDIR)/data_L.o \
   $(OBJDIR)/data_anim.o \
   $(OBJDIR)/data_artmap.o \
   $(OBJDIR)/granny_L.o \
   $(OBJDIR)/grannydump.o \
   $(OBJDIR)/spritemanager_L.o \
   $(OBJDIR)/prefix.o \
   $(OBJDIR)/data_light.o \
   $(OBJDIR)/data_sound_L.o \
   $(OBJDIR)/data_gump.o \
   $(OBJDIR)/data_radar_L.o \
   $(OBJDIR)/data_anim_L.o \
   $(OBJDIR)/data_lookupfile.o \
   $(OBJDIR)/data_sound.o \
   $(OBJDIR)/data.o \
   $(OBJDIR)/data_font.o \
   $(OBJDIR)/scripting.iris.o \
   $(OBJDIR)/pathsearch.o \
   $(OBJDIR)/data_gump_L.o \
   $(OBJDIR)/data_staticblock.o \
   $(OBJDIR)/data_groundblock_L.o \
   $(OBJDIR)/data_radar.o \
   $(OBJDIR)/data_multi_L.o \
   $(OBJDIR)/ogremanualloader.o \
   $(OBJDIR)/main.o \
   $(OBJDIR)/grannyparser.o \
   $(OBJDIR)/builder_L.o \
   $(OBJDIR)/data_font_L.o \
   $(OBJDIR)/grannyogreloader.o \
   $(OBJDIR)/data_texmap_L.o \

MKDIR_TYPE := msdos
CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
ifeq (,$(CMD))
  MKDIR_TYPE := posix
endif
ifeq (/bin,$(findstring /bin,$(SHELL)))
  MKDIR_TYPE := posix
endif
ifeq ($(MKDIR_TYPE),posix)
  CMD_MKBINDIR := mkdir -p $(BINDIR)
  CMD_MKLIBDIR := mkdir -p $(LIBDIR)
  CMD_MKOUTDIR := mkdir -p $(OUTDIR)
  CMD_MKOBJDIR := mkdir -p $(OBJDIR)
else
  CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR))
  CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR))
  CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR))
  CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR))
endif

.PHONY: clean

$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
   @echo Linking iris
   -@$(CMD_MKBINDIR)
   -@$(CMD_MKLIBDIR)
   -@$(CMD_MKOUTDIR)
   @$(BLDCMD)

clean:
   @echo Cleaning iris
ifeq ($(MKDIR_TYPE),posix)
   -@rm -f $(OUTDIR)/$(TARGET)
   -@rm -rf $(OBJDIR)
else
   -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET))
   -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR))
   -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR))
endif

$(OBJDIR)/data_groundblock.o: src/data_groundblock.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/huffman.o: src/huffman.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_hue.o: src/data_hue.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_hue_L.o: src/data_hue_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_mapinfo.o: src/data_mapinfo.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/spritemanager.o: src/spritemanager.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_multi.o: src/data_multi.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_map.o: src/data_map.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/grannyloader_i2.o: src/grannyloader_i2.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/terrain.o: src/terrain.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/ogremanualloader_L.o: src/ogremanualloader_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_common.o: src/data_common.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_texmap.o: src/data_texmap.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_staticblock_L.o: src/data_staticblock_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_tiletype_L.o: src/data_tiletype_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_artmap_L.o: src/data_artmap_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_tiletype.o: src/data_tiletype.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/terrain_multitex.o: src/terrain_multitex.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_L.o: src/data_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_anim.o: src/data_anim.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_artmap.o: src/data_artmap.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/granny_L.o: src/granny_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/grannydump.o: src/grannydump.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/spritemanager_L.o: src/spritemanager_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/prefix.o: src/prefix.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_light.o: src/data_light.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_sound_L.o: src/data_sound_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_gump.o: src/data_gump.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_radar_L.o: src/data_radar_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_anim_L.o: src/data_anim_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_lookupfile.o: src/data_lookupfile.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_sound.o: src/data_sound.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data.o: src/data.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_font.o: src/data_font.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/scripting.iris.o: src/scripting.iris.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/pathsearch.o: src/pathsearch.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_gump_L.o: src/data_gump_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_staticblock.o: src/data_staticblock.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_groundblock_L.o: src/data_groundblock_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_radar.o: src/data_radar.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_multi_L.o: src/data_multi_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/ogremanualloader.o: src/ogremanualloader.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/main.o: src/main.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/grannyparser.o: src/grannyparser.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/builder_L.o: src/builder_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_font_L.o: src/data_font_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/grannyogreloader.o: src/grannyogreloader.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

$(OBJDIR)/data_texmap_L.o: src/data_texmap_L.cpp
   -@$(CMD_MKOBJDIR)
   @echo $(notdir $<)
   @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"

-include $(OBJECTS:%.o=%.d)

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 5:21 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
we talked on irc (alvin_lee), he's on fedora 9, 64 bit with gcc 4.3.0

somehow the iris.make is missing the
Code:
-D "MAIN_WORKING_DIR=\"..\""

define, so the working dir is not set properly.

i added the MAIN_WORKING_DIR_NOT_SET_VIA_COMPILE warning in main.cpp to detect this.

probably a premake problem.

it's not only this one, but also other things are missing, he also gets another error if this define is set manually..
(md5 lib not compiled or so : http://rafb.net/p/k2rkKP93.html )

any ideas ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2008 11:16 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
I updated fedora to version 10. Now it uses gcc-4.3.2. I continue getting errors.
When i try to start iris2 i get this message:
Code:
~/jogos/iris2/bin ~/jogos/iris2
MAIN_WORKING_DIR_NOT_SET_VIA_COMPILE, should be set as compiler constant via -DMAIN_WORKING_DIR=\"../\" or similar
MAIN_WORKING_DIR=.
MainWorkingDir   ./
lugreluapath   ./lugre/lua/
./lua/main.lua:130: attempt to index local 'fp' (a nil value)
lugre/src/lugre_main.cpp:189:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
  lugre/src/lugre_scripting.cpp:368:Init
PrintLuaStackTrace:
LuaStackTrace:

ERROR : error in main script-initialisation

If this error remains after running the updater and you think this is a bug
please check the BugTracker at www.iris2.de
and report it if it is not already known.
Please also append the logfile in bin/stacktrace.log to your bugreport.

Ghoulsblade made a hack to it but a get another error. Look:
Code:
cFullFileLoader(/media/disk-1/Program Files/EA Games/Ultima Online Mondain's Legacy/staidx0.mul) : 5.2 MB
cStaticBlockLoader_IndexedFullFile miMapW=896
LuaErrorHandler start

LuaErrorHandler end
lugre/src/lugre_main.cpp:189:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
  lugre/src/lugre_scripting.cpp:263:LuaCall
   lugre/src/lugre_scripting.cpp:187:PCallWithErrFuncWrapper
    lugre/src/lugre_scripting.ogre.cpp:420:l_Client_RenderOneFrame
     lugre/src/lugre_game.cpp:35:RenderOneFrame
      lugre/src/lugre_ogrewrapper.cpp:607:RenderOneFrame
       lugre/src/lugre_input.cpp:487:KeyUp
        lugre/src/lugre_scripting.cpp:263:LuaCall
         lugre/src/lugre_scripting.cpp:209:LuaErrorHandler
PrintLuaStackTrace:
LuaStackTrace:

   [C]: in function `Client_RenderOneFrame'
   ../lua/main.lua:495: in function `MainStep'
   ../lua/main.lua:417: in function <../lua/main.lua:321>
ERROR : LuaError
error running function `KeyUp': ../lua/lib.compass.lua:363: attempt to concatenate local 'md5' (a nil value)
LuaStackTrace:

   ../lua/lib.compass.lua:363: in function `SetCompassMapIndex'
   ../lua/lib.loading.lua:481: in function `LoadMap'
   ../lua/lib.loading.lua:367: in function `ExecuteMapChangeIfNeeded'
   ../lua/main.lua:432: in function `StartInGame'
   ../lua/lib.mainmenu.lua:114: in function <../lua/lib.mainmenu.lua:91>
   ../lua/lib.mainmenu.lua:139: in function <../lua/lib.mainmenu.lua:132>
   ../lua/lib.mainmenu.lua:376: in function `?'
   ../lugre/lua/lib.gui.lua:103: in function `GUI_TriggerWidgetCallback_BackwardComp'
   ../lugre/lua/lib.gui.lua:158: in function `GUIMouseEvent'
   ../lugre/lua/lib.input.lua:105: in function `MouseEvent'
   ../lugre/lua/lib.input.lua:169: in function <../lugre/lua/lib.input.lua:149>
   [C]: in function `Client_RenderOneFrame'
   ../lua/main.lua:495: in function `MainStep'
   ../lua/main.lua:417: in function <../lua/main.lua:321>
If this error remains after running the updater and you think this is a bug
please check the BugTracker at www.iris2.de
and report it if it is not already known.
Please also append the logfile in bin/stacktrace.log to your bugreport.
(0) : fatal error C9999: *** exception during compilation ***
Cg compiler terminated due to fatal error~/jogos/iris2

Thanks.

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 7:44 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
Now i tested with openSuSE 11.1 that uses gcc-4_3 and get the same error (i think). Look:
Code:
~/jogos/iris2/bin ~/jogos/iris2
MAIN_WORKING_DIR_NOT_SET_VIA_COMPILE, should be set as compiler constant via -DMAIN_WORKING_DIR=\"../\" or similar
MAIN_WORKING_DIR=.
MainWorkingDir  ./
lugreluapath    ./lugre/lua/
./lua/main.lua:131: attempt to index local 'fp' (a nil value)
lugre/src/lugre_main.cpp:189:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
  lugre/src/lugre_scripting.cpp:368:Init
PrintLuaStackTrace:
LuaStackTrace:

ERROR : error in main script-initialisation

If this error remains after running the updater and you think this is a bug
please check the BugTracker at www.iris2.de
and report it if it is not already known.
Please also append the logfile in bin/stacktrace.log to your bugreport.
./start.sh: line 5:  5955 Abortado                ./iris $1 $2 $3 $4 $5 $6 $7 $8
~/jogos/iris2


Edit: This is 64bits version of openSuSE

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Last edited by iuri_BR on Sat Jan 31, 2009 4:02 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 4:01 pm 
Offline
Power User
User avatar

Joined: Thu Jun 10, 2004 4:01 pm
Posts: 152
Location: Brasil
I tested with ubuntu 8.10 32 bits and i get the same error. It uses 4.3.2 version of gcc too. Look:
Code:
~/jogos/iris2/bin ~/jogos/iris2
MAIN_WORKING_DIR_NOT_SET_VIA_COMPILE, should be set as compiler constant via -DMAIN_WORKING_DIR=\"../\" or similar
MAIN_WORKING_DIR=.
setting up luajit
MainWorkingDir   ./
lugreluapath   ./lugre/lua/
./lua/main.lua:131: attempt to index local 'fp' (a nil value)
lugre/src/lugre_main.cpp:189:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
  lugre/src/lugre_scripting.cpp:368:Init
PrintLuaStackTrace:
LuaStackTrace:

ERROR : error in main script-initialisation

If this error remains after running the updater and you think this is a bug
please check the BugTracker at www.iris2.de
and report it if it is not already known.
Please also append the logfile in bin/stacktrace.log to your bugreport.
./start.sh: line 5: 29590 Cancelado               ./iris $1 $2 $3 $4 $5 $6 $7 $8
~/jogos/iris2

_________________
Please, they answer to my questions in Portuguese or the formal English, therefore I use google to translate them.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 5:25 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
the file "iris.make" that is generated by "premakelinux.sh" should contain a line including "MAIN_WORKING_DIR".

if it does not, then something is wrong with your checkout or with premake (64 bit maybe ? iris comes with a premake binary in the iris dir, but that might be for 32 bit).

maybe rerun "premakelinux.sh" or if that doesn't help, get a fresh checkout to get rid of all temporary files.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 6:12 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
problem solved, it was caused by a bug in premake.lua, disabling audio also disabled other things listed after it due to lua ipairs table iteration stopping when encountering a nil entry, and nil entries being used for disabled defines


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group