Thread: [wxVTK] Conflicting declarations when compiling wxVTK examples
Brought to you by:
malat
From: Catherine P. <cep...@gm...> - 2007-08-20 15:46:29
|
Hello all, I am a new user to wxVTKRenderWindowInteractor. I generated a makefile using ccmake without issues, but cannot get the example codes provided with wxVTKRenderWindowInteractor to compile correctly. I am getting the error messages: In file included from /usr/include/gtk-1.2/gdk/gdkprivate.h:33, from /usr/include/gtk-1.2/gdk/gdkx.h:30, from wxVTKRenderWindowInteractor.cpp:54: /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: conflicting declaration 'typedef gulong GdkAtom' /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: 'GdkAtom' has a previous declaration as `typedef struct _GdkAtom*GdkAtom' /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef gulong GdkAtom' /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef gulong GdkAtom' /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' /usr/include/gtk-1.2/gdk/gdktypes.h:57: error: conflicting declaration 'typedef struct _GdkWindow GdkWindow' ...and so on. Does anyone have any suggestions as to what I can to to resolve these errors? Thanks, Catheirne Peloquin |
From: Mathieu M. <mat...@gm...> - 2007-08-20 16:04:14
|
Hi Catherine, Can you send us the output of the following two commands: $ wx-config --libs $ wx-config --cppflags Thanks -Mathieu On 8/20/07, Catherine Peloquin <cep...@gm...> wrote: > Hello all, > > I am a new user to wxVTKRenderWindowInteractor. I generated a > makefile using ccmake without issues, but cannot get the example codes > provided with wxVTKRenderWindowInteractor to compile correctly. > > I am getting the error messages: > In file included from /usr/include/gtk-1.2/gdk/gdkprivate.h:33, > from /usr/include/gtk-1.2/gdk/gdkx.h:30, > from wxVTKRenderWindowInteractor.cpp:54: > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: conflicting declaration > 'typedef gulong GdkAtom' > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > 'GdkAtom' has a previous declaration as `typedef struct > _GdkAtom*GdkAtom' > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef > gulong GdkAtom' > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef > gulong GdkAtom' > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' > /usr/include/gtk-1.2/gdk/gdktypes.h:57: error: conflicting declaration > 'typedef struct _GdkWindow GdkWindow' > ...and so on. > > Does anyone have any suggestions as to what I can to to resolve these errors? > > Thanks, > Catheirne Peloquin > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > -- Mathieu |
From: Catherine P. <cep...@gm...> - 2007-08-20 21:36:58
|
Mathieu, Thank you for the quick response. I get the message "Command not found." when I try to use those commands. I did realize that my last e-mail neglected to mention that I originally had issues finding PkgConfig. I changed CMakeLists.txt so it looks for GTK instead (as you instructed in response to Tim Hutton's message to the mailing list entitled "[wxVTK] [CMake] CMake error: PkgConfig" ), and am now getting the previous declaration errors. Catherine > > On 8/20/07, Mathieu Malaterre <mat...@gm...> wrote: > > Hi Catherine, > > > > Can you send us the output of the following two commands: > > > > $ wx-config --libs > > $ wx-config --cppflags > > > > Thanks > > -Mathieu > > > > On 8/20/07, Catherine Peloquin <cep...@gm...> wrote: > > > Hello all, > > > > > > I am a new user to wxVTKRenderWindowInteractor. I generated a > > > makefile using ccmake without issues, but cannot get the example codes > > > provided with wxVTKRenderWindowInteractor to compile correctly. > > > > > > I am getting the error messages: > > > In file included from /usr/include/gtk-1.2/gdk/gdkprivate.h:33, > > > from /usr/include/gtk-1.2/gdk/gdkx.h:30, > > > from wxVTKRenderWindowInteractor.cpp:54: > > > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: conflicting declaration > > > 'typedef gulong GdkAtom' > > > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > > > 'GdkAtom' has a previous declaration as `typedef struct > > > _GdkAtom*GdkAtom' > > > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef > > > gulong GdkAtom' > > > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > > > conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' > > > /usr/include/gtk-1.2/gdk/gdktypes.h:52: error: declaration of `typedef > > > gulong GdkAtom' > > > /usr/local/wxWidgets-2.8.3/include/wx-2.8/wx/defs.h:2744: error: > > > conflicts with previous declaration `typedef struct _GdkAtom*GdkAtom' > > > /usr/include/gtk-1.2/gdk/gdktypes.h:57: error: conflicting declaration > > > 'typedef struct _GdkWindow GdkWindow' > > > ...and so on. > > > > > > Does anyone have any suggestions as to what I can to to resolve these errors? > > > > > > Thanks, > > > Catheirne Peloquin > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Wxvtk-users mailing list > > > Wxv...@li... > > > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > > > > > > > > -- > > Mathieu > > > |
From: Mathieu M. <mat...@gm...> - 2007-08-21 08:56:42
|
On 8/20/07, Catherine Peloquin <cep...@gm...> wrote: > Mathieu, > > Thank you for the quick response. I get the message "Command not > found." when I try to use those commands. Ok then :) You have to use either `locate` or `find` to find those commands. Anyway my goal here is that I suspect you have a wx lib configured for gtk2, but for some reason you have some gtk1.2. Who installed your local version of wx windows (path indicate that it is in /usr/local), which means you did not use your vendor package (debian, redhat). > I did realize that my last e-mail neglected to mention that I > originally had issues finding PkgConfig. I changed CMakeLists.txt so > it looks for GTK instead (as you instructed in response to Tim > Hutton's message to the mailing list entitled "[wxVTK] [CMake] CMake > error: PkgConfig" ), and am now getting the previous declaration > errors. Ouch ! Alright then: * What is your version of cmake ? * What is your version of wxwidget (see previous email) ? * What is your version of gtk ? * What gtk version is used for your wxwidget lib ? * What is your distro (debian, redhat...) ? * What version of wxVTK are you using ? If possible please take the one from CVS. If you do not understand the above questions, please go grab your sysadmin. Or whoever installed your wxwidget lib in /usr/local. Thanks -Mathieu |
From: Catherine P. <cep...@gm...> - 2007-08-21 17:28:48
|
Mathieu, You are correct, the version of GTK I was using differed from that needed by wxWidgets. I have corrected this issue and everything is working. Thank you, Catherine On 8/21/07, Mathieu Malaterre <mat...@gm...> wrote: > On 8/20/07, Catherine Peloquin <cep...@gm...> wrote: > > Mathieu, > > > > Thank you for the quick response. I get the message "Command not > > found." when I try to use those commands. > > Ok then :) > You have to use either `locate` or `find` to find those commands. > Anyway my goal here is that I suspect you have a wx lib configured for > gtk2, but for some reason you have some gtk1.2. Who installed your > local version of wx windows (path indicate that it is in /usr/local), > which means you did not use your vendor package (debian, redhat). > > > I did realize that my last e-mail neglected to mention that I > > originally had issues finding PkgConfig. I changed CMakeLists.txt so > > it looks for GTK instead (as you instructed in response to Tim > > Hutton's message to the mailing list entitled "[wxVTK] [CMake] CMake > > error: PkgConfig" ), and am now getting the previous declaration > > errors. > > Ouch ! > Alright then: > * What is your version of cmake ? > * What is your version of wxwidget (see previous email) ? > * What is your version of gtk ? > * What gtk version is used for your wxwidget lib ? > * What is your distro (debian, redhat...) ? > * What version of wxVTK are you using ? If possible please take the > one from CVS. > > If you do not understand the above questions, please go grab your > sysadmin. Or whoever installed your wxwidget lib in /usr/local. > > Thanks > -Mathieu > |