WebGadget & libgtkembedmoz?

Linux specific forum
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: WebGadget & libgtkembedmoz?

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: WebGadget & libgtkembedmoz?

Post by ts-soft »

apt wrote:Paket libxul0d hat keinen Installationskandidaten
There is no official paket like this in ubuntu 10.04
gedumer
User
User
Posts: 48
Joined: Wed Jun 03, 2009 9:04 pm

Re: WebGadget & libgtkembedmoz?

Post 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
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: WebGadget & libgtkembedmoz?

Post 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...
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Re: WebGadget & libgtkembedmoz?

Post by Coolman »

*** Excuse my bad English, I uses has translating program ***
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: WebGadget & libgtkembedmoz?

Post 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:
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Re: WebGadget & libgtkembedmoz?

Post 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)
*** Excuse my bad English, I uses has translating program ***
gedumer
User
User
Posts: 48
Joined: Wed Jun 03, 2009 9:04 pm

Re: WebGadget & libgtkembedmoz?

Post 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.
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Re: WebGadget & libgtkembedmoz?

Post 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)
*** Excuse my bad English, I uses has translating program ***
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: WebGadget & libgtkembedmoz?

Post by Vera »

Hello,

because of a current question about the WebGadget I found that I too miss the libgtkembedmoz.so totally on my system. It's Suse 11.1 / FF 3.0 and so the above given hints won't help.

I've searched long but couldn't find this lib. I did find a page where you can search for pakages including certain files (http://rpm.pbone.net/index.php3/stat/2/simple/2 ), but wouldn't know which one to install. I've tried NVU but the installation was aborted twice and I don't want to mess around here. (should I install XULRunner 1.8.1 although version 1.9 is on the system alright? )

Does anybody know how to get hold of this lib and install it?

greetings ~ Vera
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: WebGadget & libgtkembedmoz?

Post by Shardik »

Vera wrote:It's Suse 11.1 / FF 3.0 and so the above given hints won't help.
Have you tried my link I already posted in this thread in response to ts-soft's posting?
There I report for OpenSuse 11.1 that installing the old package mozilla-xulrunner-181
in addition to the 1.9.x package solves this problem and tmjuk even confirmed that my
solution worked for him...
gedumer
User
User
Posts: 48
Joined: Wed Jun 03, 2009 9:04 pm

Re: WebGadget & libgtkembedmoz?

Post by gedumer »

Shardik wrote:
Vera wrote:It's Suse 11.1 / FF 3.0 and so the above given hints won't help.
Have you tried my link I already posted in this thread in response to ts-soft's posting?
There I report for OpenSuse 11.1 that installing the old package mozilla-xulrunner-181
in addition to the 1.9.x package solves this problem and tmjuk even confirmed that my
solution worked for him...
See... this is a lingering problem. It's not going to go away until the developers address it directly as I stated above. It's NOT an Ubuntu 10.04 problem. It's an issue for every new Linux installation that does not already have the old libraries in place. They no longer exist.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: WebGadget & libgtkembedmoz?

Post by Vera »

Hello Shardik,

thanks for your further hints. I didn't realise those links concerned Suse.
Well, I read all 3 threads several times and followed the offering by tmjuk with his zipped xulrunner-version - but it doesn't work (neither with 4.50, 4.41 nor 4.31). I also tried long time if other paths for 'MozillaPfad$' would be needed and also in combination with local html-files.

So two options are left over:
1 - this libgtkembedmoz.so won't work together with FF 3.01
2 - it may work if xulrunner is installed properly

well, and there again I wouldn't know which out of maybe 20 (1.8.1) versions I can find here* I should choose.
Could you please recommend one to me or even another place to find one.

* http://rpm.pbone.net/index.php3?stat=3& ... &field[]=2

greetings ~ Vera
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: WebGadget & libgtkembedmoz?

Post by Shardik »

Hello Vera,

did you try to start Yast2 and then to choose "Software installieren oder löschen" (Install or delete software)?
Then in the search field enter "xulrunner" and all available xulrunner packages should be listed. I simply made
a check mark in front of "mozilla-xulrunner181" (mozilla-xulrunner190 was already selected) and installed this
package. My OpenSuse 11.1 installation was out of the box without defining additional package sources than
those predefined. My source code example from the above link works like a charme. I just tested it again with
PB 4.41...
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: WebGadget & libgtkembedmoz?

Post by Vera »

Dear Shardik,
thanks - SUCCESS Image

I didn't know it can be that easy via Yast if you know what to search for - and this way it's much trustworthier than to grab something for the wide net.

After installing (XULRunner 1.8.1.19 & dev-edition) your above posted code worked straight away. For both online and local html. In my case too both WebGadgetPath parameters are needed otherwise the html wouldn't show.

small tip: CreateGadgetList() will be alarmed as deprecated ;)

thanks again - and now I can answer tmjuks question as well - he's already waiting for 10 months :wink:

cheers ~ Vera
Post Reply