Pages: « 1 2 3 4 »
  Print  
Author Topic: Compiling from source  (Read 9967 times)
Offline (Unknown gender) TheExDeus
Reply #15 Posted on: August 26, 2013, 04:57:48 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Quote
That's the original error you had.
And that is the error I have no matter what implementation of Mingw I am using. The one you quoted was when I was using the MinGW you packed into the installer.

Quote
Did you say you already have Msys installed Harri? Polygonz I am thinking it might be the same issue as with frogg. Give us your full environment path that is set Harri.
No, I don't have Msys installed right now. I had it when I was using Mingw-builds as it packs everything in it. I will install Msys from here now and see if it works: http://sourceforge.net/apps/trac/mingw-w64/wiki/MSYS

edit: It seems that I do need gnuwin tools anyway, as for example FIND.exe doesn't come with neither mingw or msys. When I removed the tools I started getting this:
Quote
Java Version: 10700 (1.7.0_25)
Loading lib files in E:\ENIGMA\enigma-dev\lateralgm.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
Calling `mingw32-make.exe eTCpath="null"`
> mingw32-make.exe -j 3 -C CompilerSource
> FIND: Parameter format not correct
> mingw32-make.exe[1]: Entering directory `E:/ENIGMA/enigma-dev/CompilerSource'
> g++ -static-libgcc -shared -o ../compileEGMf.dll 
> g++: fatal error: no input files
> compilation terminated.
> mingw32-make.exe[1]: Leaving directory `E:/ENIGMA/enigma-dev/CompilerSource'
> mingw32-make.exe[1]: *** [../compileEGMf.dll] Error 1
> mingw32-make.exe: *** [ENIGMA] Error 2
2
Process terminated
« Last Edit: August 26, 2013, 05:04:00 AM by TheExDeus » Logged
Offline (Male) Goombert
Reply #16 Posted on: August 26, 2013, 05:22:50 AM

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

View Profile
Motherf***er now I can't compile either, this appears to be related to Mysys according to Google...
http://marc.info/?l=mingw-msys&m=121647839108061

This is all I can find in the CompilerSource's makefile...
Code: [Select]
SOURCES := $(shell find . -name "*.cpp" -and ! -name "standalone_*")
Edit: Aha! Harri this might not be your fault at all, please pastebin me enigma-dev/output_log.txt something in the plugin might be failing on you.
« Last Edit: August 26, 2013, 05:33:35 AM by Robert B Colton » 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 (Unknown gender) TheExDeus
Reply #17 Posted on: August 26, 2013, 06:12:53 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
All the errors I posted here are from output_log.txt.

Right now I have that "FIND: Parameter format not correct" error even though I reinstalled GnuWin tools which has proper FIND and added it properly in PATH (just like before when it worked). Now it doesn't. And it really sucks that I need to install 4 dependencies now while previously (about a year ago) I could compile ENIGMA with just mingw. A lot has changed. mingw had msys before and msys had gnu tools before I guess. Plus the plugin changes and ENIGMA.exe changes have been made as well.

edit: I just did a clean install using the newest ENIGMAPortable.exe and got this error again:
Quote
Java Version: 10700 (1.7.0_25)
Loading lib files in E:\ENIGMA\enigma-dev\lateralgm.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
Calling `mingw32-make.exe eTCpath="null"`
> mingw32-make.exe -j 3 -C CompilerSource
> Access denied - .
> File not found - -NAME
> File not found - -AND
> File not found - !
> File not found - -NAME
> mingw32-make.exe[1]: Entering directory `E:/ENIGMA/enigma-dev/CompilerSource'
> mingw32-make.exe[1]: *** No rule to make target `.eobjs/----------', needed by `../compileEGMf.dll'.  Stop.
> mingw32-make.exe[1]: Leaving directory `E:/ENIGMA/enigma-dev/CompilerSource'
> mingw32-make.exe: *** [ENIGMA] Error 2
2
Process terminated
« Last Edit: August 26, 2013, 08:34:22 AM by TheExDeus » Logged
Offline (Male) polygone
Reply #18 Posted on: August 26, 2013, 10:42:23 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
Paste your env paths here, also try temporarily clearing them of everything that might conflict.

Also try moving ENIGMA into C:/ if you're not currently running it from there, see if that helps.
« Last Edit: August 26, 2013, 12:28:23 PM 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 #19 Posted on: August 26, 2013, 03:52:38 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
When I install using the newest ENIGMAPortable.exe it seems I can compile the .dll the first time (unless it is already precompiled) and run it. But when I delete the .dll and launch enigma.exe so it could recompile it, it errors with the previous error.

This is my PATH now: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;E:\OpenCV2.4.5\build\bin;C:\Program Files (x86)\Java\jre7\bin;C:\mingw\bin;C:\msys\bin;

When it compiled the .dll correctly, then I still cannot compile an empty game though. LGM just crashed with this: http://pastebin.com/mTGdAKwP
Logged
Offline (Male) polygone
Reply #20 Posted on: August 26, 2013, 03:54:53 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
Oh yeah that was changed, you now have to run git-bash and run rebuildcompiler.

What is the enigma_log output when you get that LGM error?
« Last Edit: August 26, 2013, 03:56:42 PM 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 #21 Posted on: August 26, 2013, 04:21:04 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Hmm.. why does it work when done that way? It compiles... finally.

This is the output_log when LGM crashes: http://pastebin.com/juf1UBKL
Logged
Offline (Male) polygone
Reply #22 Posted on: August 26, 2013, 04:37:56 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
Hmm.. why does it work when done that way? It compiles... finally.

This is the output_log when LGM crashes: http://pastebin.com/juf1UBKL
I have no idea, it's changed somehow I ran into the same problem.

@the log I believe I saw that error somewhere else when it occurs after 'Writing executable information and resources'. I'm trying to remember what happened there.
« Last Edit: August 26, 2013, 04:58:31 PM by polygone » Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Male) polygone
Reply #23 Posted on: August 26, 2013, 04:59:42 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
I think I remember Robert committed something to fix that last time. So maybe he has another error with it still.

You could try going into compile.cpp and outputting a load of debug messages from "Writing executable information and resources" upto "Writing modes and settings" in order to isolate the problem area. Remember to rebuild :p
Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Male) polygone
Reply #24 Posted on: August 26, 2013, 10:02:04 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
Also are you sure you used the newest ENIGMA zip and you're not moving MinGW right? Robert is saying that's an error he fixed before...

Anyway you might also want to try this ENIGMA.exe I made, it might help: https://app.box.com/s/5x5v6r40ckjgnhs6nahv

Also are you still trying to run it from E:/ I don't know if it makes a difference but I think testing in C:/ might be a good idea.
« Last Edit: August 27, 2013, 12:11:04 AM 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 #25 Posted on: August 27, 2013, 04:08:56 AM

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

View Profile
Shaders are now a built in resource...
https://www.dropbox.com/s/3ogjo87gzypirsk/perftester.egm

You can save and load them under EGM.

« Last Edit: August 27, 2013, 04:14:11 AM by Robert B Colton » 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 (Unknown gender) TheExDeus
Reply #26 Posted on: August 27, 2013, 07:14:01 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Will that fix my problems?

Will try to update everything again later.
Logged
Offline (Male) polygone
Reply #27 Posted on: August 27, 2013, 07:22:59 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
That .exe I made isn't in the new zip yet. But if it doesn't fix it try isolated the problem with messages in the compiler like I said.
Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Unknown gender) TheExDeus
Reply #28 Posted on: August 27, 2013, 04:02:46 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
It works now. Some of the last changes in git might of fixed it as well as the fact that the .dll cannot be compiled from cmd and you must bash at all times.
So the ENIGMAPortable.exe works out of the box and installing from source works if calling "mingw32-make" from bash (git-bash in my case, but I think anything from Msys or Cygwin would do as well).

I also made changes described in the OP under "thoughts".

So it finally works again. Thank you all! Now we must make sure it doesn't break and update installation instructions.
Logged
Offline (Male) polygone
Reply #29 Posted on: August 27, 2013, 04:22:14 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 803

View Profile
I think more likely my .exe change fixed it. I think it will fix a lot of the problems people have been having.
Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Pages: « 1 2 3 4 »
  Print