help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] GTK Experiment on windows


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] GTK Experiment on windows
Date: Mon, 03 Jan 2011 12:06:51 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]