kode
Newcomer

Posts: 6
|
 |
« on: January 30, 2010, 12:20:52 pm » |
|
I has codeblocks 8.02 and remove it in order to install SVN version with all contributed plugins. I downloaded the source from there svn://svn.berlios.de/codeblocks/trunk and follow the instructions from this page: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_LinuxI installed wxGTK-2.8.10 and wxWidgets-2.8.10 and try to run ./configure --with-contrib-plugins=all but I get error: ... ./configure: line 25511: AM_OPTIONS_WXCONFIG: command not found ./configure: line 25512: syntax error near unexpected token `2.8.0,' ./configure: line 25512: `AM_PATH_WXCONFIG(2.8.0, wxWin=1)' ... mean that it run some time and error appear at the end. My system uname -a is: uname -a Linux laptop 2.6.29.6-smp #2 SMP Mon Aug 17 00:52:54 CDT 2009 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux with Slackware 13 and KDE 4.2.4 Any help will be appreciated.
|
|
|
|
|
Logged
|
|
|
|
|
jens
|
 |
« Reply #1 on: January 30, 2010, 01:18:02 pm » |
|
Do you have the devel packages installed ?
|
|
|
|
|
Logged
|
|
|
|
kode
Newcomer

Posts: 6
|
 |
« Reply #2 on: January 30, 2010, 02:19:08 pm » |
|
Did you mean wxGTK-devel-2.8.10? No, I have installed wxGTK-2.8.10, as a stable release? Modify: I just convert wxGTK-devel-2.8.10-1.el3.pp.i386.rpm to tgz and installed it, but configure don't work again. Modify 2: I download version 8.02 - it can be configured with plugins, but can't finish make - some errors appear: ./wxscoder.cpp:378: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, int, wxString&)' ./wxscoder.h:151: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&) ./wxscoder.cpp: In member function 'bool wxsCoder::ApplyChangesString(wxString&, const wxString&, const wxString&, wxString&, bool, bool, bool&, wxString&)': ./wxscoder.cpp:466: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, size_t, wxString&)' ./wxscoder.h:151: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&) make[5]: *** [wxscoder.lo] Error 1 make[5]: Leaving directory `/home/kode/3downloads/1junk/codeblocks-8.02/src/plugins/contrib/wxSmith' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/kode/3downloads/1junk/codeblocks-8.02/src/plugins/contrib/wxSmith' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/kode/3downloads/1junk/codeblocks-8.02/src/plugins/contrib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kode/3downloads/1junk/codeblocks-8.02/src/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kode/3downloads/1junk/codeblocks-8.02/src' make: *** [all-recursive] Error 1
I do not preffer to any version, just want to have contributed plugins.
|
|
|
|
« Last Edit: January 30, 2010, 02:53:18 pm by kode »
|
Logged
|
|
|
|
koso
Advanced newcomer

Posts: 34
|
 |
« Reply #3 on: January 30, 2010, 05:17:34 pm » |
|
|
|
|
|
|
Logged
|
|
|
|
Folco
Advanced newcomer

Posts: 20
|
 |
« Reply #4 on: January 30, 2010, 06:36:19 pm » |
|
Another way to compile Codeblocks under Linux : re-install the 8.02 version, and then build the svn version, using the codeblocks-linux.cbp to build in inside Codeblocks. Then just copy the files of codeblocks/src/devel/ into their directories (/usr/bin/, /usr/lib/). It's easy, at home I get neither warning or errors, it's the simplest way (before doing that, I got some errors like yours that I wasn't able to fix...).
|
|
|
|
|
Logged
|
Sorry for my english, I'm french
|
|
|
kode
Newcomer

Posts: 6
|
 |
« Reply #5 on: January 31, 2010, 09:08:14 am » |
|
I have restored C::B with backup of my system from the previous day (lucky I am) This is great idea Folco, but when build I have these errors: ||=== Code::Blocks - Unix, sdk ===| ||warning: cannot set LC_CTYPE locale| ||warning: environment variable LANG is en_EN| ||warning: please check that your locale name is correct| /home/kode/trunk/src/sdk/filemanager.cpp||In member function 'bool FileManager::WriteWxStringToFile(wxFile&, const wxString&, wxFontEncoding, bool)':| /home/kode/trunk/src/sdk/filemanager.cpp|357|error: no matching function for call to 'wxMBConvUTF7::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|362|error: no matching function for call to 'wxMBConvUTF8::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|367|error: no matching function for call to 'wxMBConvUTF16BE::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|372|error: no matching function for call to 'wxMBConvUTF16LE::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|377|error: no matching function for call to 'wxMBConvUTF32BE::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|382|error: no matching function for call to 'wxMBConvUTF32LE::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| /home/kode/trunk/src/sdk/filemanager.cpp|406|error: no matching function for call to 'wxCSConv::cWC2MB(const wxChar*, size_t&, size_t*)'| /usr/local/include/wx-2.8/wx/strconv.h|89|note: candidates are: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*) const| /usr/local/include/wx-2.8/wx/strconv.h|106|note: const wxCharBuffer wxMBConv::cWC2MB(const wchar_t*, size_t, size_t*) const| ||=== Build finished: 7 errors, 3 warnings ===|
This is what I do: Download with svn, open file CodeBlocks-unix.cbp with C::B and run Build.
|
|
|
|
|
Logged
|
|
|
|
Folco
Advanced newcomer

Posts: 20
|
 |
« Reply #6 on: January 31, 2010, 09:21:53 am » |
|
Perhaps you have to fix that before ? ||warning: cannot set LC_CTYPE locale| ||warning: environment variable LANG is en_EN| ||warning: please check that your locale name is correct| But I can't help you for that...
|
|
|
|
|
Logged
|
Sorry for my english, I'm french
|
|
|
kode
Newcomer

Posts: 6
|
 |
« Reply #7 on: January 31, 2010, 09:39:38 am » |
|
I try ./bootstrap first, but I get that error: configure.in:77: error: possibly undefined macro: AM_OPTIONS_WXCONFIG If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:78: error: possibly undefined macro: AM_PATH_WXCONFIG
I will check these env. var. to fix them and will try again. Modify: Fixing locale was easy just type export LC_ALL=CI did ./bootstrap again and get: kode@laptop:~/trunk$ ./bootstrap /usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR /usr/share/aclocal/nspr.m4:8: run info '(automake)Extending aclocal' /usr/share/aclocal/nspr.m4:8: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal configure.in:77: warning: macro `AM_OPTIONS_WXCONFIG' not found in library configure.in:78: warning: macro `AM_PATH_WXCONFIG' not found in library configure.in:77: error: possibly undefined macro: AM_OPTIONS_WXCONFIG If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:78: error: possibly undefined macro: AM_PATH_WXCONFIG kode@laptop:~/trunk$ Any help is appreciated.
|
|
|
|
« Last Edit: January 31, 2010, 09:44:45 am by kode »
|
Logged
|
|
|
|
koso
Advanced newcomer

Posts: 34
|
 |
« Reply #8 on: January 31, 2010, 10:52:48 am » |
|
Even if you are compiling using C::B, you need all development libraries ... you are probably missing something, or it is not properly configured. Try to completely reinstall wxGTK-devel, but I cannot help more, I am using binary packages from my distribution.
|
|
|
|
|
Logged
|
|
|
|
|
jens
|
 |
« Reply #9 on: January 31, 2010, 11:12:46 am » |
|
It seems you are missing wxwin.m4, this should be part of the devel-packages I guess.
You can not build a wxWidgets app without the development packages (headers and libraries) !!
|
|
|
|
|
Logged
|
|
|
|
kode
Newcomer

Posts: 6
|
 |
« Reply #10 on: January 31, 2010, 01:49:54 pm » |
|
Is the 2.9.0 version the developing version? I installed it and same error ocurred.
|
|
|
|
|
Logged
|
|
|
|
|
jens
|
 |
« Reply #11 on: January 31, 2010, 01:56:04 pm » |
|
Is the 2.9.0 version the developing version? I installed it and same error ocurred.
No the development packages include the headers and tools to build wxWidgets apps. The have to have the same version number than the libraries to use. And wx-2.9 is not (yet) compatible with C::B. The package you need is most likely called wxGTK-devel or something like that.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
|