DirectX - Failed loading D3DX9_*.dll

2013-03-05 Thread kmx

Hi Kartik and Tobias,

ad our last discussion on IRC.

I have investigated the warning Failed loading D3DX9_*.dll and come up 
with the enclosed patch (please forward it to relevant SDL2 mailing 
list/bugtracker).


The warning has gone and DirectX seems to be loaded but I was not able to 
test it more.


New binaries:
http://strawberryperl.com/package/kmx/sdl/32bit_SDL2_20130305.zip
http://strawberryperl.com/package/kmx/sdl/64bit_SDL2_20130305.zip

Alien-SDL2 on github was also updated

--
kmx
--- /z/strawberry_libs/SDL2-hg20130301/src/render/direct3d/SDL_render_d3d.c 
2013-02-28 17:11:04 +
+++ 
/z/strawberry_libs/SDL2-hg20130301_patched/src/render/direct3d/SDL_render_d3d.c 
2013-03-05 09:38:04 +
@@ -477,7 +477,9 @@
 
 for (d3dxVersion=50;d3dxVersion0;d3dxVersion--) {
 SDL_snprintf(d3dxDLLFile, 49, D3DX9_%02d.dll, d3dxVersion);
-data-d3dxDLL = SDL_LoadObject(d3dxDLLFile);
+LPTSTR tmpstr = WIN_UTF8ToString(d3dxDLLFile);
+data-d3dxDLL = (void *)LoadLibrary(tmpstr); /* not using 
SDL_LoadObject() as we want silently fail - no error message */
+SDL_free(tmpstr);
 if (data-d3dxDLL) {
 HRESULT (WINAPI *D3DXCreateMatrixStack) (DWORD Flags, 
LPD3DXMATRIXSTACK*  ppStack);
 D3DXCreateMatrixStack = (HRESULT (WINAPI *) (DWORD, 
LPD3DXMATRIXSTACK*)) SDL_LoadFunction(data-d3dxDLL, D3DXCreateMatrixStack);


Re: DirectX - Failed loading D3DX9_*.dll

2013-03-05 Thread Kartik Thakore
Awesome. What is the difference (besides muting the error?) for the load
there?


On Tue, Mar 5, 2013 at 5:09 AM, kmx k...@volny.cz wrote:

  Hi Kartik and Tobias,

 ad our last discussion on IRC.

 I have investigated the warning Failed loading D3DX9_*.dll and come up
 with the enclosed patch (please forward it to relevant SDL2 mailing
 list/bugtracker).

 The warning has gone and DirectX seems to be loaded but I was not able to
 test it more.

 New binaries:
 http://strawberryperl.com/package/kmx/sdl/32bit_SDL2_20130305.zip
 http://strawberryperl.com/package/kmx/sdl/64bit_SDL2_20130305.zip

 Alien-SDL2 on github was also updated

 --
 kmx



Re: DirectX - Failed loading D3DX9_*.dll

2013-03-05 Thread kmx


On 5.3.2013 13:11, Kartik Thakore wrote:
Awesome. What is the difference (besides muting the error?) for the load 
there?


Just muting the error message. To be honest I do not know how to measure 
whether HW acceleration was really utilised or not. Perhaps some of your 
benchmark scripts can tell us :)


--
kmx



Re: DirectX - Failed loading D3DX9_*.dll

2013-03-05 Thread Kartik Thakore
Ok will do.

Kartik Thakore

On 2013-03-05, at 7:58 AM, kmx k...@volny.cz wrote:


 On 5.3.2013 13:11, Kartik Thakore wrote:
 Awesome. What is the difference (besides muting the error?) for the load 
 there?

 Just muting the error message. To be honest I do not know how to measure 
 whether HW acceleration was really utilised or not. Perhaps some of your 
 benchmark scripts can tell us :)

 --
 kmx



Packaging with strawberry perl

2013-03-05 Thread Kartik Thakore
Hey so,
I was trying to send a friend a simple SDL script with strawberry perl to
play around with. But strawberry perl seemed huge! Especially with the
DBI/Pg and what not in it. How can i get a vanilla version of
portable strawberry perl with no extra libraries installed with it. I will
then jsut cpan install SDL (or SDL2) and package a 'game' that way.

ideas?


Re: Packaging with strawberry perl

2013-03-05 Thread kmx
In theory you can delete whatever in perl/vendor you only cannot be sure if 
some of SDL dependencies is not using it.


--
kmx

On 5.3.2013 17:54, Kartik Thakore wrote:

What about stuff inside perl\vendor and what not. It has a lot of the stuff
that is not needed (DBI, BerkelyDB, etc )


On Tue, Mar 5, 2013 at 10:53 AM, kmx k...@volny.cz wrote:


On 5.3.2013 15:18, Kartik Thakore wrote:


Hey so,
I was trying to send a friend a simple SDL script with strawberry perl to
play around with. But strawberry perl seemed huge! Especially with the
DBI/Pg and what not in it. How can i get a vanilla version of
portable strawberry perl with no extra libraries installed with it. I will
then jsut cpan install SDL (or SDL2) and package a 'game' that way.

ideas?


There is no such thing as strawberry perl portable minimal edition

What you can do:
1/ take strawberry portable
2/ install SDL + all necessary modules
3/ move all c:\portable-strawberry\c\bin\***.dll to
c:\portable-strawberry\perl\**bin\
4/ delete
c:\portable-strawberry\c
c:\portable-strawberry\cpan\*
c:\portable-strawberry\data\*
5/ now you still have fully working perl (but without possibility to
install anything from cpan)

--
kmx






Re: Packaging with strawberry perl

2013-03-05 Thread kmx

Interesting idea.

My guess is that for portable strawberry you will need to keep at least
perl\vendor\lib\Portable\*
perl\vendor\lib\Portable.pm
+ perhaps File::HomeDir and other Portable's prereqs

--
kmx

On 5.3.2013 20:54, Kartik Thakore wrote:

Could I delete all of perl/vendor and install SDL using cpan. Then remove
the cpan stuff?


On Tue, Mar 5, 2013 at 2:31 PM, kmx k...@volny.cz wrote:


In theory you can delete whatever in perl/vendor you only cannot be sure
if some of SDL dependencies is not using it.

--
kmx


On 5.3.2013 17:54, Kartik Thakore wrote:


What about stuff inside perl\vendor and what not. It has a lot of the
stuff
that is not needed (DBI, BerkelyDB, etc )


On Tue, Mar 5, 2013 at 10:53 AM, kmx k...@volny.cz wrote:

  On 5.3.2013 15:18, Kartik Thakore wrote:

  Hey so,

I was trying to send a friend a simple SDL script with strawberry perl
to
play around with. But strawberry perl seemed huge! Especially with the
DBI/Pg and what not in it. How can i get a vanilla version of
portable strawberry perl with no extra libraries installed with it. I
will
then jsut cpan install SDL (or SDL2) and package a 'game' that way.

ideas?

  There is no such thing as strawberry perl portable minimal edition

What you can do:
1/ take strawberry portable
2/ install SDL + all necessary modules
3/ move all c:\portable-strawberry\c\bin\*.dll to
c:\portable-strawberry\perl\bin\

4/ delete
 c:\portable-strawberry\c
 c:\portable-strawberry\cpan\*
 c:\portable-strawberry\data\*
5/ now you still have fully working perl (but without possibility to
install anything from cpan)

--
kmx







Re: Packaging with strawberry perl

2013-03-05 Thread Kartik Thakore
hmm what if I cpan install that? Where is the 'script' that runs the
portable thing?


On Tue, Mar 5, 2013 at 4:38 PM, kmx k...@volny.cz wrote:

 Interesting idea.

 My guess is that for portable strawberry you will need to keep at least
 perl\vendor\lib\Portable\*
 perl\vendor\lib\Portable.pm
 + perhaps File::HomeDir and other Portable's prereqs

 --
 kmx


 On 5.3.2013 20:54, Kartik Thakore wrote:

 Could I delete all of perl/vendor and install SDL using cpan. Then remove
 the cpan stuff?


 On Tue, Mar 5, 2013 at 2:31 PM, kmx k...@volny.cz wrote:

  In theory you can delete whatever in perl/vendor you only cannot be sure
 if some of SDL dependencies is not using it.

 --
 kmx


 On 5.3.2013 17:54, Kartik Thakore wrote:

  What about stuff inside perl\vendor and what not. It has a lot of the
 stuff
 that is not needed (DBI, BerkelyDB, etc )


 On Tue, Mar 5, 2013 at 10:53 AM, kmx k...@volny.cz wrote:

   On 5.3.2013 15:18, Kartik Thakore wrote:

   Hey so,

 I was trying to send a friend a simple SDL script with strawberry perl
 to
 play around with. But strawberry perl seemed huge! Especially with the
 DBI/Pg and what not in it. How can i get a vanilla version of
 portable strawberry perl with no extra libraries installed with it. I
 will
 then jsut cpan install SDL (or SDL2) and package a 'game' that way.

 ideas?

   There is no such thing as strawberry perl portable minimal edition

 What you can do:
 1/ take strawberry portable
 2/ install SDL + all necessary modules
 3/ move all c:\portable-strawberry\c\bin\***.dll to
 c:\portable-strawberry\perl\**bin\


 4/ delete
  c:\portable-strawberry\c
  c:\portable-strawberry\cpan\*
  c:\portable-strawberry\data\*
 5/ now you still have fully working perl (but without possibility to
 install anything from cpan)

 --
 kmx







Fwd: Re: [SDL] [PATCH] DirectX - Failed loading D3DX9_*.dll

2013-03-05 Thread Tobias Leich
Hi, patch got applied.


 Original-Nachricht 
Betreff:Re: [SDL] [PATCH] DirectX - Failed loading D3DX9_*.dll
Datum:  Tue, 5 Mar 2013 18:53:20 -0800
Von:Sam Lantinga slou...@libsdl.org
Antwort an: SDL Development List s...@lists.libsdl.org
An: SDL Development List s...@lists.libsdl.org



Patch applied, thanks!

FYI, the best place to submit patches is buzilla so they don't get lost
in the mailing list traffic:
http://bugzilla.libsdl.org

Cheers!

On Tue, Mar 5, 2013 at 2:18 AM, Tobias Leich em...@froggs.de
mailto:em...@froggs.de wrote:

Hi, we have a patch for loading DirectX dlls on Windows.

Cheers, Tobias

 Original-Nachricht 
Betreff:DirectX - Failed loading D3DX9_*.dll
Datum:  Tue, 05 Mar 2013 11:09:05 +0100
Von:kmx k...@volny.cz mailto:k...@volny.cz
An: sdl-devel@perl.org mailto:sdl-devel@perl.org
sdl-devel@perl.org mailto:sdl-devel@perl.org



Hi Kartik and Tobias,

ad our last discussion on IRC.

I have investigated the warning Failed loading D3DX9_*.dll and
come up with the enclosed patch (please forward it to relevant SDL2
mailing list/bugtracker).

The warning has gone and DirectX seems to be loaded but I was not
able to test it more.

--
kmx



___
SDL mailing list
s...@lists.libsdl.org mailto:s...@lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




___
SDL mailing list
s...@lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org