Skip to content

Alien SDL 35a377 breaks on Linux, Windows #101

Closed
kthakore opened this Issue Jul 26, 2011 · 14 comments

1 participant

@kthakore kthakore was assigned Jul 26, 2011
@kthakore
PerlGameDev member

Author: kthakore
Time: 1268926774
Field: comment
Value: More fails

... in SDL_perl this time

http://paste.scsys.co.uk/40916

@kthakore
PerlGameDev member

Author: FROGGS
Time: 1268938884
Field: comment
Value: Okay, first error (Debian Fail: http://paste.scsys.co.uk/40907 / Windows Fail: http://paste.scsys.co.uk/40908) are due to Module::Build 0.35

Next problem for Windows:
the headers and libs are installed to:
C:\strawberry\perl\site\lib\auto\share\dist\Alien-SDL\1.0_25254e41\bin\, include\ and lib\

But the PATH env var isnt set, so if I try to run the tests for SDL_perl i get an error message that it cant find the SDL.dll ...

@kthakore
PerlGameDev member
@kthakore
PerlGameDev member

Author: kthakore
Time: 1268939289
Field: comment
Value: Maybe we can have it install is Homedir/.SDLperl http://search.cpan.org/dist/File-HomeDir/

@kthakore
PerlGameDev member

Author: kmx
Time: 1268949255
Field: comment
Value: My comments based on a discussion with FROGGS

1/ PATH env should not be a problem with pre-build binaries as we use a special Dynaloader trick in SDL::Internal::Loader - if there occurs an error "some.dll cannot be loaded" that it should be fixed in SDL::Internal::Loader

2/ currently RECOMMENDED binaries for Win32 work just on Win7 (where they were built) but not on WinXP (confirmed by FROGGS + me)

3/ possible cause1: binaries were built on Win7 and simply expects something that is not present on WinXP

4/ possible cause2: binaries were build with gcc4 compiler + mingw-w64 c-runtime (whereas strawberry perl uses gcc3 compiler + mingw.org c-runtime)

5/ I'll try to prepare new libsdl binaries built on WinXP box

kmx

@kthakore
PerlGameDev member

Author: kmx
Time: 1269000610
Field: comment
Value: Bad news, rebuilding libsdl & co. binaries on WinXP did not help; there must be something else broken.

Anyway I have put the old Win32 binaries as a default option in Alien::SDL.

kmx

@kthakore
PerlGameDev member

Author: kmx
Time: 1269001239
Field: summary
Value: non perl SDL code works on Win7 as well as WinXP

@kthakore
PerlGameDev member

Author: kmx
Time: 1269001239
Field: comment
Value: Interesting is that sample programs delivered with SDL-1.2.14 (eg. testbitmap.exe) work fine on both Win7 & WinXP.

@kthakore
PerlGameDev member

Author: kmx
Time: 1269001285
Field: summary
Value: Alien SDL 35a377 breaks on Linux, Windows

@kthakore
PerlGameDev member

Author: kmx
Time: 1269001285
Field: comment
Value:

@kthakore
PerlGameDev member

Author: FROGGS
Time: 1269001944
Field: comment
Value: Hi, its the same with the new binaries (20100319).

gdb backtrace:

C:\SDL_perl>gdb --args perl c:\gfx_primitives.pl
GNU gdb (GDB) 7.0.50.20100202
Copyright (C) 2010 Free Software Foundation, Inc.
(gdb) run
Starting program: C:\strawberry\perl\bin/perl.exe c:\gfx_primitives.pl
[New Thread 4704.0x1300]
got version: 2.0.20[New Thread 4704.0x153c]

Program received signal SIGSEGV, Segmentation fault.
0x6ebb4860 in DX5_HandleMessage () from C:\strawberry\perl\site\lib\auto\share\dist\Alien-SDL\1.0_1b366838\bin\SDL-specbuild_sdl32.dll
(gdb) bt full
#0 0x6ebb4860 in DX5_HandleMessage () from C:\strawberry\perl\site\lib\auto\share\dist\Alien-SDL\1.0_1b366838\bin\SDL-specbuild_sdl32.dll
#1 0x6ebadf94 in WinMessage@16 () from C:\strawberry\perl\site\lib\auto\share\dist\Alien-SDL\1.0_1b366838\bin\SDL-specbuild_sdl32.dll
#2 0x7e418734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#3 0x00b6058a in ?? ()
#4 0x7e418816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#5 0x6ebadd00 in TrackMouseTimerProc@16 () from C:\strawberry\perl\site\lib\auto\share\dist\Alien-SDL\1.0_1b366838\bin\SDL-specbuild_sdl32.dll
#6 0x7e41b4c0 in USER32!DefWindowProcW () from C:\WINDOWS\system32\user32.dll
#7 0x00000000 in ?? ()

so i guess its a about directx headers? i've got directx 9.0c.

cheers

@kthakore
PerlGameDev member

Author: FROGGS
Time: 1269209005
Field: status
Value: closed

@kthakore
PerlGameDev member

Author: FROGGS
Time: 1269209005
Field: resolution
Value: fixed

@kthakore
PerlGameDev member

Author: FROGGS
Time: 1269209005
Field: comment
Value: New binaries are released, these work perfectly (with precompiled SDL-lib from http://www.libsdl.org/release/SDL-1.2.14-win32.zip)

"Win32_SDL-1.2.14-extended-bin_20100321.zip"

@kthakore kthakore closed this Jul 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.