I have built wxWindows 2.6.1 using the method shown in http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#Getting_the_latest_sources_from_CVS
i have exactly the same situation, wx-2.6.1 built fine, but i got stuck with ./bootstrap
----------------------------------------------------------------------
gives:
----------------------------------------------------------------------
gives: -L/opt/wx/2.6/lib -pthread -lwx_gtk2-2.6
----------------------------------------------------------------------
gives: /opt/wx/2.6/bin/wx-config
BUT
when I run I get
: bad interpreter: File not found
i'm running on
Ubuntu 5.04 Hoary, using
gcc-3.3
gdb 6.3
i installed additionally
autoconf 2.59a-2
automake 1.9.4-1
libtool 1.5.6-5
please @all linux-guru's :
am i missing something ?
is there any log-file where i can look which file wasn't found ?
what shall i do next ?
: bad interpreter: File not found
This usually happens when the script is in dos format (although I double-checked and it's not).
Anyway, in ubuntu you need to run 'fromdos bootstrap'
thanks! 'fromdos bootstrap' worked ok.
but now:
when i run ./bootstrap there is a warning regarding PKG_...
tiwag@ubuntu504:~/devel/CodeBlocks.CVS.HEAD$
tiwag@ubuntu504:~/devel/CodeBlocks.CVS.HEAD$ ./bootstrap
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
an an error when running ./configure
tiwag@ubuntu504:~/devel/CodeBlocks.CVS.HEAD$
tiwag@ubuntu504:~/devel/CodeBlocks.CVS.HEAD$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) mawk
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking whether to enable debugging... no
checking whether to build the source formatter plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the plugin wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the contrib plugins... yes
checking for wx-config... /opt/wx/2.6/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.1)
checking for wxWidgets static library... no
configure: Configuring Code::Blocks...
configure: creating ./config.status
.infig.status: error: cannot find input file: Makefile
there is not a file called 'makefile' existing,
but a (huge) newly generated 'makefile.in' is there.
what now ? any hints ? thanks
OK,
1. Undo the changes you made to dirlist.
2. Look whether "AC_PROG_LIBTOOL" is in the file configure.in (it should be in line 23), if not add it.
It should like this:
...
CODEBLOCKS_SETUP_FOR_TARGET
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
...
I hope this works ;)
Hello,
I've tried to build Code::Blocks SVN (rev. 2729) following directions given in the wiki. This is my first build on my Linux system, that is a Mandriva 2006.
However, ./bootstrap gives me the following errors:
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 0: macro `AM_CONDITIONAL' not found in library
aclocal: configure.in: 7: macro `AM_INIT_AUTOMAKE' not found in library
aclocal: configure.in: 61: macro `AM_OPTIONS_WXRC' not found in library
aclocal: configure.in: 92: macro `AM_CONDITIONAL' not found in library
At this time, I'm clueless... can anybody help me?
Thank you!
Luca
I have installed these packages and it works for me :) :
autoconf2.1-2.13-24mdk
autoconf2.5-2.59-6mdk
automake1.8-1.9.4-3mdk
m4-1.4.3-1mdk
make-3.80-9mdk
They should be all out of common/official repositories (main, updates, contrib, plf-free or plf-nonfree).