Pages: 1
Author Topic: Compiling for windows in linux problem  (46,316 Views)
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Posted on: December 28, 2014, 09: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
Offline (Unknown gender) sorlok_reaves

Contributor
Joined: Dec 2013
Posts: 260
View profile
Reply #1 Posted on: December 28, 2014, 06:58:03 PM
What error do you get exactly? Anything printed in the console?
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #2 Posted on: December 29, 2014, 08:09:13 AM
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
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #3 Posted on: December 29, 2014, 08: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?
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #4 Posted on: December 29, 2014, 09:38:30 AM
Quoteenigma-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
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #5 Posted on: December 29, 2014, 09: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.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #6 Posted on: December 29, 2014, 10:48:21 AM
with this command
wine --gdb egm1572424667968610864.exe
http://pastebin.com/nmcCRk9B
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #7 Posted on: December 29, 2014, 11: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.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #8 Posted on: December 30, 2014, 07:57:51 AM
the file compiled in debug
http://www.filedropper.com/egm8644901490627148383
the backtrace program, the name?
and how can use it?
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #9 Posted on: December 30, 2014, 08:06:20 AM
Like this gra...

gdb path/to/game.exe
run
SIGSEGV ENCOUNTERED
bt
(stack trace follows...)
quit
Y
Pages: 1