LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2010, 04:57 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Problem installing Codeblocks


I have Codeblocks 8.02 which I remove in order to install SVN source with all contributed plugins.

I follow the steps form codeblocks wiki at

http://wiki.codeblocks.org/index.php...ource_on_Linux

but when trying to configure codeblocks with plugins

( ./configure --with-contrib-plugins=all )

I get that error:
Code:
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
./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)'
Any help will be precious.
 
Old 01-30-2010, 11:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Did you remove wxGTK alias wxWidgets too ?

The script ' /usr/bin/wx-config ' is required.

And I'm pretty sure it was used for Codeblocks 8.02 too ? Or ?

If you don't have the script, you may get from /usr/lib/wx/config/
.. Like this ..
# ln -s /usr/lib/wx/config/gtk2-unicode-release-2.8 /usr/bin/wx-config

.. Which is the way wx-config is created on ( most ? ) other Linux.
.....
 
Old 01-30-2010, 12:19 PM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
I am not sure that I understand all of your post.

I have /usr/bin/wx-config script, but don't know how to remove alias of wxGTK and wxWidgets.

Could you be more specific. I am almost beginner
 
Old 01-30-2010, 01:28 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
wxGTK is wxWidgets and vice versa, I just wondered if you
removed wxGTK, why else could you be without 'wx-config'.. ?

I.e. your error ""AM_OPTIONS_WXCONFIG: command not found""
.. appears, when /usr/bin/wx-config is missing.

I have wxWidgets version 2.8.10 on Slackware 13 and got
codeblocks SVN rev.6119 .
( I renamed trunk to codeblocks-SVN-rev.6119 ).

cd codeblocks-SVN-rev.6119/
1) ./bootstrap
2) ./configure
3) make
... and got no errors at all.
.....
 
Old 01-31-2010, 02:02 AM   #5
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
Things goes messed up and I have restored my system from backup. Now I am trying to build source code of codeblocks within codeblocks using CodeBlocks-unix.cbp, but I get 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 ===|
What is the problem now?
 
Old 01-31-2010, 05:00 AM   #6
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
it seems wrong fonction etc. definition. but it's c++ i can't be sure

by the way your $LANG is indeed wrong. it goes like this language_COUNTRY.ENCODING (you can get away with not having country code and encoding). for Bulgaria with English language $LANG should be en_BG
 
Old 01-31-2010, 06:48 AM   #7
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
Ok, I fixed locale issues with export LC_ALL=C in /etc/profile.d/lang.sh

Now C is set by default to my system.

I download again the source with that command:
svn checkout svn://svn.berlios.de/codeblocks/trunk

try ./bootstrap and get:
Code:
/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/a...ending-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
aclocal gives:
Code:
/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
and automake gives:
Code:
rc/plugins/contrib/headerfixup/Makefile.am:5: `CXXFLAGS' is a user variable, you should not override it;
src/plugins/contrib/headerfixup/Makefile.am:5: use `AM_CXXFLAGS' instead.
What I am missing? Some other library needed?
 
Old 01-31-2010, 06:59 AM   #8
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
i thint wx is somehow broken.
 
Old 01-31-2010, 07:01 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
Instead of all this struggling, why don't you get the SlackBuild?

http://slackbuilds.org/repository/13...nt/codeblocks/
 
Old 01-31-2010, 07:29 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.. And if you also cannot build the "Slackbuilds"

http://www.slacky.eu/ has "ready to install" packages :

codeblocks 8.02
http://www.slacky.eu/aadm/pkgs/index...er=13&pkg=1490
> > codeblocks-8.02-i486-6as.txz

wxwidgets - 2.8.10
http://www.slacky.eu/aadm/pkgs/index...er=13&pkg=1165
wxwidgets-2.8.10.unicode-i486-1sl.txz
.....
 
Old 01-31-2010, 08:34 AM   #11
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
Ok, I use Slackware build, but again error occured and the script didn't make a package...
so I got the slaky build and make a package, but with errors

Code:
...
+----------------------------------------+
| Start SlackBuild codeblocks-8.02 |
+----------------------------------------+
svn: '.' is not a working copy
svn: '.' is not a working copy
You should update your `aclocal.m4' by running aclocal.
/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/a...ending-aclocal
...
Even the package is created I doubt to install it, because I get same errors when configuring manually.

Anyway, I will use C::B without contributed plugins for now, because too muck time is wasted.

Thank you all for the help.
 
Old 02-01-2010, 01:31 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
One day, when you get the slacky.eu wxwidgets-2.8.10.unicode-i486-1sl.txz
installed, you can try again with a new "codeblocks-SVN" :
provides 38 plugins.

cd codeblocks-SVN-rev.6119/
./bootstrap
./configure --with-contrib-plugins=all --prefix=/usr/
make
su
make install
ln -s /usr/lib/wxSmithContribItems/*.so /usr/lib/
make install

( one bug ).
.....
Attached Files
File Type: txt codeblocks-plugins-contrib.txt (1.3 KB, 56 views)
 
Old 02-02-2010, 04:12 AM   #13
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
I try it but same error occured. Here is what I done:
1. I downloaded and installed wxwidgets-2.8.10.unicode-i486-1sl.txz
2. downloaded svn version 6129 (don't know how to download rev.6119)
3. bootstrap and get this messages:

Code:
root@laptop:/home/kode/3downloads/1junk/trunk# ./bootstrap                                             
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.                        
/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/a...ending-aclocal                                                                                                     
configure.in:9: installing `./install-sh'                                                              
configure.in:9: installing `./missing'                                                                 
src/base/tinyxml/Makefile.am: installing `./depcomp'                                                   
root@laptop:/home/kode/3downloads/1junk/trunk#
4. make and get this at the end:

Code:
../../../src/sdk/wxscintilla/include/wx/wxscintilla.h:2201: error: conflicting declaration 'typedef long int wxIntPtr'
/usr/local/include/wx-2.9/wx/defs.h:1110: error: 'wxIntPtr' has a previous declaration as 'typedef ssize_t wxIntPtr'
make[3]: *** [tinywxuni.lo] Error 1
make[3]: Leaving directory `/home/kode/3downloads/1junk/trunk/src/base/tinyxml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kode/3downloads/1junk/trunk/src/base'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kode/3downloads/1junk/trunk/src'
make: *** [all-recursive] Error 1
root@laptop:/home/kode/3downloads/1junk/trunk#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing codeblocks on centos 5.4 morty346 Programming 14 12-16-2010 06:54 AM
codeblocks doesnt run after installing updates calicratis19 Programming 2 12-08-2009 09:40 AM
? how to install codeblocks on unbuntu 9.04 ? maxreason Ubuntu 1 06-02-2009 02:11 AM
codeblocks cannot start up in redhat9 boboboy Linux - Newbie 3 05-18-2009 02:26 AM
Setting up CodeBlocks on Ubuntu tm2383 Programming 4 12-12-2008 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration