ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: bernbout on April 16, 2013, 08:29:33 pm

Title: Error compiling the Sample Catch the clown
Post by: bernbout on April 16, 2013, 08:29:33 pm
Hi Guys

Downloaded and installed Enigma - LateralGM version 1.6.0 $rev$
I am using Windows XP sp3

Started and it downloaded and installed files with no error.
Opened the Sample game Catch the Clown as described on the installation page.
Clicked "Run"

A window popped up and after a while I see there is an error as below:

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 00856b30
Copying resources:
Copying sprite names [2]
Copying sound names [0]
Copying background names [0]
Copying path names [0]
Copying script names [0]
Copying font names [1]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [2]
Copying room names [1]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
2 Objects:
 obj_clown: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_clown::create... Done. Parse... Done.
  Event[3]:   Parsing 1 sub-events:
Check `obj_clown::step... Done. Parse... Done.
 obj_wall: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_wall::create... Done. Parse... Done.
  Event[8]:   Parsing 1 sub-events:
Check `obj_wall::draw... Done. Parse... Done.
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
Finished
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Writing font data
Writing room data
Running make from `mingw32-make.exe'
Full command line: mingw32-make.exe Game GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=None PLATFORM=Win32 CXXFLAGS="-I../Additional/Windows/include" LDFLAGS="-L../Additional/Windows/lib -static-libgcc -static-libstdc++" COMPILEPATH=Windows/Windows EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/DataStructures" OUTPUTNAME="C:/DOCUME~1/myusername/LOCALS~1/Temp/egm2722361728209991538.tmp" eTCpath=""
mingw32-make.exe -C ENIGMAsystem/SHELL
mingw32-make.exe[1]: Entering directory `d:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mkdir.exe -p .eobjs/Windows/Windows/Run/
mkdir.exe -p .eobjs/Windows/Windows/Run/../Additional/Windows/al/
mkdir.exe -p .eobjs/Windows/Windows/Run/Audio_Systems/OpenAL/
mkdir.exe -p .eobjs/Windows/Windows/Run/Collision_Systems/Precise/
mkdir.exe -p .eobjs/Windows/Windows/Run/Graphics_Systems/OpenGL1/
mkdir.exe -p .eobjs/Windows/Windows/Run/Platforms/Win32/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Alarms/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/DataStructures/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/DateTime/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/MotionPlanning/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Paths/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Timelines/
mkdir.exe -p .eobjs/Windows/Windows/Run/Widget_Systems/None/
g++ -I../Additional/Windows/include -IPlatforms/Win32/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -IUniversal_System/Info -I.  -MMD -MP -c -o .eobjs/Windows/Windows/Run/SHELLmain.o SHELLmain.cpp
flashplayerpluginflashplayerpluginflashplayerpluginmingw32-make.exe[1]: Leaving directory `d:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe[1]: Entering directory `d:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mkdir.exe -p .eobjs/Windows/Windows/Run/
mkdir.exe -p .eobjs/Windows/Windows/Run/../Additional/Windows/al/
mkdir.exe -p .eobjs/Windows/Windows/Run/Audio_Systems/OpenAL/
mkdir.exe -p .eobjs/Windows/Windows/Run/Collision_Systems/BBox/
mkdir.exe -p .eobjs/Windows/Windows/Run/Graphics_Systems/OpenGL1/
mkdir.exe -p .eobjs/Windows/Windows/Run/Platforms/Win32/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Alarms/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/DataStructures/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/DateTime/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/MotionPlanning/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Paths/
mkdir.exe -p .eobjs/Windows/Windows/Run/Universal_System/Extensions/Timelines/
mkdir.exe -p .eobjs/Windows/Windows/Run/Widget_Systems/None/
windres.exe -o .eobjs/Windows/Windows/Run/../Additional/Windows/al/oal32.rc -i ../Additional/Windows/al/oal32.rc -O rc
windres.exe: ../Additional/Windows/al/oal32.rc:3: syntax error
flashplayerpluginmingw32-make.exe[1]: *** [.eobjs/Windows/Windows/Run/../Additional/Windows/al/oal32.rc] Error 1
mingw32-make.exe[1]: Leaving directory `d:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe: *** [Game] Error 2

I don't know how to solve this but it appears to be some OpenAl error.
I have already installed the OpenAL driver from this link:
http://connect.creativelabs.com/openal/Downloads/oalinst.zip

The file versions in my Windows\system32 and the  ENIGMA\enigma-dev\ENIGMAsystem\Additional\Windows\al folders are both identical:

OpenAl32.dll - 6.14.357.24
wrap_oal.dll - 2.2.0.5


so I don't know what the problem is.

By the way I tried changing the settings to FMOD and even None for the Audio but I still get the same error message about oal

Code: [Select]
Using None/FMOD for Audio
....
....
windres.exe -o .eobjs/Windows/Windows/Run/../Additional/Windows/al/oal32.rc -i ../Additional/Windows/al/oal32.rc -O rc
windres.exe: ../Additional/Windows/al/oal32.rc:3: syntax error
flashplayerpluginmingw32-make.exe[1]: *** [.eobjs/Windows/Windows/Run/../Additional/Windows/al/oal32.rc] Error 1
mingw32-make.exe[1]: Leaving directory `d:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe: *** [Game] Error 2

Please Help

Title: Re: Error compiling the Sample Catch the clown
Post by: Josh @ Dreamland on April 16, 2013, 08:32:10 pm
ENIGMA attempts to bundle a version of OpenAL in with user programs for supporting systems that do not have it already installed. Your compiler thinks there's a syntax error in the resource file that instructs it to do so. There isn't one. How did you install MinGW?
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 16, 2013, 10:26:17 pm
Hi Josh

Thanks for your prompt response.

I did not install MinGW. I just followed the Install instructions on your web page.

I downloaded the ENIGMA Zip Installer.exe, ran it to extract the files and copied them to the D:\ drive. I then ran the ENIGMA.exe and it downloaded and installed some files and then the Interface started.

Seems like MinGW was installed by the Installer itself. In fact the documentation said that I needed to download another file - WinPatch.zip but this was already there in the ENIGMA folder, put there by the Installer, so I did not download it.

After the initial startup and download it was deleted.

I opened the sample gmx and selected run and the above is what I see in the compile window.

I have attached the D:\ENIGMA\enigma-dev\enigma_log.log in case that helps.
Title: Re: Error compiling the Sample Catch the clown
Post by: Josh @ Dreamland on April 16, 2013, 11:18:05 pm
Interesting. I didn't create that installer; another developer did. I'll wait for him to try to explain what went wrong with it. The issue is certainly to do with windres.exe, but since his installer contains a version he's tested to work, I am not sure what the issue is.
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 17, 2013, 01:40:27 am
Ok. Waiting on the developer to reply...
Title: Re: Error compiling the Sample Catch the clown
Post by: TheExDeus on April 17, 2013, 05:42:16 am
Did you extract the win patch? I don't remember if you had to or not. The installed did work for me flawlessly, but it's possible that it used MinGW I already had and not the one extracted. Have your tried installing it without moving to D:/? Its possible that it set some environment variables and when you moved the folder the variables got invalidated.
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 17, 2013, 06:07:49 am
The Zip Installer extracts WinPatch for you, and if it hadn't of extracted he wouldn't be able to run LGM. I just tested on my E:/ Drive from scratch and it works fine for me, the drive shouldn't make a difference since MinGW is contained within the folder.

So bernbout are you on 64bit system? I remember there were some Italian guys on the IRC not long ago that were having trouble with OpenAL as well, but I can't remember the specifics of that problem and if/how they managed to fix it in the end but I believe it was still compiling for them. In any case you seem to know what you're doing bernbout could you please try installing from a git check-out instead of using the installer, you'll find instructions for it below the easy install method: http://enigma-dev.org/docs/Wiki/Install When it gets to the git checkout you can just use the https://github.com/enigma-dev/enigma-dev/archive/master.zip to test for now. Make sure to put enigma somewhere in C:/ though for this install method.
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 17, 2013, 10:27:13 am
@TheExDeus

I did not need to. The installer did that for me.

@polygone
I have Windows XP Sp3 32 Bit

1. I downloaded the MinGW installer and selected the options as suggested in the wiki and it installed MinGW on c:\MinGW
2. One of the options duntin install was to update from the git so I selected that and MinGS was installed in c:\MinGW
3. I Extracted the contents of the Enigma-dev master.zip into my c: drive as c:\enigma\enigma-dev
4. I extracted the files from Winpatch.zip and copied them over into the enigma-dev folder, overwriting the original files there.
5. I Started enigma.exe and it popped up a window compiling different files and finally the popup went away and the Enigma ide was there.
6. I opened the Catch_the_Clown.gmk and selected Run.
7. After a while I get the same error.

The log file I copied and attached below. This is for the actions as noted above and when trying to run the sample.

Note: I am able to start up the IDE and load and edit the .gmx. It is only when I select the option to "Run" the file that I cannot and get an error.

What next?
Title: Re: Error compiling the Sample Catch the clown
Post by: Josh @ Dreamland on April 17, 2013, 10:39:34 am
Hey polyfuck, just noticed you changed my Winpatch zip. Why?
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 17, 2013, 11:51:07 am
Well that means it's not a problem with the Installer Zip at least, so Josh can stop fobbing it off onto me :p

I've not seen anybody else having this particular problem though, I don't see why it would be happening for you. Perhaps it's because you already had OpenAl installed? Although I don't know why it would be but you could try un-installing it and see if that fixes the problem but that's probably a very long shot.

Quote
Hey polyfuck, just noticed you changed my Winpatch zip. Why?
I added the gcc.ey to it ....  oh hang on cheeseboy also removed libalure32 from the winpatch but I test and it still worked on my normal copy. I don't see that being the problem? :/

But bernbout if you want to test with the old WinPatch just in case: https://dl.dropbox.com/u/1052740/enigma/Releases/2013-03-02/WinPatch.zip
Try it in the git-check out folder though not the from the Installer Zip (cause that one will just error with the old file).
Title: Re: Error compiling the Sample Catch the clown
Post by: Goombert on April 17, 2013, 04:43:22 pm
I've had my repo fuck up on me multiple times, usually from editing shit I didn't I should not be editing, thus you should also try a complete reinstall.
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 17, 2013, 04:50:54 pm
Somebody came on the IRC earlier called Adaas and reported what appeared to be the same issue.
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 17, 2013, 08:43:26 pm
@Robert B Colton

As you will read, I did do a complete reinsrall using the manual GIT method with the same result.

@polygone

Uninstalling oal did not help. Same error.

I did check the ..\Additional\Windows\al\folder and found a oal32.rc file.

Opening it in a text editor I see just this in it:

Code: [Select]
oal32 10 OpenAL32.dll
woal  10 wrap_oal.dll

I thought a .rc file was a resource file but this seems to be just some text.

Is that correct?

I just thought of one thing. If you could be so kind as to zip up your Enigma_dev folder WITHOUT MinGW and put it somewhere for d/l I could download that and try?

Thanks
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 18, 2013, 04:37:37 am
Ok then you can try that:
https://docs.google.com/file/d/0B5jANIn4vjnkZTZCNjVmemdQTlk/edit?usp=sharing

Keep your old folder though, just rename it.

That .rc file is correct, the thing is your error is reporting to line 3 when there are only two lines in it. There appears to be a return carriage at the end of line two though, maybe you could try deleting that?
Title: Re: Error compiling the Sample Catch the clown
Post by: TheExDeus on April 18, 2013, 04:59:27 am
You can also try this (https://dl.dropboxusercontent.com/u/21117924/ENIGMA.zip). It's 128mb as it has also built objects (.o), so in a best case scenario you should be able to run without compiling the OpanAL.

P.s. Resource files (.rc) are always just text files.
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 18, 2013, 05:31:50 am
Thanks polygone & TheExDeus

You guys are so Awesome.

D/l now and hopefully one of the downloads work. Fingers crossed.
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 18, 2013, 08:38:52 am
Sorry Guys

I tried both sets of files to no avail. I get the same error when trying to run any project
....
Code: [Select]
....

mkdir.exe -p .eobjs/Windows/Windows/Run/Widget_Systems/None/
echo "// GENERATED RESOURCE FILE FRONTEND" > .eobjs/Windows/Windows/Run/resources.rc
for res in ../Additional/Windows/al/oal32.rc; do echo "#include \"$res\"" >> .eobjs/Windows/Windows/Run/resources.rc; done
windres.exe -o .eobjs/Windows/Windows/Run/resources.res -i .eobjs/Windows/Windows/Run/resources.rc -O coff
windres.exe: .eobjs/Windows/Windows/Run/resources.rc:2: syntax error
flashplayerpluginmingw32-make.exe[1]: *** [.eobjs/Windows/Windows/Run/resources.res] Error 1
mingw32-make.exe[1]: Leaving directory `c:/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe: *** [Game] Error 2

Don't know what else to try unless the Dev's can examine the log files I posted and maybe find out what is going on.
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 18, 2013, 08:45:40 am
flashplayerpluginmingw32-make.exe

What is this about? I see in your original log that flashplayerplugin is spammed everywhere. Like flashplayerpluginflashplayerpluginflashplayerpluginflashplayerplugin

It seems strange, perhaps your flash player plugin is causing some sort of incompatibility with minGW? Has there been a flash player update recently perhaps?
Title: Re: Error compiling the Sample Catch the clown
Post by: TheExDeus on April 18, 2013, 08:50:31 am
That newest error is about widgets which got fixed in the newest mingw. This makes me think that the MinGW that was given with the installer wasn't used and instead one already installed was. This mingw you already have is old and probably not standard (like the name flashplayerpluginmingw32-make.exe could hint). Anyway, you can try disabling windows widgets in the systems selection and try to compile. Now it should work, but you would still not be using the correct mingw.

edit: It's also probably flashplayerplugin mingw32-make.exe or something, but the space wasn't printed. Dunno why flash player is involved though.

edit2: Try looking at environment variables. Like open CMD (Run>CMD) and type "SET". Then it will print all environment variables. Paste them here (or just the Path one).
Title: Re: Error compiling the Sample Catch the clown
Post by: bernbout on April 18, 2013, 10:40:16 pm
@polygone @TheExodeus

flashplayerpluginmingw32-make.exe

That is the java runtime. That has bugged me for a while now. Anyway Google showed me what is causing it and I uninstalled the program.

http://stackoverflow.com/questions/15467295/java-sdk-manager-crashes-with-flashplayerplugin-in-the-command-line-output

See the answer from Andreas about Airfoil.

I then updated my Java to the latest version and uninstalled JRE6 which was also on my computer. I cleaned the registry of ALL jre6 entries.

I deleted the MinGW I had installed manually earlier as per the wiki, deleted the Enigma folder and rebooted.

Reinstalled Enigma from the original ENIGMA Zip Installer.exe I had downloaded and ran it.

Loaded up the sample game and clicked Run.

After a while Comodo Firewall popped up saying that a file was being run from my temp folder. I allowed it and up popped the game.

So now I am able to RUN a game from Enigma without that previous error.

Thanks to both you guys for your prompt help. It was really refreshing to see someone who cares enough when users have a problem. Mostly you get a silly suggestion from other users.

Now I need to find out more about this app.

One more Q for now.

I see these files in my Temp folder:

Code: [Select]
egm8089282371511511982.tmp
gms_ico5282030918111357965.ico
wrap_oal.dll
OpenAL32.dll


How can I compile to an standalone EXE?

Cheers
Title: Re: Error compiling the Sample Catch the clown
Post by: TheExDeus on April 19, 2013, 12:59:59 am
Glad it worked.

About the exe - sadly no one is man enough to actually make this an easy option (I have been bugging people like Josh about this for about 2 years now). Currently you can just take the .tmp file and rename it to .exe. That is the executable. The .dll's are actually inside the .exe and get extracted to temp folder when the game is run, so no need to distribute them separately. The .ico is not used in any way now. It was extracted there so the resource linked could link this icon to the .exe, but no one actually made it happen.
Title: Re: Error compiling the Sample Catch the clown
Post by: polygone on April 19, 2013, 06:45:39 am
Ok I'm going to presume it was the java causing the issue, glad it's fixed.