Author Topic: Code::Blocks ./bootstrap not working (Linux stable source compile)  (Read 10841 times)

Offline polymath

  • Single posting newcomer
  • *
  • Posts: 6
I am running puppy linux 4.0 and I am trying to compile C:B, have just compiled the latest version of WXW, and have run into a brick wall.  I am following the tutorial at http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux and am using the stable code release (stable).  When I run the ./bootstrap command, I get the these errors:

# ./bootstrap
svn: '.' is not a working copy
svn: '.' is not a working copy
libtoolize: '/usr/share/aclocal/libtool.m4 is serial 48, less than 51 in aclocal.m4'
To remain compatible, you should update your aclocal.m4 by running aclocal
./usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR
   run info '(automake)Extending aclocal '
   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
aclocal:configure.in:77: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
aclocal:configure.in:78: warning: macro 'AM_PATH_WXCONFIG' not found in library

I looked at the web page and i didn't think that was what i wanted (I could be wrong, i'm new to linux).  So I did what the install guide told me to do:

# export ACLOCAL_FLAGS="-I 'wxconfig --prefix'/share/aclocal"

which replaced the errors that I had previously with:

aclocal: unrecognized option -- '--prefix'/share/aclocal'

Can someone please help me decipher these errors or give me different commands for install?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Code::Blocks ./bootstrap not working (Linux stable source compile)
« Reply #1 on: July 18, 2008, 08:11:00 pm »
# export ACLOCAL_FLAGS="-I 'wxconfig --prefix'/share/aclocal"

should be:
Code
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"

it looks similar, but is not. It seems you use single-quotes around "wx-config --prefix", but you have to use backticks "`".
If there are backticks in unix/linux shells around an instruction, the shell runs the command and replaces it (and the backticks) with the output.

Offline polymath

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks ./bootstrap not working (Linux stable source compile)
« Reply #2 on: July 18, 2008, 10:16:23 pm »
Thank you for your response, but when I use backticks it returns to me:

bash: wxconfig: command not found

Tried wx-config:

bash: wx-config: command not found

So I replaced wx-config with /root/devel/wxWidgets-2.8.8/wx-config.in, which gave a warning from wx-config about no config found to match, ignore if a program is using it and no errors are generated.  Anyway, I tried setting my path too, same error.  So i tried bootstrapping again, and bash said there is no such file/directory as /share/aclocal, so I added usr in front of that, and it gave me the same errors as I started out with!  I tried to ./configure it anyway, and it said three things about undefined macros.  I think I am nearing a solution, though; have to be optimistic!


Offline polymath

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks ./bootstrap not working (Linux stable source compile)
« Reply #3 on: July 19, 2008, 01:59:02 am »
Does anyone know how to get around ACLOCAL?  I read that the problem is that it can't find WXWidgets, so I moved the WXW libraries (~/devel/wxWidgets-2.8.8/build/lib) after the compile into my ACLOCAL lib directory, but still no go.  Do I have to do the same with binaries and other stuff?  Any help would be appreciated.

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Code::Blocks ./bootstrap not working (Linux stable source compile)
« Reply #4 on: July 19, 2008, 03:55:19 am »
Thank you for your response, but when I use backticks it returns to me:

bash: wxconfig: command not found

Tried wx-config:

bash: wx-config: command not found


Seems like you didn't install wxWidgets? When you installed wx, wx-config should be in your PATH or in the build folder. wx-config.in is not the same thing, it's for the wx build system, no use to you. How did you install wx?

Offline polymath

  • Single posting newcomer
  • *
  • Posts: 6
Re: Code::Blocks ./bootstrap not working (Linux stable source compile)
« Reply #5 on: July 21, 2008, 09:32:29 pm »
Never mind, I just ./configure and make && make installed it and it WORKED!  Thanks to everyone who helped.  Seems like bootstrap was unneeded in this case.

PS I forgot to run make install (i only make(ed) it) on wxwidgets.  Bootstrap still didn't work, though.  Oh well, doesn't matter.