aMule Forum
English => Compilation problems => Topic started by: Festor on March 23, 2009, 09:48:14 PM
-
aMule 2.2.4 rc 9534 in Ubuntu Hardy, Intrepid and Jaunty (i386, amd64 and lpia )...
configure
: --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--disable-dependency-tracking --disable-ccache --disable-optimize --enable-debug \
--enable-amule-daemon --enable-amulecmd --enable-ed2k --enable-webserver \
--enable-amule-gui --enable-cas --enable-wxcas --enable-alc --enable-alcc \
--disable-embedded-crypto --enable-geoip --enable-upnp --with-wxdebug
Log: http://launchpadlibrarian.net/24288081/buildlog_ubuntu-intrepid-i386.amule_2.2.4~svn20090323-0ubuntu1~intrepid2_FAILEDTOBUILD.txt.gz
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/utils/wxCas/src -I../../../.. -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/usr/lib/wx/include/base-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -DwxUSE_GUI=0 -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -Wall -g3 -O0 -c -o onlinesig.o ../../../../../src/utils/wxCas/src/onlinesig.cpp
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/utils/wxCas/src -I../../../.. -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/usr/lib/wx/include/base-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -DwxUSE_GUI=0 -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -Wall -g3 -O0 -c -o linuxmon.o ../../../../../src/utils/wxCas/src/linuxmon.cpp
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/utils/wxCas/src -I../../../.. -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/usr/lib/wx/include/base-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -DwxUSE_GUI=0 -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -pthread -Wall -g3 -O0 -c -o wxcas.o ../../../../../src/utils/wxCas/src/wxcas.cpp
../../../../../src/utils/wxCas/src/wxcas.cpp:46:2: error: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from ../../../../../src/utils/wxCas/src/wxcas.h:43,
from ../../../../../src/utils/wxCas/src/wxcas.cpp:51:
../../../../../src/utils/wxCas/src/wxcasframe.h:57: error: invalid use of incomplete type 'struct wxFrame'
/usr/include/wx-2.8/wx/utils.h:50: error: forward declaration of 'struct wxFrame'
../../../../../src/utils/wxCas/src/wxcasframe.h:59: error: ISO C++ forbids declaration of 'wxToolBar' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:59: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:60: error: 'wxBitmap' does not name a type
../../../../../src/utils/wxCas/src/wxcasframe.h:62: error: ISO C++ forbids declaration of 'wxBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:62: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:63: error: ISO C++ forbids declaration of 'wxBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:63: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:65: error: ISO C++ forbids declaration of 'wxPanel' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:65: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:67: error: ISO C++ forbids declaration of 'wxStaticLine' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:67: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:73: error: ISO C++ forbids declaration of 'wxStaticBox' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:73: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:74: error: ISO C++ forbids declaration of 'wxStaticBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:74: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:76: error: ISO C++ forbids declaration of 'wxStaticBox' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:76: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:77: error: ISO C++ forbids declaration of 'wxStaticBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:77: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:79: error: ISO C++ forbids declaration of 'wxStaticBox' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:79: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:80: error: ISO C++ forbids declaration of 'wxStaticBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:80: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:82: error: ISO C++ forbids declaration of 'wxStaticBox' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:82: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:83: error: ISO C++ forbids declaration of 'wxStaticBoxSizer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:83: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:85: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:85: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:86: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:86: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:87: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:87: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:88: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:88: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:89: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:89: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:90: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:90: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:91: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:91: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:93: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:93: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:94: error: ISO C++ forbids declaration of 'wxButton' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:94: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:96: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:96: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:97: error: ISO C++ forbids declaration of 'wxButton' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:97: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:100: error: ISO C++ forbids declaration of 'wxTimer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:100: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:101: error: ISO C++ forbids declaration of 'wxTimer' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:101: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:108: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:108: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:109: error: ISO C++ forbids declaration of 'wxStaticText' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:109: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcasframe.h:156: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:157: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:158: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:159: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:160: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:161: error: 'wxTimerEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:162: error: 'wxTimerEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:163: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:164: error: 'wxCommandEvent' has not been declared
../../../../../src/utils/wxCas/src/wxcasframe.h:176: error: ISO C++ forbids declaration of 'wxImage' with no type
../../../../../src/utils/wxCas/src/wxcasframe.h:176: error: expected ';' before '*' token
../../../../../src/utils/wxCas/src/wxcas.cpp: In function 'wxAppConsole* wxCreateApp()':
../../../../../src/utils/wxCas/src/wxcas.cpp:54: error: cannot allocate an object of abstract type 'WxCas'
../../../../../src/utils/wxCas/src/wxcas.h:47: note: because the following virtual functions are pure within 'WxCas':
/usr/include/wx-2.8/wx/app.h:89: note: virtual int wxAppConsole::OnRun()
../../../../../src/utils/wxCas/src/wxcas.cpp: In member function 'virtual bool WxCas::OnInit()':
../../../../../src/utils/wxCas/src/wxcas.cpp:65: error: 'wxImage' has not been declared
../../../../../src/utils/wxCas/src/wxcas.cpp:65: error: expected type-specifier before 'wxPNGHandler'
../../../../../src/utils/wxCas/src/wxcas.cpp:65: error: expected `)' before 'wxPNGHandler'
../../../../../src/utils/wxCas/src/wxcas.cpp:70: error: 'wxImage' has not been declared
../../../../../src/utils/wxCas/src/wxcas.cpp:70: error: expected type-specifier before 'wxJPEGHandler'
../../../../../src/utils/wxCas/src/wxcas.cpp:70: error: expected `)' before 'wxJPEGHandler'
../../../../../src/utils/wxCas/src/wxcas.cpp:78: error: 'SetPrintMode' was not declared in this scope
../../../../../src/utils/wxCas/src/wxcas.cpp:88: error: 'class WxCasFrame' has no member named 'Show'
../../../../../src/utils/wxCas/src/wxcas.cpp:89: error: 'SetTopWindow' was not declared in this scope
make[6]: *** [wxcas.o] Error 1
make[6]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/amule-2.2.4~svn20090323/obj-i486-linux-gnu'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
More logs:
http://launchpadlibrarian.net/24287982/buildlog_ubuntu-hardy-i386.amule_2.2.4~svn20090323-0ubuntu1~hardy2_FAILEDTOBUILD.txt.gz
http://launchpadlibrarian.net/24288130/buildlog_ubuntu-jaunty-i386.amule_2.2.4~svn20090323-0ubuntu1~jaunty2_FAILEDTOBUILD.txt.gz
-
../../../../../src/utils/wxCas/src/wxcas.cpp:46:2: error: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
Do you have that option set in the wx setup.h ?
-
../../../../../src/utils/wxCas/src/wxcas.cpp:46:2: error: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
Do you have that option set in the wx setup.h ?
I don't know.
wx setup.h is in Wxwidgets source or in aMule source?
-
It's part of wx. Under Linux it's created by wx's configure I think. You can turn about 100 wx features on and off with it individually.
Search for it in wx's include path and look for that option please.
-
--enable-printarch use printing architecture
This option should be enabled by default, I don't know if it is disabled intentionally or configure disables it for some reason for you.
-
--enable-printarch use printing architecture
This option should be enabled by default, I don't know if it is disabled intentionally or configure disables it for some reason for you.
I explicitly enabled that option but it does not help solve the problem.
I think that this problem appeared when I try to use the option '--with-wxdebug' as suggested btkaos (http://www.amule.org/amule/index.php?topic=16691.msg88722#msg88722). However, only with this modification, the compilation fails in the execution of the configure file.
The configure not find the library libwxgtk2.8-dev with debugging information (libwxgtk2.8-dbg). I assumed that this is normal as libwxgtk2.8-dev package does not depend on libwxgtk2.8-dbg, therefore I put the libwxgtk2.8-dbg package as build-depends of amule and I think that here was when it appeared the problem.
-
Ok, reading your whole post, not just the reply ::) I found out that you're trying to build a gui app (wxCas) with the base library. That just cannot succeed.
Please do a 'wx-config --list' and see if a gtk2-unicode-debug version is available. If it is, then all you need to do is add '--with-toolkit=gtk2' to aMule's configure line.
-
Ok, reading your whole post, not just the reply ::) I found out that you're trying to build a gui app (wxCas) with the base library. That just cannot succeed.
Thanks! The problem is that I was using the package libwxbase2.8-dbg package and not libwxgtk2.8-dbg
Now fixed!! ;D ;D