Re: Compiling GTK with QT based application



2010/6/6 David Nečas <yeti physics muni cz>:
> On Fri, Jun 04, 2010 at 06:42:43PM +0530, Rajendra Prasad Murakonda wrote:
>> Due to run flash on webkit I need to call gtk_init from my application once
>> due to some bug in gtk. I made a sample program in gtk and compiled it
>> successfully. But when I try to compile it with my application following the
>> same procedure, I get the following error.
>>

Your goal is not clear here. However, I got this error too, when I
both include gtk+ and Qt headers in the same code where I use qmake to
build the application.

>> ==
>> n file included from /usr/include/gtk-2.0/gtk/gtk.
>> h:44, from src/main.cpp:3:
>> /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: expected unqualified-id
>> before "protected"
>> /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: abstract declarator
>> `GtkBindingSignal*' used as declaration
>> /usr/include/gtk-2.0/gtk/gtkbindings.h:76: error: expected `;' before
>> "protected"
>> ==
>>
>> Any idea what went wrong. Any help is much appreciated.

Please look at this thread ->
http://discussion.forum.nokia.com/forum/showthread.php?t=190686.
Including gtk+ headers before Qt headers worked for me. Its likely
that the problem is related with signals in Qt.


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