ENIGMA Development Environment
Website is in read-only mode due to a recent attack.

Pages: 1 2 »
  Print  
Author Topic: Error compiling the Sample Catch the clown  (Read 4520 times)
Offline (Unknown gender) bernbout
Posted on: April 16, 2013, 08:29:33 PM
Member
Joined: Apr 2013
Posts: 10

View Profile
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

Logged
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: April 16, 2013, 08:32:10 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2951

View Profile Email
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?
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) bernbout
Reply #2 Posted on: April 16, 2013, 10:26:17 PM
Member
Joined: Apr 2013
Posts: 10

View Profile
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.
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: April 16, 2013, 11:18:05 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2951

View Profile Email
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.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) bernbout
Reply #4 Posted on: April 17, 2013, 01:40:27 AM
Member
Joined: Apr 2013
Posts: 10

View Profile
Ok. Waiting on the developer to reply...
Logged
Offline (Unknown gender) TheExDeus
Reply #5 Posted on: April 17, 2013, 05:42:16 AM

Developer
Joined: Apr 2008
Posts: 1860

View Profile
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.
Logged
Offline (Male) polygone
Reply #6 Posted on: April 17, 2013, 06:07:49 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 794

View Profile
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.
« Last Edit: April 17, 2013, 06:27:21 AM by polygone » Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Unknown gender) bernbout
Reply #7 Posted on: April 17, 2013, 10:27:13 AM
Member
Joined: Apr 2013
Posts: 10

View Profile
@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?
« Last Edit: April 17, 2013, 10:34:22 AM by bernbout » Logged
Offline (Male) Josh @ Dreamland
Reply #8 Posted on: April 17, 2013, 10:39:34 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2951

View Profile Email
Hey polyfuck, just noticed you changed my Winpatch zip. Why?
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) polygone
Reply #9 Posted on: April 17, 2013, 11:51:07 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 794

View Profile
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).
« Last Edit: April 17, 2013, 03:30:25 PM by polygone » Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Male) Goombert
Reply #10 Posted on: April 17, 2013, 04:43:22 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) polygone
Reply #11 Posted on: April 17, 2013, 04:50:54 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 794

View Profile
Somebody came on the IRC earlier called Adaas and reported what appeared to be the same issue.
Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Unknown gender) bernbout
Reply #12 Posted on: April 17, 2013, 08:43:26 PM
Member
Joined: Apr 2013
Posts: 10

View Profile
@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
Logged
Offline (Male) polygone
Reply #13 Posted on: April 18, 2013, 04:37:37 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 794

View Profile
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?
« Last Edit: April 18, 2013, 05:36:21 AM by polygone » Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Unknown gender) TheExDeus
Reply #14 Posted on: April 18, 2013, 04:59:27 AM

Developer
Joined: Apr 2008
Posts: 1860

View Profile
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.
Logged
Pages: 1 2 »
  Print