Author Topic: Can't compile, Debian testing  (Read 2828 times)

Sayd

  • Guest
Can't compile, Debian testing
« on: November 07, 2007, 01:26:25 pm »
I can't even compile C::B:
Code
make[3]: Entering directory `/usr/src/code::blocks/trunk/src/sdk/propgrid'
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -I../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix  -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT propgrid.lo -MD -MP -MF ".deps/propgrid.Tpo" -c -o propgrid.lo `test -f './src/propgrid/propgrid.cpp' || echo './'`./src/propgrid/propgrid.cpp; \
        then mv -f ".deps/propgrid.Tpo" ".deps/propgrid.Plo"; else rm -f ".deps/propgrid.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT propgrid.lo -MD -MP -MF .deps/propgrid.Tpo -c ./src/propgrid/propgrid.cpp  -fPIC -DPIC -o .libs/propgrid.o
./src/propgrid/propgrid.cpp:411:21: error: gtk/gtk.h: No such file or directory
./src/propgrid/propgrid.cpp: In function 'bool wxPGIsWindowBuffered(const wxWindow*)':
./src/propgrid/propgrid.cpp:414: error: 'GTK_WIDGET_DOUBLE_BUFFERED' was not declared in this scope
make[3]: *** [propgrid.lo] Error 1



It seems every needed dev packages are installed (configure says no error).
Command below compiles (i added `pkg-config --cflags gtk+-2.0`):
Code
g++ `pkg-config --cflags gtk+-2.0` -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_USE_WXMODULE=0 -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT propgrid.lo -MD -MP -MF .deps/propgrid.Tpo -c ./src/propgrid/propgrid.cpp -fPIC -DPIC -o .libs/propgrid.o

But I can't understand why libtool don't use it. I think that is an error somethere with autoconf, automake, configure and etc ...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't compile, Debian testing
« Reply #1 on: November 07, 2007, 01:49:54 pm »
You can download the tarball of svn4596 from my repo (see sig) with a slightly fixed "debian/control"-file.

It should ask for all needed (and actual) build-deps.

It works for me on clean "stable", "testing" and "unstable".

I have also a tarball (and packages) for svn4599 and svn4600 on the server, but not moved to the repo, because there is no new nightly out since svn4596.