Page 1 of 2

WebGadget & libgtkembedmoz?

Posted: Tue May 04, 2010 12:08 am
by gedumer
Can someone please tell me what package needs to be installed to get libgtkembedmoz.so? I have reviewed all the messages on the forum about this library, but I can't identify the package I need to install to get it. It's not in the Thunderbird, Firefox, XULRunner, etc. development files. I have installed all those and it is not there. In early 2009, when I first purchased PureBasic, I found the library somewhere and installed it. Unfortunately, I recently had a disastrous upgrade from Ubuntu 9.10 to 10.04. It went poorly and I had to re-install the OS from scratch... hence, I lost all my libraries, etc. I'm trying to recover everything and all has gone well so far... but I can't find the "libgtkembedmoz" file.

Please help.

Re: WebGadget & libgtkembedmoz?

Posted: Tue May 04, 2010 7:38 am
by ts-soft
I think libgtkembedmoz.so is for FireFox 2, but this version is no more supported and not recommended.
Also, there is no way to use webgadget on x64 linux :o

I hope there come some changes in a later release of PB.

Greetings
Thomas

Re: WebGadget & libgtkembedmoz?

Posted: Tue May 04, 2010 3:19 pm
by gedumer
ts-soft wrote:I think libgtkembedmoz.so is for FireFox 2, but this version is no more supported and not recommended.
Also, there is no way to use webgadget on x64 linux :o

I hope there come some changes in a later release of PB.

Greetings
Thomas
If that is true, then why is that library still in the README file as a requirement for using WebGadget()? How do I get WebGadget() to work without it? If it is still a requirement, where do I find it?

BTW... I am using the x86 version.

Re: WebGadget & libgtkembedmoz?

Posted: Tue May 04, 2010 6:22 pm
by gerd
Hi gedumer,

I'm using opensuse 11.2 and the mozilla-xulrunner181-1.8.1.19-1.1.i586.rpm and it is working well. Now I don't know, if Ubuntu can handle rpms, but in case it can this should do it. Unfortunately I'm not sure from where I got it, I think it was the mandriva source directory. I don't know how to get it to you, otherwise I would post it, but may be one of the more experienced guys can help.

gerd

Re: WebGadget & libgtkembedmoz?

Posted: Tue May 04, 2010 9:02 pm
by gedumer
gerd wrote:Hi gedumer,

I'm using opensuse 11.2 and the mozilla-xulrunner181-1.8.1.19-1.1.i586.rpm and it is working well. Now I don't know, if Ubuntu can handle rpms, but in case it can this should do it. Unfortunately I'm not sure from where I got it, I think it was the mandriva source directory. I don't know how to get it to you, otherwise I would post it, but may be one of the more experienced guys can help.

gerd
Ubuntu uses DEB for its packages. I installed xulrunner 1.9.2 and it no longer contains that library. I think that's how I got it (from xulrunner) last year when I purchased PureBasic. At that time it was certainly an older version that still used that lib.

I think the PureBasic developers will have to intervene here. There has to be another option if the library is no longer supported and available.

Re: WebGadget & libgtkembedmoz?

Posted: Wed May 05, 2010 8:01 am
by ts-soft

Re: WebGadget & libgtkembedmoz?

Posted: Sat May 08, 2010 5:44 pm
by Shardik
gedumer wrote:Can someone please tell me what package needs to be installed to get libgtkembedmoz.so?
For Ubuntu/Kubuntu x86 installations you need the library libxul0d. You can download
and install this library with Synaptic or open a Console and type
sudo apt-get install libxul0d
You will have to enter your root password and this library will be downloaded and
installed. Afterwards you will find libgtkembedmoz.so in /usr/lib/xulrunner.
This libgtkembedmoz.so is a symbolic link to usr/lib/libgtkembedmoz.so.0d.
To utilize the WebGadget you should test this code example afterwards:

Code: Select all

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  If WebGadgetPath("/usr/lib/xulrunner/libgtkembedmoz.so", "/usr/lib/xulrunner") = 0
    MessageRequester("Error", "The library libgtkembedmoz.so was not found!")
  Else
    WebGadget(0, 10, 10, 580, 280, "http://www.purebasic.com")

    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf
EndIf
I have successfully tested this approach with Ubuntu 9.04 and Kubuntu 9.10.
ts-soft wrote:I think libgtkembedmoz.so is for FireFox 2
Thomas, that's not true. You should know it better, because I already explained in two
threads in the German forum (in the second thread you also posted :wink:) how to obtain
libgtkembedmoz.so for OpenSuSE 11.0 (with the at that time new Firefox 3.0) and
OpenSuSE 11.1. However you may be right that Firefox 2 contained libgtkembedmoz
in its own libraries whereas Firefox 3 didn't. Therefore you had to install Xulrunner 1.8.x
which still contained libgtkembedmoz:
http://www.purebasic.fr/german/viewtopi ... 22&start=5
http://purebasic.fr/german/viewtopic.ph ... 8&start=14

Re: WebGadget & libgtkembedmoz?

Posted: Sat May 08, 2010 8:00 pm
by ts-soft
apt wrote:Paket libxul0d hat keinen Installationskandidaten
There is no official paket like this in ubuntu 10.04

Re: WebGadget & libgtkembedmoz?

Posted: Sun May 09, 2010 1:24 am
by gedumer
Shardik wrote:
gedumer wrote:Can someone please tell me what package needs to be installed to get libgtkembedmoz.so?
For Ubuntu/Kubuntu x86 installations you need the library libxul0d. You can download
and install this library with Synaptic or open a Console and type
sudo apt-get install libxul0d
You will have to enter your root password and this library will be downloaded and
installed.

I have successfully tested this approach with Ubuntu 9.04 and Kubuntu 9.10.
Unfortunately, that doesn't work for me on Ubuntu 10.04 new install. I get the following message:

Code: Select all

gary@gary-desktop:~$ sudo apt-get install libxul0d
[sudo] password for gary: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libxul0d is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libxul0d has no installation candidate

Re: WebGadget & libgtkembedmoz?

Posted: Sun May 09, 2010 7:36 am
by Shardik
Unfortunately I have to confirm ts-soft's and gedumer's findings:
In Ubuntu/Kubuntu 10.04 the package libxul0d is no longer available... :evil:

But those who upgrade an older Ubuntu/Kubuntu system should be careful:
Yesterday I upgraded a Kubuntu 9.10 to 10.4. Before the upgrade I had
successfully installed package libxul0d. After the completion of the upgrade
and before the final reboot I was asked if 43 old packages which are no
longer required could be deleted. I said no to the delete request for package
libxul0d and yes to all other packages. After the final reboot libxul0d (and
libgtkembedmoz.so) were still available running Kubuntu 10.04 and the
WebGadget worked fine.

After removing libxul0d using Synaptic and reinstalling it using apt-get
install
I obtained the same error message as reported in gedumer's posting.
So we have to try to find a new available package in Ubuntu 10.04 which still
contains libgtkembedmoz...

Re: WebGadget & libgtkembedmoz?

Posted: Sun May 09, 2010 9:01 pm
by Coolman

Re: WebGadget & libgtkembedmoz?

Posted: Tue May 11, 2010 5:49 pm
by Shardik
Thank you Coolman for your link. But unfortunately the Kompozer package doesn't
help because the contained libgtkembedmoz.so doesn't work with WebGadgetPath().
I have tested /usr/lib/kompozer/libgtkembedmoz.so without a Mozilla library (for
which the help states that it isn't checked at all) and several combinations of Mozilla
folders like /usr/lib/firefox, /usr/lib/kompozer, /usr/lib/firefox-3.6.3, /usr/lib/xulrunner
etc. and always WebGadgetPath() returns 0 (not found).

And the Kompozer package is the only one for Ubuntu 10.04 which still contains
libgtkembedmoz.so... :roll:

Re: WebGadget & libgtkembedmoz?

Posted: Thu May 13, 2010 1:14 pm
by Coolman
In this case, it must force the installation packages using the karmic:

download the following packages:

libmozjs0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb
libxul-common_1.8.1.16+nobinonly-0ubuntu1_all.deb
libxul0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb

Type the following commands:

sudo dpkg -i libxul-common_1.8.1.16+nobinonly-0ubuntu1_all.deb
sudo dpkg -i libmozjs0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb
sudo dpkg -i libxul0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb

I just tested and it works very well in ubuntu 10.04...

8)

Re: WebGadget & libgtkembedmoz?

Posted: Thu May 13, 2010 3:18 pm
by gedumer
Coolman wrote:In this case, it must force the installation packages using the karmic:

download the following packages:

libmozjs0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb
libxul-common_1.8.1.16+nobinonly-0ubuntu1_all.deb
libxul0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb

Type the following commands:

sudo dpkg -i libxul-common_1.8.1.16+nobinonly-0ubuntu1_all.deb
sudo dpkg -i libmozjs0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb
sudo dpkg -i libxul0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb

I just tested and it works very well in ubuntu 10.04...

8)
For the moment, let's assume this works. The problem, as I see it, is that this is a VERY old version of XULRUNNER. It is not meant to be used any longer... it is obsolete. The current version is 1.9.2.x and it does NOT include the necessary files mentioned above. If the developers of PureBasic want to claim that WebGadget is a current and functioning component of PB, then it seems to me that it is their obligation to make sure that it performs correctly with currently available and necessary libraries. If libgtkembedmoz.so is no longer current and available, then it is their responsibility to inform us which current libraries will provide the necessary functionality for WebGadget to operate correctly. I feel like we have all been left out in the cold, alone, to rummage around in the garbage heaps of obsolete library repositories so we can solve their problem for them. What the developers need to do is start with a fresh install of Ubuntu, or any other CURRENT version of Linux, so they can discover the frustration that we are experiencing.

Re: WebGadget & libgtkembedmoz?

Posted: Thu May 13, 2010 4:15 pm
by Coolman
I understand your frustration, but ubuntu 10.04 just released, this is not the fault of the author of purebasic if some packages have been removed and impair the operation of language, the problem will probably be resolved in the next release purebasic a day ...

pending and not be blocked, use the solution above ...

8)