User forums > Help

Problem installing codeblocks

<< < (2/3) > >>

kode:
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: ---||=== 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 ===|

--- End code ---

This is what I do:
Download with svn, open file CodeBlocks-unix.cbp with C::B and run Build.

Folco:
Perhaps you have to fix that before ?

--- Quote ---||warning: cannot set LC_CTYPE locale|
||warning: environment variable LANG is en_EN|
||warning: please check that your locale name is correct|
--- End quote ---
But I can't help you for that...

kode:
I try ./bootstrap first, but I get that error:


--- Code: ---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

--- End code ---

I will check these env. var. to fix them and will try again.

Modify:
Fixing locale was easy just type export LC_ALL=C

I did ./bootstrap again and get:


--- Code: ---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$
--- End code ---

Any help is appreciated.

koso:
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.

Jenna:
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) !!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version