LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2005, 03:52 AM   #1
dzan
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Question problem with gtk_type_check_object_cast


good day...

wanna ask for your help regarding my problem...

i created a simple system that uses plug-ins. The plug-ins work by creating a .so file of an application you want to plug-in...

i tested it with some applications already and its working.

right now, i am trying to make the Dillo browser as a plug-in... i created a .so file of dillo using the command:

gcc -g -shared -Wl,-soname,dillo.so.0 \-o R_dillo.so dillo.o -lc

with this, a lot of undefined symbols occured.... so instead of just using the dillo.o file... i added other .o files used by dillo... i used the same command but instead of only the dillo.o found in the end more of the .o files are added....

gcc -g -shared -Wl,-soname,dillo.so.0 \-o R_dillo.so dillo.o bookmark.o cache.o ...(so on) -lc

so when i did, some undefined symbol errors disapperead.... now the error says...

Modules/R_dillo.so: undefined symbol: gtk_type_check_object_cast[

can't seem to know the reason why this error occured...

what is the error all about?
how can i correct the error?
is the command i used correct in creating the .so file? other alternatives or commands creating .so?
 
Old 02-27-2005, 03:32 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Dillo uses GTK. Link the library with GTK and it should compile.
 
Old 02-28-2005, 08:20 AM   #3
dzan
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
new problem

thanks. you're right about the problem. it is related with gtk libraries. the reason the shared object file of dillo cannot be called by the system is that they are being compiled using different versions of gtk. the system is compiled with gtk 2.0 and libgnomegui while dillo is compiled with gtk 1.2 alone.

i tried to compile the system using version 1.2 but a lot of bugs occured... one reason is that some of the functions are deprecated already or changed name. i edited parts of the code, but still there are lot of bugs left... the interface even became a mess. so my other option is to compile dillo using gtk 2.0. withoot using the make file, i manually compiled it using gcc. there was no error that appeared... however, when i executed the system and called the dillo shared object file, a new error emerged.

i think it was now related to the gnome library. i do not know if this is because the system uses the gnome library when compiled so dillo should be compiled in gnome as well. in other words, they should be compiled using the same libraries.

the system should be dependent on dillo and not vice versa but it seems that dillo is also dependent on the system.

is there any way to compile the system and the dillo with the libraries they used and then connect the two?

Last edited by dzan; 03-01-2005 at 10:20 PM.
 
Old 03-01-2005, 10:21 PM   #4
dzan
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
are there other gtk html libraries that use gtk 2.0 and have less dependencies? if anyone could give me sample browsers written in those libraries as well.. thanks

Last edited by dzan; 03-01-2005 at 10:24 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration