GTK Experiment on windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

GTK Experiment on windows

Mathieu Suen-2
Hi All,

Since several day I tried to have gst-browser on windows.
gst work fine but if you try to launch
Now I found a way to have it.

Here is what I have done:
1) Cross compile it from Fedora using the mingw package.
2) Copy-it to windows.
3) install msys
4) Wrote this script:

----gstbrowser.st begin----
!/usr/bin/env gst
Eval [
    DLD addLibrary: 'libgobject-2.0-0'.
    DLD addLibrary: 'libglib-2.0-0'.
    DLD addLibrary: 'libgtk-win32-2.0-0'.
    DLD addLibrary: 'libgdk-win32-2.0-0'.
    DLD addLibrary: 'libgmodule-2.0-0'.
    DLD addLibrary: 'libgio-2.0-0'.
    DLD addLibrary: 'libcairo-2'.
    DLD addLibrary: 'libpango-1.0-0'.
    DLD addLibrary: 'libpangocairo-1.0-0'.
    DLD addLibrary: 'libgdk_pixbuf-2.0-0'.
    PackageLoader fileInPackage: 'VisualGST'.
    VisualGST.GtkLauncher uniqueInstance.
    GTK.Gtk main.
]
----gstbrowser.st end----

5) Launch the script $ ./gstbrowser.st

The reson for adding the DLD>>#addLibrary: is that on windows all the
library name look like libgtk-win32-2.0-0.dll.  This confuse libltdl.
I don't know if this could be solved.

Thanks

Mathieu




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: GTK Experiment on windows

Paolo Bonzini-2
On Wed, Dec 29, 2010 at 16:19, Mathieu Suen <[hidden email]> wrote:

> Hi All,
>
> Since several day I tried to have gst-browser on windows.
> gst work fine but if you try to launch
> Now I found a way to have it.
>
> Here is what I have done:
> 1) Cross compile it from Fedora using the mingw package.
> 2) Copy-it to windows.
> 3) install msys
> 4) Wrote this script:
>
> ----gstbrowser.st begin----
> !/usr/bin/env gst
> Eval [
>    DLD addLibrary: 'libgobject-2.0-0'.
>    DLD addLibrary: 'libglib-2.0-0'.
>    DLD addLibrary: 'libgtk-win32-2.0-0'.
>    DLD addLibrary: 'libgdk-win32-2.0-0'.
>    DLD addLibrary: 'libgmodule-2.0-0'.
>    DLD addLibrary: 'libgio-2.0-0'.
>    DLD addLibrary: 'libcairo-2'.
>    DLD addLibrary: 'libpango-1.0-0'.
>    DLD addLibrary: 'libpangocairo-1.0-0'.
>    DLD addLibrary: 'libgdk_pixbuf-2.0-0'.
>    PackageLoader fileInPackage: 'VisualGST'.
>    VisualGST.GtkLauncher uniqueInstance.
>    GTK.Gtk main.
> ]
> ----gstbrowser.st end----
>
> 5) Launch the script $ ./gstbrowser.st
>
> The reson for adding the DLD>>#addLibrary: is that on windows all the
> library name look like libgtk-win32-2.0-0.dll.  This confuse libltdl.
> I don't know if this could be solved.

I think so, great!!!

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: GTK Experiment on windows

Paolo Bonzini-2
In reply to this post by Mathieu Suen-2
On 12/29/2010 04:19 PM, Mathieu Suen wrote:

> Hi All,
>
> Since several day I tried to have gst-browser on windows.
> gst work fine but if you try to launch
> Now I found a way to have it.
>
> Here is what I have done:
> 1) Cross compile it from Fedora using the mingw package.
> 2) Copy-it to windows.
> 3) install msys
> 4) Wrote this script:
>
> ----gstbrowser.st begin----
> !/usr/bin/env gst
> Eval [
>      DLD addLibrary: 'libgobject-2.0-0'.
>      DLD addLibrary: 'libglib-2.0-0'.
>      DLD addLibrary: 'libgtk-win32-2.0-0'.
>      DLD addLibrary: 'libgdk-win32-2.0-0'.
>      DLD addLibrary: 'libgmodule-2.0-0'.
>      DLD addLibrary: 'libgio-2.0-0'.
>      DLD addLibrary: 'libcairo-2'.
>      DLD addLibrary: 'libpango-1.0-0'.
>      DLD addLibrary: 'libpangocairo-1.0-0'.
>      DLD addLibrary: 'libgdk_pixbuf-2.0-0'.
>      PackageLoader fileInPackage: 'VisualGST'.
>      VisualGST.GtkLauncher uniqueInstance.
>      GTK.Gtk main.
> ]
> ----gstbrowser.st end----
>
> 5) Launch the script $ ./gstbrowser.st
>
> The reson for adding the DLD>>#addLibrary: is that on windows all the
> library name look like libgtk-win32-2.0-0.dll.  This confuse libltdl.
> I don't know if this could be solved.

What Fedora do you have?  How did you configure?  My libs.def has

_gst_vm_proxy->dlAddSearchDir("/usr/i686-pc-mingw32/sys-root/mingw/lib");
_gst_vm_proxy->dlOpen("libatk-1.0", false);
_gst_vm_proxy->dlOpen("libgdi32", false);
_gst_vm_proxy->dlOpen("libgdk_pixbuf-2.0", false);
_gst_vm_proxy->dlOpen("libgdk-win32-2.0", false);
_gst_vm_proxy->dlOpen("libgio-2.0", false);
_gst_vm_proxy->dlOpen("libglib-2.0", false);
_gst_vm_proxy->dlOpen("libgmodule-2.0", false);
_gst_vm_proxy->dlOpen("libgobject-2.0", false);
_gst_vm_proxy->dlOpen("libgthread-2.0", false);
_gst_vm_proxy->dlOpen("libgtk-win32-2.0", false);
_gst_vm_proxy->dlOpen("libpango-1.0", false);
_gst_vm_proxy->dlOpen("libpangocairo-1.0", false);
_gst_vm_proxy->dlOpen("libpangowin32-1.0", false);

When you install, in theory the .dll files should be in the same
directory as gst-browser.exe, so that the dlAddSearchDir is unnecessary
(needed because the path is wrong) but the remaining lines more or less
match yours.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re : [Help-smalltalk] GTK Experiment on windows

Mathieu Suen-2
> De : Paolo Bonzini <[hidden email]>

>
> What Fedora do you have?  How did you  configure?  My libs.def  has

I used Fedora 14
$ uname -a
Linux mathk 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686
i386 GNU/Linux

To configure I have done:
$ ../configure --prefix=`pwd`/inst --host=i686-pc-mingw32 --build=i686-linux


>
> _gst_vm_proxy->dlAddSearchDir("/usr/i686-pc-mingw32/sys-root/mingw/lib");
> _gst_vm_proxy->dlOpen("libatk-1.0",  false);
> _gst_vm_proxy->dlOpen("libgdi32",  false);
> _gst_vm_proxy->dlOpen("libgdk_pixbuf-2.0",  false);
> _gst_vm_proxy->dlOpen("libgdk-win32-2.0",  false);
> _gst_vm_proxy->dlOpen("libgio-2.0",  false);
> _gst_vm_proxy->dlOpen("libglib-2.0",  false);
> _gst_vm_proxy->dlOpen("libgmodule-2.0",  false);
> _gst_vm_proxy->dlOpen("libgobject-2.0",  false);
> _gst_vm_proxy->dlOpen("libgthread-2.0",  false);
> _gst_vm_proxy->dlOpen("libgtk-win32-2.0",  false);
> _gst_vm_proxy->dlOpen("libpango-1.0",  false);
> _gst_vm_proxy->dlOpen("libpangocairo-1.0",  false);
> _gst_vm_proxy->dlOpen("libpangowin32-1.0", false);

I have the same here.

>
> When you  install, in theory the .dll files should be in the same
> directory as  gst-browser.exe, so that the dlAddSearchDir is unnecessary
> (needed because  the path is wrong) but the remaining lines more or less
> match  yours.
>
> Paolo
>




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re : [Help-smalltalk] GTK Experiment on windows

Paolo Bonzini-2
On 01/03/2011 12:38 PM, Mathieu Suen wrote:

>> De : Paolo Bonzini<[hidden email]>
>
>>
>> What Fedora do you have?  How did you  configure?  My libs.def  has
>
> I used Fedora 14
> $ uname -a
> Linux mathk 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686
> i386 GNU/Linux
>
> To configure I have done:
> $ ../configure --prefix=`pwd`/inst --host=i686-pc-mingw32 --build=i686-linux
>
>
>>
>> _gst_vm_proxy->dlAddSearchDir("/usr/i686-pc-mingw32/sys-root/mingw/lib");
>> _gst_vm_proxy->dlOpen("libatk-1.0",  false);
>> _gst_vm_proxy->dlOpen("libgdi32",  false);
>> _gst_vm_proxy->dlOpen("libgdk_pixbuf-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgdk-win32-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgio-2.0",  false);
>> _gst_vm_proxy->dlOpen("libglib-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgmodule-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgobject-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgthread-2.0",  false);
>> _gst_vm_proxy->dlOpen("libgtk-win32-2.0",  false);
>> _gst_vm_proxy->dlOpen("libpango-1.0",  false);
>> _gst_vm_proxy->dlOpen("libpangocairo-1.0",  false);
>> _gst_vm_proxy->dlOpen("libpangowin32-1.0", false);
>
> I have the same here.
>
>>
>> When you  install, in theory the .dll files should be in the same
>> directory as  gst-browser.exe, so that the dlAddSearchDir is unnecessary
>> (needed because  the path is wrong) but the remaining lines more or less
>> match  yours.

Seems all good...

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk