|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #1 Posted on: January 02, 2014, 03:47:06 AM |
|
|
Hey slayer, this looks like the XP bug, sometimes I get this error myself too. C:/enigma/ProgramData.eobjs should be C:/ProgramData/Roaming/ENIGMA/.eobjs Try closing and restarting from enigma.exe, and build an empty game first, this ensures the engine gets compiled safely so you don't take a chance and have to do it all over. If it still errors the same, please locate the file enigma-dev/CompilerSource/workdir.cpp and visit http://www.pastie.org and send me the contents so that I can examine it to make sure you have the correct version, and if not I'll give you a patch to fix it, hopefully.
|
|
|
slayer 64
 Joined: Jan 2014
Posts: 7
|
 |
Reply #2 Posted on: January 02, 2014, 10:38:08 PM |
|
|
i read another topic and the solution was to change something in workdir.cpp. i did that and a game compiled further than before. how do i know everything is being reset? i close lateral gm and reopen it so i think that's doing it. all my enigma stuff is in C:/enigma/ here's the workdir.cpp file http://pastie.org/8594719
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #3 Posted on: January 02, 2014, 11:04:35 PM |
|
|
|
That is partially because you changed it wrong, it should be the following.
std::string workdir = "C:/ProgramData/ENIGMA";
ProgramData is known as the %ALLUSERSPROFILE% on Windows Vista and later, on XP we just emulate this by manually creating that path. But you do not set it to C:/enigma or it will overwrite parts of ENIGMA. This ProgramData path is only meant to be a user directory where the binaries are outputted to.
The only reason this issue exists is because GNU make does not like spaces in its path, and they refuse to fix it. This is caused by %ALLUSERSPROFILE% directing to "Documents SPACE and SPACE Settings" on Windows XP.
|
|
|
slayer 64
 Joined: Jan 2014
Posts: 7
|
 |
Reply #4 Posted on: January 03, 2014, 12:08:13 AM |
|
|
|
i deleted my enigma folder. re-unzipped engima to C:/ENIGMA to make sure everything was correct. i had to make the folder ProgramData myself. i changed this std::string workdir = "C:/ProgramData/ENIGMA"; ran lateral gm. it didn't work. i changed it back to the original. ran a game in lateral gm. threw an error. changed it back to std::string workdir = "C:/ProgramData/ENIGMA"; worked pretty good. then i get the same error as in the original post. it looks like LIBINCLUDE.h is not there or something.
why is this such a process?
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #5 Posted on: January 03, 2014, 12:18:48 AM |
|
|
As I said the issue is only on XP, and is entirely GNU make's fault. http://stackoverflow.com/questions/9838384/can-gnu-make-handle-filenames-with-spacesTry the process again but make sure it does not end up writing any binaries into C:/ENIGMA or wherever ENIGMA's source is, otherwise it will get confused. You can also try setting it to this. std::string workdir = "./";But I do not know if that will work. However I was just able to get it working for someone over IRC who is also on XP, and having the same issue, following the steps you just took a second ago.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #6 Posted on: January 03, 2014, 12:37:45 AM |
|
|
|
Wait hold up, I am sorry we still encountered the same issue as you, the problem was every file was prefixed ENIGMALIBINCLUDE.h, the reason is because the code I told you didn't include the final backslash.
std::string workdir = "C:/ProgramData/ENIGMA"; Should be...
std::string workdir = "C:/ProgramData/ENIGMA/";
Try that and it should work.
Edit: We finally got it all the way through now and he is able to build a game when the final backslash is added, should work for you too now.
|
|
|
slayer 64
 Joined: Jan 2014
Posts: 7
|
 |
Reply #7 Posted on: January 03, 2014, 01:08:00 AM |
|
|
|
i don't think the problem is the directory. i tried "./" but i get the same error as in the original post.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #8 Posted on: January 03, 2014, 01:32:20 AM |
|
|
|
Please try as I said in the last post, not "./" but the following instead, I guarantee you it will work.
std::string workdir = "C:/ProgramData/ENIGMA/";
|
|
|
Bustanity
 Joined: Jan 2014
Posts: 2
|
 |
Reply #9 Posted on: January 03, 2014, 02:27:38 AM |
|
|
|
I had exactly the same problem as you did but changing the workdir to the following what Robert is suggesting fixed it;
std::string workdir = "C:/ProgramData/ENIGMA/";
|
|
|
slayer 64
 Joined: Jan 2014
Posts: 7
|
 |
Reply #10 Posted on: January 03, 2014, 03:53:50 AM |
|
|
|
ah. a slash. well, things are getting better i think. now i only have an error about a sound_update thing. looks like all the files are going to C:/ProgramData/ENGIMA/ so that's good.
mkdir.exe -p C:/ProgramData/ENIGMA/.eobjs/Windows/Windows/Run/Universal_System/Extensions/ParticleSystems/ mkdir.exe -p C:/ProgramData/ENIGMA/.eobjs/Windows/Windows/Run/Universal_System/Extensions/Paths/ mkdir.exe -p C:/ProgramData/ENIGMA/.eobjs/Windows/Windows/Run/Universal_System/Extensions/Timelines/ mkdir.exe -p C:/ProgramData/ENIGMA/.eobjs/Windows/Windows/Run/Widget_Systems/Win32/ g++ -I../Additional/i686-w64-mingw32/include -Wall -s -O3 -fno-rtti -fno-exceptions -DPATH_EXT_SET -IPlatforms/Win32/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/Win32/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -IC:/ProgramData/ENIGMA/ -Wall -s -O3 -fno-exceptions -MMD -MP -c -o C:/ProgramData/ENIGMA/.eobjs/Windows/Windows/Run/Audio_Systems/OpenAL/ALsystem.o Audio_Systems/OpenAL/ALsystem.cpp Audio_Systems/OpenAL/ALsystem.cpp: In function 'void enigma::audiosystem_update()': Audio_Systems/OpenAL/ALsystem.cpp:194:26: error: 'struct SoundChannel' has no member named 'sound_update' sound_channels[i]->sound_update(); ^ mingw32-make.exe[1]: Leaving directory `C:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL' mingw32-make.exe: *** [Game] Error 2
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #11 Posted on: January 03, 2014, 08:37:02 AM |
|
|
That... should not be happening. Where did you download ENIGMA from? That version appears out of date. Because that line of code does not exist in the latest download on our site. switch (sound_resources[i]->loaded) Is line 194 in ALsystem.cpp I was the one who coded that  PS: Also, I am very sorry I had you going in circles there over a missing backslash, really really sorry, I hate this bug and there is just nothing to do about it.
|
|
|
|