Page 1 of 1

WebGadget and Ubuntu 6.06

Posted: Fri Jun 30, 2006 4:48 am
by computercoder
I have researched everywhere first before finally deciding to post this thread. Originally (minutes before I figured out the answer to the problem I faced), I was going to ask a question. Instead, i found the answer and thought I would post this information for future users facing a similar problem. I am also not new to Linux, but some of the more trivial things I may not have ever touched before. I normally don't need to go outside the Windowing environment, as I perform much of my daily tasks using the applications within it. I do understand how to navigate and work about within the shells as well... That said, here's what I ran up against.

Here is a valuable place to learn about what to do in order to get it working for Linux:

http://www.purebasic.fr/english/viewtop ... et&start=0

BUT...

Following everything I found in these forums, I still am unsuccessful at getting the WebGadget to work.

1) I have BOTH GTK1.2 and 2.0 installed (2.0 was even freshly updated 30 minutes ago via Ubuntu Update)
2) I have libgtkembedmoz.so located under /usr/lib/firefox
3) Created symbolic links to the .so under /usr/lib, /lib, and even in the purebasic libraries folder.
4) ran ldconfig after creating the sym-links
5) I DO NOT have a file /etc/ld.so.config, so I was unable to even try and create this (since I have no clue what should be in it, nor how it should be written), but I did attempt to just add in the /usr/lib/firefox pointer and perform ldconfig.

After performing all these various steps, still NOTHING.

There were a couple of exports you need to do in the README that comes with PB that I also performed.

I even added gtk2 in the command "Library Subsystem" switch in the Compiler Options window. Still nothing.

At this point, I sunk a week into this. All I want to do is see how this cool lil gadget works under linux after using it successfully in Windows. I was frustrated but determined.

I took a stab in the dark here. It seemed it was a matter of PB not being able to link the "libgtkembedmoz.so" file... :cry: Eevrything pointed in one direction, and it was the missing ld.so.conf file. I basically did a search online and found the structure to the beast. Not much of a beast. I added the following to the new file:

#Begin
/usr
/usr/lib
/usr/lib/firefox
#End

Saved the file and closed it up.

Ran a terminal window and did:
sudo ldconfig

Went back into PB and loaded my test...
BAM! Up came the WebGadet!

Posted: Fri Jun 30, 2006 9:19 am
by walker
Thank you very much for sharing your experience...
I'd switched to Kubuntu 3 days ago 8) and will need the WebGadget() too..
I'll test "your way" and report my results...