Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-11

Windows DirectX9

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Adriaan van Os

Looking on the internet for DirectShow Pascal bindings, I came across <http://code.google.com/p/dspack/source/browse/#svn%2Ftrunk%2Fsrc%2FDirectX9>. With a few modifications, this does compile with fpc-2.6.4, e.g.

adriaan% fpc -MDelphi -Twin32 DirectShow9.pas
Free Pascal Compiler version 2.6.4 [2014/02/26] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others Target OS: Win32 for i386
Compiling DirectShow9.pas
Compiling DirectDraw.pas
Compiling DirectSound.pas
Compiling DXTypes.pas
Compiling Direct3D9.pas
53273 lines compiled, 2.3 sec

Is there a fixed policy to include packages like these with FPC (or not) ? The license is Mozilla Public License 1.1.

Regards,

Adriaan van Os

Sven Barth
to Adriaan van Os
"Adriaan van Os" wrote
Looking on the internet for DirectShow Pascal bindings, I came across <

http://code.google.com/p/dspack/source/browse/#svn%2Ftrunk%2Fsrc%2FDirectX9>. With a few modifications, this does compile with fpc-2.6.4, e.g.

Show quoted text 13 lines
adriaan% fpc -MDelphi -Twin32 DirectShow9.pas Free Pascal Compiler version 2.6.4 [2014/02/26] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling DirectShow9.pas Compiling DirectDraw.pas Compiling DirectSound.pas Compiling DXTypes.pas Compiling Direct3D9.pas 53273 lines compiled, 2.3 sec Is there a fixed policy to include packages like these with FPC (or not)

? The license is Mozilla Public License 1.1.

The policy is that we'd like to reduce the amount of packages we ship with FPC directly. For this there is a package repository which can be accessed using fppkg. Currently there is only a lnet package, but if you take a look at the wiki entry for fppkg you might be able to add a new package description file for the DirectX headers so that we can add it there.

Regards
Sven

Adriaan van Os
to Sven Barth
Sven Barth wrote 9 lines
> Is there a fixed policy to include packages like these with FPC (or not) ? The license is Mozilla Public License 1.1. The policy is that we'd like to reduce the amount of packages we ship with FPC directly. For this there is a package repository which can be accessed using fppkg. Currently there is only a lnet package, but if you take a look at the wiki entry for fppkg you might be able to add a new package description file for the DirectX headers so that we can add it there.

So, these "extra" packages are not in svn trunk ? But on separate servers ? But how are they synced with compiler changes ? Who creates and maintains them ?

I will note that DirectX Pascal bindings do seem to be distributed with Delphi.

Regards,

Adriaan van Os

Sven Barth
to Adriaan van Os
"Adriaan van Os" wrote
Sven Barth wrote: > > Is there a fixed policy to include packages like these with FPC (or

not) ? The license is Mozilla Public License 1.1.

> > The policy is that we'd like to reduce the amount of packages we ship

with FPC directly. For this there is a package repository which can be accessed using fppkg. Currently there is only a lnet package, but if you take a look at the wiki entry for fppkg you might be able to add a new package description file for the DirectX headers so that we can add it there.

So, these "extra" packages are not in svn trunk ? But on separate servers

? But how are they synced with compiler changes ? Who creates and maintains them ?

Currently quite some are (lazarus-ccr also contains some), but we want to change this in the future so that not every package under the sun is distributed with FPC. Also those packages are normally not that sensitive to compiler changes (and if something needs to he adjusted it would be the job of the maintainer to do that). The release cycle of the compiler is one of the reasons why we want to change the current way: the compiler gets a new release every 1 to 1 1/2 years, but some packages (e.g. MySQL) might have a quicker iteration or might not be in "sync" with FPC's release cycle (imagine a new MySQL version released shortly after a FPC release... Great -.- ).
Both creators and maintainers could (and for some packages even should) come from the community. That would be one of the benefits of fppkg: less work for us in the long term :)

I will note that DirectX Pascal bindings do seem to be distributed with

Delphi.

That is no reason whatsoever to distribute them with FPC as well. Currently everyone gets the full package of packages even if they aren't needed. So it's more useful to have a repository where everyone can download those packages he needs. Other languages have similar approaches (e.g. Python and Ruby if I remember correctly).

Regards,
Sven

Michael Thompson
to Adriaan van Os: Looking on the internet for DirectShow Pascal bindings, I came across…
Adriaan van Os wrote 5 lines
Looking on the internet for DirectShow Pascal bindings, I came across < http://code.google.com/p/dspack/source/browse/#svn% 2Ftrunk%2Fsrc%2FDirectX9>. With a few modifications, this does compile with fpc-2.6.4, e.g.

There are different versions of DSPack available. When I last checked a year or two ago, this is one of the staler ones.

The most up-to-date/maintained version ships with Pilot Logic's CodeTyphon. Pilot Logic derived their version from the port by forum user TheBlackSheep, and in turn TheBlackSheep derived his version from the one listed above.

Note: CodeTyphon uses trunk, so their version of DSPack will always compile against that.

Cheers

Mike

Adriaan van Os
to Michael Thompson
Michael Thompson wrote
The most up-to-date/maintained version ships with Pilot Logic's CodeTyphon. Pilot Logic derived their version from the port by forum user TheBlackSheep, and in turn TheBlackSheep derived his version from the one listed above.

Thanks for the hint, but I couldn't find DirectX in the Pilot Logic's CodeTyphon downloads.

Sven Barth wrote

Currently everyone gets the full package of packages even if they aren't needed. So it's more useful to have a repository where everyone can download those packages he needs. Other languages have similar approaches (e.g. Python and Ruby if I remember correctly).

How does this work ? Does one assemble a package, put it on a server and then submit the URL ?

Regards,

Adriaan van Os

Michael Thompson
to Adriaan van Os
Adriaan van Os wrote 10 lines
Michael Thompson wrote: > The most up-to-date/maintained version ships with Pilot Logic's > CodeTyphon. Pilot Logic derived their version from the port by forum user > TheBlackSheep, and in turn TheBlackSheep derived his version from the one > listed above. > Thanks for the hint, but I couldn't find DirectX in the Pilot Logic's CodeTyphon downloads.

Hmm. I admit it's been a year since I last checked, but there were two packages you need. "PL_Win_DirectShow" and "PL_Win_DirectX". The forum entries for each are still valid, and don't mention the packages have been removed.

DirectX was last updated in January 2014. So it should be there.

Mike

Michael Thompson
to Michael Thompson
Michael Thompson wrote 22 lines
On 7 December 2014 at 19:51, Adriaan van Os wrote: > Michael Thompson wrote: > >> The most up-to-date/maintained version ships with Pilot Logic's >> CodeTyphon. Pilot Logic derived their version from the port by forum user >> TheBlackSheep, and in turn TheBlackSheep derived his version from the one >> listed above. >> > > Thanks for the hint, but I couldn't find DirectX in the Pilot Logic's > CodeTyphon downloads. Hmm. I admit it's been a year since I last checked, but there were two packages you need. "PL_Win_DirectShow" and "PL_Win_DirectX". The forum entries for each are still valid, and don't mention the packages have been removed. From the change log http://www.pilotlogic.com/codetyphon/changeslog.txt DirectX was last updated in January 2014. So it should be there.

Ah, think I might know what the issue is. Near as I can make out, PilotLogic do not provide individual download for each of the modules. It's one big fat half gig download :-( *Everything* is in that download.

I made my own copy in July as part of an idea I'm working on. Currently out of time for the wider project, but the two PilotLogic modules are there. I've made a minor change to DirectShow to enable the SampleGrabber to work in wider situations... There *may* be other minor changes, but I think I applied those at the application level...

http://sourceforge.net/p/lazarusvideoutilities/code/HEAD/tree/trunk/Packages/

Mike

Adriaan van Os
to Michael Thompson
Michael Thompson wrote
Ah, think I might know what the issue is. Near as I can make out, PilotLogic do not provide individual download for each of the modules. It's one big fat half gig download :-( *Everything* is in that download.

I did download that one big half gig, but still could not locate DirectX in it.

Never mind, that link works, thanks.

Regards,

Adriaan van Os