bootstrap felled need help
I'm on using fedora 11 trying to build code::blocks trunk, i build the
wxWidgets as a monolithic DLL and it's working good.
the first time i ran bootstrap, IT said to put the AC_CONFIG_MACRO_DIR(m4) in
the configure.in file, so i did.
now when i run bootstrap
[david@localhost trunk]$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.in:77: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
configure.in:78: warning: macro `AM_PATH_WXCONFIG' not found in library
There is no ACLOCAL_AMFLAGS code in Makefile.am
Or do I add ACLOCAL_AMFLAGS= (-I m4) some where in the Makefile.am??
I have autoconf and automake installed see...
[david@localhost trunk]$ rpm -q autoconf
autoconf-2.63-2.fc11.noarch
[david@localhost trunk]$ rpm -q automake
automake-1.11-2.fc11.noarch
How do i fix this?
You should have wxwin.m4 in [prefix]/share/aclocal.
If you have not set prefix explicitely when configuring, it is most likely /usr/local.
If it is not there, you might not have run make install.
If it is there but not found, see the wiki for possible solutions: http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29 (http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29)
thanks
my prefix is
[david@localhost trunk]$ wx-config --prefix
/usr/local
so i did export ACLOCAL_FLAGS="-I `wx-config --prefix`/usr/local
[david@localhost trunk]$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: couldn't open directory `/usr/local/usr/local': No such file or directory
no good so i
[david@localhost trunk]$ export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
[david@localhost trunk]$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
^C
and it stoped so i ctrl +c and stoped it
So then I
[david@localhost trunk]$ export ACLOCAL_FLAGS="-I `wx-config --prefix`/usr/share/aclocal"
[david@localhost trunk]$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: couldn't open directory `/usr/local/usr/share/aclocal': No such file or directory
so i changed it back to
[david@localhost trunk]$ export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
[david@localhost trunk]$ ./bootstrap
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
I don't know what to do next, I'm new to Linux.
Did the bootstrap work?
If an configure file (with no extension) was created (by the bootstrap customizing the configure.in file ) and there was not errors; I would guess it worked.
Tim S.
last night when i ran ./configure --with-contrib-plugins=all
it configured but with some warnings or errors. so i tried to make just to see if it would but it said they was a error no make file to to make.
Now after setting export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
bootstrap warnings Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
I ran configure again, but with no warnings or errors this time.
so I tried to make again and it did but with 1 error filemanager.cpp:262: error: no matching function for call to 'wxCSConv::cWC2MB(const wxChar*, size_t&, size_t*)'
make[3]: *** [filemanager.lo] Error 1
make[3]: Leaving directory `/home/david/build/codeblocks/trunk/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/david/build/codeblocks/trunk/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/david/build/codeblocks/trunk/src'
make: *** [all-recursive] Error 1
How do I fix this error? I Googled it but no match .
I'm sure it would install. but I don't like errors in my builds. I've done a lots of builds with windows just new to Linux now. I had Linux about 4 or 5 years ago but i have forgot so much about it. wished I had of never lift Linux.
Thanks
Do you know if you built wxWidgets as an Unicode build or not?
Also, what version is your wxWidgets? 2.8.10?
Tim S.
Thank you stahta01 for your help
my build is wxWidgets-2.8.10
QuoteDo you know if you built wxWidgets as an Unicode build or not?
not sure if i did or not?
Maybe I need to rebuild wxWidgets or can i change it without rebuilding it? if so how?
I would like to rebuild with svn checkout but i could not find the link to do it with, I downloaded just the release sours .tar.gs file and build it.
Try the following and see what it outputs look for Unicode and ANSI in the output post those parts here.
Not sure if --libs is needed or not.
wx-config --libs --cflags
Tim S.
here all the out put
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
-L/usr/local/lib -pthread -lwx_gtk2-2.8
I should be able to do wx-config --enable-unicode right?
Quote from: doctorlinux on August 22, 2009, 03:48:09 AM
here all the out put
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
-L/usr/local/lib -pthread -lwx_gtk2-2.8
I should be able to do wx-config --enable-unicode right?
Looks like the default build is NOT Unicode; try adding "--unicode=yes"
wx-config --unicode=yes --libs --cflags
Like the above and see if it gives you results.
Tim S.
I tried It see..
Warning: No config found to match: /usr/local/bin/wx-config --unicode=yes --libs --cflags
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
I Tried wx-config --unicode=yes Before I seen you reply and same thing.
Looks Like i need to rebuild it?
I will use wiki solutions to build it. if i have to rebuild?: http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29
But if i do I want to use rebuild with svn checkout but i could not find the link to do it with.
I'm wonting to start c++ coding with and on Code::Blocks and wxWidgets. I'm learning how to C++ code now. I already do a lot of pearl,HTML and some PHP,Java too
Thanks
You need to build wxWidgets as Unicode in order to build Code::Blocks.
(Or, you need to install wxWidget/wxGTK devel version with an high 2.8 version like 2.8.5 or higher)
wxWidgets version 2.8.10 is preferred because of recent changes in Code::Blocks SVN trunk.
See http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#wxWidgets_build
You must have missed the "--enable-unicode" in the above command.
Tim S.
Thank you Tim S. :D
Yes that what I was thinking.
I found the svn link to wxwidgets
EDIT : {
http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/ (http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/) Do not use the trunk unless you know what you are doing.
you are better off using branch like jens stated in a lower post .
svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH wxWidgets-2.8 (http://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH%20wxWidgets-2.8) }
Got it making right now :D
here a good how to link to build the trunk
http://jazzplusplus.sourceforge.net/buildingwx/ (http://jazzplusplus.sourceforge.net/buildingwx/)
But make sure you when you configure do it like this. You can just use ../configure with out the ../wxWidgets-2.8.10 if you want too
./wxWidgets-2.8.10/configure \
--prefix=/opt/wx/2.8.10 \
--enable-xrc \
--enable-monolithic \
--enable-unicode \
--with-gtk
Just about like it is here at this l
http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#wxGTK_installation (http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#wxGTK_installation)
also set your path just like at wiki.codeblocks.org stated see
export PATH=/usr/bin:/opt/wx/2.8.10/bin:$PATH
export LD_LIBRARY_PATH=/usr/bin:/opt/wx/2.8.10/lib:$LD_LIBRARY_PATH
and i set the paths in .bash_profile before i ran ../configure too.
Now i got to go and build codeblocks again .
Thanks for your help
Quote from: doctorlinux on August 22, 2009, 11:22:57 AM
I found the svn link to wxwidgets
http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/ (http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/)
Got it making right now :D
I admit to use wx2.8.10 or at least the wx2.9-branch,
not trunk, unless you know exactly what you do.
Or you will most likely run in new troubles, because C::B is not (yet) fully compatible with wx-trunk and it's under heavy development.
You might get a version where some code is temporarily removed (at least the content of some function bodies) to be refactored, or just not working.
I saw this for example in wxAuiNoteBook and related classes, in this case C::B will not work at all and/or the build will fail.
I agree use 2.8.10 or the 2.8 Branch do not use wxWidgets 2.9.0 or higher. It currently requires patches to Code::Blocks and Code::Blocks does not work very well even with the patches.
wxWidgets trunk is 2.9.1 or higher.
Tim S.
Quote from: jens on August 22, 2009, 11:35:09 AM
I admit to use wx2.8.10 or at least the wx2.9-branch, not trunk, unless you know exactly what you do.
Or you will most likely run in new troubles, because C::B is not (yet) fully compatible with wx-trunk and it's under heavy development.
You might get a version where some code is temporarily removed (at least the content of some function bodies) to be refactored, or just not working.
I saw this for example in wxAuiNoteBook and related classes, in this case C::B will not work at all and/or the build will fail.
You are right! It did build but with 1 error. So I rebuild it with src all 2.8.10 Thank Jens.
I'm going to rebuild it latter on with the wx2.9-branch just not right now, I need to learn more about c++, wx, and C::B first, and It takes to long to download it with a modem too.