Author Topic: Compiling CB on Linux with wxWidget 2.8 problem  (Read 4804 times)

Offline TSalm

  • Multiple posting newcomer
  • *
  • Posts: 16
    • florent gabriel
Compiling CB on Linux with wxWidget 2.8 problem
« on: June 30, 2007, 08:51:17 am »
Hi all,

I'm trying to compile CB with wxWidget 2.8.
The compiler return me the error :
Code
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxFlatNotebook.lo -MD -MP -MF .deps/wxFlatNotebook.Tpo -c src/wxFlatNotebook/wxFlatNotebook.cpp  -fPIC -DPIC -o .libs/wxFlatNotebook.o
In file included from ../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h:40,
                 from src/wxFlatNotebook/wxFlatNotebook.cpp:12:
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:76: error: invalid use of undefined type `struct wxDropTarget'
/usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of `struct wxDropTarget'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: expected identifier before '*' token
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: ISO C++ forbids declaration of `wxDragResult' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: `wxDragResult' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: ISO C++ forbids declaration of `pt2Func' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:80: error: `pt2Func' does not name a type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:88: error: `pt2Func' has not been declared
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:89: error: ISO C++ forbids declaration of `pt2CallbackFunc' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:107: error: `OnData' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: In constructor `wxFNBDropTarget<T>::wxFNBDropTarget(T*, int)':
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:90: error: class `wxFNBDropTarget<T>' does not have any field named `m_pt2CallbackFunc'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:94: error: there are no arguments to `SetDataObject' that depend on a template parameter, so a declaration of `SetDataObject' must be available
.....

Thank for your help,
TSalm
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Compiling CB on Linux with wxWidget 2.8 problem
« Reply #1 on: June 30, 2007, 09:56:23 am »
It seems you are using Universal build of wxWidgets. I believe that is reason of failure.

Please use wxGTK-2.8-Non-Universal build.
Be a part of the solution, not a part of the problem.

Offline TSalm

  • Multiple posting newcomer
  • *
  • Posts: 16
    • florent gabriel
Re: Compiling CB on Linux with wxWidget 2.8 problem
« Reply #2 on: June 30, 2007, 12:19:41 pm »
Ya, now C::B is compiling well
Thanks!


I've compiling wxW. 2.8 with the configure options :
Code
./configure --enable-optimise --disable-universal

"configure" send to me :
Code
Configured wxWidgets 2.8.3 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           yes
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      yes
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Compiling CB on Linux with wxWidget 2.8 problem
« Reply #3 on: June 30, 2007, 12:32:24 pm »
Don't use wxGTK-2.8.3. C::B will not run at all.

Please download wxGTK-2.8.4 and use that.
Be a part of the solution, not a part of the problem.

Offline TSalm

  • Multiple posting newcomer
  • *
  • Posts: 16
    • florent gabriel
Re: Compiling CB on Linux with wxWidget 2.8 problem
« Reply #4 on: June 30, 2007, 03:58:36 pm »
oups, indeed.

now C::B work well.
thanks,

Tsalm
OS: Linux Slackware
Compiler: gcc 3.4.6
wxW: 2.6.4