ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: gra on December 28, 2014, 04:54:20 AM

Title: Compiling for windows in linux problem
Post by: gra on December 28, 2014, 04:54:20 AM
i have two problems , the first solved
1 the game request dll libwinpthread-1.dll
i have put the dll in same folder
2 in starded fase the game give error
i have try with wine and virtual box same crash
hello to all  :D
Title: Re: Compiling for windows in linux problem
Post by: sorlok_reaves on December 28, 2014, 01:58:03 PM
What error do you get exactly? Anything printed in the console?
Title: Re: Compiling for windows in linux problem
Post by: gra on December 29, 2014, 03:09:13 AM
Code: [Select]
Unhandled exception: page fault on read access to 0x00000014 in 32-bit code (0x004841b6).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:004841b6 ESP:00c0f580 EBP:00c0f628 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000000 EBX:00000000 ECX:00000003 EDX:00006e49
 ESI:00356ab8 EDI:00000000
Stack dump:
0x00c0f580:  00356ab8 00002c13 00c0f5e8 7df41f34
0x00c0f590:  00c0f5b0 7dfb5000 00c0f5e8 7df47ef0
0x00c0f5a0:  00356ab8 00000001 00002c13 00355658
0x00c0f5b0:  7dfbd360 0000002e 00356ab8 00000000
0x00c0f5c0:  00000001 00000003 00000001 00002c13
0x00c0f5d0:  0000001f 7df47eb6 00c0f600 7dfbd360
Backtrace:
=>0 0x004841b6 in egm1572424667968610864 (+0x841b6) (0x00c0f628)
0x004841b6: movzwl 0x14(%eax),%eax
mm i don't know
Title: Re: Compiling for windows in linux problem
Post by: Goombert on December 29, 2014, 03:25:23 AM
Hello gra, can you please paste us enigma-dev/output_log.txt at http://www.pastie.org or http://www.pastebin.com and give us the link?
Title: Re: Compiling for windows in linux problem
Post by: gra on December 29, 2014, 04:38:30 AM
Quote
enigma-dev/output_log.txt
this file not generated, i paste the console output
http://pastebin.com/Fr4YXSE3
the compilation is completed , but the file give the precedent error in wine
EDIT
i'm on manjaro linux
Title: Re: Compiling for windows in linux problem
Post by: Goombert on December 29, 2014, 04:42:47 AM
Run in debug mode, then close it and run it with gdb.

gdb path/to/game.exe

And paste a backtrace from gdb when it segfaults.
Title: Re: Compiling for windows in linux problem
Post by: gra on December 29, 2014, 05:48:21 AM
with this command
Code: [Select]
wine --gdb egm1572424667968610864.exehttp://pastebin.com/nmcCRk9B
Title: Re: Compiling for windows in linux problem
Post by: Goombert on December 29, 2014, 06:06:38 AM
No no no, first you have to build it in debug mode in ENIGMA so it has debugging symbols, otherwise I have no idea what the function addresses point to, you also still need "bt" for a full backtrace.
Title: Re: Compiling for windows in linux problem
Post by: gra on December 30, 2014, 02:57:51 AM
the file compiled in debug
http://www.filedropper.com/egm8644901490627148383
the backtrace program, the name?
and how can use it?
Title: Re: Compiling for windows in linux problem
Post by: Goombert on December 30, 2014, 03:06:20 AM
Like this gra...
Code: [Select]
gdb path/to/game.exe
run
SIGSEGV ENCOUNTERED
bt
(stack trace follows...)
quit
Y