Pages: [1]
  Print  
Author Topic: Compiled game doesn't start?  (Read 54 times)
Offline (Unknown gender) Jan
Posted on: March 14, 2019, 06:53:28 AM
Member
Joined: Mar 2019
Posts: 1

View Profile
Good day everyone.

I have an odd(?) problem which results in games not starting after I compiled them into an .exe. When running the game from lateralgm they work just fine.
Is that a known problem or is there something I'm missing/doing wrong?

I have Windows 10 64bit, intel 4790, Nvidia 1080, Java 8 Update 201 and followed the instructions on https://enigma-dev.org/docs/Wiki/Install:Windows.
« Last Edit: March 14, 2019, 06:55:38 AM by Jan » Logged
Offline (Male) hpg678
Reply #1 Posted on: March 14, 2019, 10:10:53 AM

Member
Location: Barbados
Joined: Mar 2017
Posts: 226

View Profile Email
hello!


that is indeed a strange problem. if it builds successfully, it should by all means compiled. I can only suggest trying updating from your mysys folder the compiler

Code: [Select]
pacman -Syu gcc






Logged
Hugar
Offline (Male) Goombert
Reply #2 Posted on: March 14, 2019, 05:46:05 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3096

View Profile
Hi Jan! I'm sorry you ran into this and I have been seeing some cases of it myself when building final games in compile mode. However, it seems to be random as some games will do it while others are just fine. It also seems to keep changing whenever I do an MSYS2 upgrade. I am interested in finding the root cause of this myself, but it's proved to be a little difficult since it sometimes won't occur when building with debugging symbols and gdb'ing the release exe doesn't yield anything useful because there is no debugging symbols! It's a bit of catch 22.

You can try maybe compiling the games with different systems (I specifically want to point my finger at OpenAL here as a potential cause of this). Another workaround, since you said the game works fine in run mode, is to copy and distribute the temp file exe of your game (the file path is printed in LGM's output window when you run the game). One issue with the second work around is you may end up with a terminal window when you double click the game. You can circumvent that by modifying the main makefile to link the Windows subsystem in Run mode (which tells Windows that it's a Window app not a console app). Just change the following line from Compile to Run, save the makefile, build your game, and copy the temp file.
https://github.com/enigma-dev/enigma-dev/blob/2df68cffc66d5e6564392f5b078ad0589cf868ae/ENIGMAsystem/SHELL/Makefile#L92

Again, I'm sorry about this problem, and I will continue looking into it.
« Last Edit: March 14, 2019, 05:47:54 PM by Goombert » 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) impo
Reply #3 Posted on: March 14, 2019, 09:46:03 PM
Member
Joined: Feb 2019
Posts: 16

View Profile
yes, i have exact same problem as well.
Logged
Offline (Male) Goombert
Reply #4 Posted on: March 14, 2019, 11:16:16 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3096

View Profile
Ok, yeah, try the workarounds.... if anybody finds anything more about this before I do be sure to share.
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) hpg678
Reply #5 Posted on: March 15, 2019, 04:14:39 AM

Member
Location: Barbados
Joined: Mar 2017
Posts: 226

View Profile Email
Greetings!


I've had the same issue quite recently when i updated on my Windows pc. After showing Goombert the error file, he suggested I erase my

C:/users/...../AppData/Local/ENIGMA/


folder. As he puts it


Quote

it's just because you have the old binaries of the engine, you upgraded gcc which upgraded the linker which wants to use
a new .o format
so obviously you need to clean out the old object files and do a clean build of the engine


Having done that, i am happy to say it worked and i am able to build again.


So thanks to Goombert for his suggestion and also his invaluable time, his expertise in helping and the extreme amount of effort to the project.
« Last Edit: March 15, 2019, 04:18:08 AM by hpg678 » Logged
Hugar
Pages: [1]
  Print