Author Topic: [FreeBSD] wx-config: not found && wx/string.h: no such file or directory  (Read 7115 times)

angeli

  • Guest
I tried to install C::B on my FreeBSD 5.4-Stable and here is what I got:

Script started on Tue Sep 13 22:48:54 2005
# gmake -f Makefile.unix
Compiling sdk/tinyxml/tinystr.cpp...
wx-config: not found
In file included from sdk/tinyxml/tinystr.h:26,
                 from sdk/tinyxml/tinyxml.h:60,
                 from sdk/tinyxml/tinystr.cpp:25:
sdk/tinyxml/../settings.h:55:23: wx/string.h: No such file or directory
sdk/tinyxml/../settings.h:56:25: wx/dynarray.h: No such file or directory
sdk/tinyxml/../settings.h:57:20: missing binary operator before token "("
gmake: *** [.objs/sdk/tinyxml/tinystr.o] Error 1
Script done on Tue Sep 13 22:49:02 2005

I don't know what's wrong here - I have wx headers in /usr/X11R6/include/wx and also in wx-2.6 w/ same prefix. I tried to change all '/usr/include' to '/usr/X11R6/include' in  Makefile.unix, but it didn't help :( How to do make it work?
I followed exactly these steps: http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_FreeBSD

Thanks for help :)
« Last Edit: September 13, 2005, 11:04:01 pm by angeli »

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: [FreeBSD] wx-config: not found && wx/string.h: no such file or directory
« Reply #1 on: September 14, 2005, 02:42:17 am »
Please try to compile with the CVS HEAD because the build system has been changed (in *nix), in favor of autotools.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: [FreeBSD] wx-config: not found && wx/string.h: no such file or directory
« Reply #2 on: September 15, 2005, 08:51:35 am »
Right, checkout a fresh CVS copy and follow the normal procedure:
Code: [Select]
./bootstrap
./configure
make
make install

bootstrap is only needed to run once.
Use "./configure --help" for more options, like where wx is installed.

HTH :)
Be patient!
This bug will be fixed soon...

angeli

  • Guest
Re: [FreeBSD] wx-config: not found && wx/string.h: no such file or directory
« Reply #3 on: September 15, 2005, 10:46:44 pm »
Thanks, but now I have problem with bootstrap :( Here is typescript:

-------- typescript -----------
Script started on Thu Sep 15 22:38:24 2005
# ./bootstrap

You should update your `aclocal.m4' by running aclocal.
/usr/X11R6/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/X11R6/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
/usr/X11R6/share/aclocal/wxwin.m4:36: warning: underquoted definition of AM_OPTIONS_WXCONFIG
/usr/X11R6/share/aclocal/wxwin.m4:59: warning: underquoted definition of AM_PATH_WXCONFIG
/usr/X11R6/share/aclocal/paragui.m4:12: warning: underquoted definition of AM_PATH_PARAGUI
/usr/X11R6/share/aclocal/gtkgl.m4:4: warning: underquoted definition of AM_PATH_GTKGL
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
src/plugins/astyle/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
src/plugins/astyle/Makefile.am:10:
src/plugins/astyle/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/astyle/Makefile.am:10: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/classwizard/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/classwizard/Makefile.am:9:
src/plugins/classwizard/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/classwizard/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/codecompletion/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/codecompletion/Makefile.am:9:
src/plugins/codecompletion/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/codecompletion/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/compilergcc/Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
src/plugins/compilergcc/Makefile.am:12:
src/plugins/compilergcc/Makefile.am:12: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/compilergcc/Makefile.am:12: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/compilergcc/depslib/src/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
src/plugins/compilergcc/depslib/src/Makefile.am:3:
src/plugins/compilergcc/depslib/src/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/compilergcc/depslib/src/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/debuggergdb/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/debuggergdb/Makefile.am:9:
src/plugins/debuggergdb/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/debuggergdb/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/defaultmimehandler/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/defaultmimehandler/Makefile.am:9:
src/plugins/defaultmimehandler/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/defaultmimehandler/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/pluginwizard/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/pluginwizard/Makefile.am:9:
src/plugins/pluginwizard/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/pluginwizard/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/todo/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/todo/Makefile.am:9:
src/plugins/todo/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/todo/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/xpmanifest/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/plugins/xpmanifest/Makefile.am:7:
src/plugins/xpmanifest/Makefile.am:7: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/xpmanifest/Makefile.am:7: to `configure.in' and run `aclocal' and `autoconf' again.
src/sdk/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/sdk/Makefile.am:7:
src/sdk/Makefile.am:7: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/sdk/Makefile.am:7: to `configure.in' and run `aclocal' and `autoconf' again.
src/sdk/tinyxml/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
src/sdk/tinyxml/Makefile.am:3:
src/sdk/tinyxml/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/sdk/tinyxml/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
src/sdk/wxscintilla/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
src/sdk/wxscintilla/Makefile.am:8:
src/sdk/wxscintilla/Makefile.am:8: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/sdk/wxscintilla/Makefile.am:8: to `configure.in' and run `aclocal' and `autoconf' again.
src/src/wxDockit/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
src/src/wxDockit/Makefile.am:3:
src/src/wxDockit/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/src/wxDockit/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
# exit

exit

Script done on Thu Sep 15 22:38:57 2005
------------ eof typescript ------------------


I have changed bootstrap file(names of programs - i.e. makefile-->makefile19), so now it looks like this:
----- bootstrap -------
#!/bin/sh

# stolderdized from Ogre3D (www.ogre3d.org)

# Check for proper versions of autotools
# We require:
#  - autoconf 2.50+
#  - automake 1.7+
#  - libtool 1.4+

# Deal with some gentoo-specific issues
export WANT_AUTOMAKE='1.7'
export WANT_AUTOCONF='2.5'

## Using prereq in autoconf rather than here, mostly for the debian systems at
## this point
if test -z "`autoconf259 --version 2>&1|head -n 1|egrep '2.5'`"; then
   echo "Autoconf 2.50 or above is required. Aborting build...";
    exit 1;
fi

if test -z "`automake19 --version 2>&1|head -n 1|egrep '1.[7-9]'`"; then
   echo "Automake 1.7 or above is required. Aborting build...";
   exit 1;
fi

if test -z "`libtool15 --version 2>&1|head -n 1|egrep '1.[4-5]'`"; then
   echo "Libtool 1.4 or above is required. Aborting build...";
   exit 1;
fi

# clean up files which cause confusion when switch versions of auto*
rm -rf autom4te.cache

# Fire up autotools
libtoolize15 --force --copy && \
   aclocal19 $ACLOCAL_FLAGS && \
   autoheader259 && \
   automake19 --include-deps --add-missing --foreign --copy && \
   autoconf259
------- eof bootstrap -----------



--
Thanks, Angeli