Linking to 64 bit windows build

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Linking to 64 bit windows build

boxerab@gmail.com
Dear GStreamers,

Has anyone successfully linked a 64 bit application to the 64 bit windows dlls ?

I have a 64 bit C# app linking to a 64 bit CLR dll, which in turn links to the 64 bit gstreamer dlls.
I get the following runtime error:

System.BadImageFormatException: 'Could not load file or assembly 'FOO.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)'

So, it seems that 64 bit libgstreamer.dll has a 32 bit dependency ?

Works fine in 32 bit mode, or in 64 bit if I remove the gstreamer dependencies.

Thanks,
Aaron

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Linking to 64 bit windows build

Daniel Johnson
Yeah I got a 64 bit build of a very simple test application written in c to work using visual studio 2017 community edition around a two weeks ago. Unfortunately that computer is at warranty repair right now so I can't easily drop it in here as a working example. I had to hand translate the .pc files into the build config. Then I edited the project file and built it from the command line. The guide is from an old version of Visual Studio and didn't work for me so I stumbled through it. I'm a Linux programmer so it's foreign to me, but the project file itself feels like an XML Makefile so it kinda made sense. 

On Thu, Dec 27, 2018, 8:26 AM Aaron Boxer <[hidden email] wrote:
Dear GStreamers,

Has anyone successfully linked a 64 bit application to the 64 bit windows dlls ?

I have a 64 bit C# app linking to a 64 bit CLR dll, which in turn links to the 64 bit gstreamer dlls.
I get the following runtime error:

System.BadImageFormatException: 'Could not load file or assembly 'FOO.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)'

So, it seems that 64 bit libgstreamer.dll has a 32 bit dependency ?

Works fine in 32 bit mode, or in 64 bit if I remove the gstreamer dependencies.

Thanks,
Aaron
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Linking to 64 bit windows build

boxerab@gmail.com
Thanks. It was actually a problem with my PATH.


On Thu, Dec 27, 2018 at 10:48 AM Daniel Johnson <[hidden email]> wrote:
Yeah I got a 64 bit build of a very simple test application written in c to work using visual studio 2017 community edition around a two weeks ago. Unfortunately that computer is at warranty repair right now so I can't easily drop it in here as a working example. I had to hand translate the .pc files into the build config. Then I edited the project file and built it from the command line. The guide is from an old version of Visual Studio and didn't work for me so I stumbled through it. I'm a Linux programmer so it's foreign to me, but the project file itself feels like an XML Makefile so it kinda made sense. 

On Thu, Dec 27, 2018, 8:26 AM Aaron Boxer <[hidden email] wrote:
Dear GStreamers,

Has anyone successfully linked a 64 bit application to the 64 bit windows dlls ?

I have a 64 bit C# app linking to a 64 bit CLR dll, which in turn links to the 64 bit gstreamer dlls.
I get the following runtime error:

System.BadImageFormatException: 'Could not load file or assembly 'FOO.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)'

So, it seems that 64 bit libgstreamer.dll has a 32 bit dependency ?

Works fine in 32 bit mode, or in 64 bit if I remove the gstreamer dependencies.

Thanks,
Aaron
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel