Author Topic: bootstrap felled need help  (Read 11475 times)

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
bootstrap felled need help
« on: August 21, 2009, 09:10:10 pm »
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?
« Last Edit: August 21, 2009, 09:26:28 pm by doctorlinux »
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: bootstrap felled need help
« Reply #1 on: August 21, 2009, 09:36:13 pm »
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

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #2 on: August 21, 2009, 10:18:30 pm »
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.
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: bootstrap felled need help
« Reply #3 on: August 21, 2009, 11:47:41 pm »
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 Edit: August 21, 2009, 11:50:59 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #4 on: August 22, 2009, 02:32:23 am »
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
« Last Edit: August 22, 2009, 03:00:07 am by doctorlinux »
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: bootstrap felled need help
« Reply #5 on: August 22, 2009, 02:57:23 am »
Do you know if you built wxWidgets as an Unicode build or not?
Also, what version is your wxWidgets? 2.8.10?

Tim S.
« Last Edit: August 22, 2009, 03:05:09 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #6 on: August 22, 2009, 03:35:30 am »
Thank you stahta01 for your help

my build is wxWidgets-2.8.10

Quote
Do 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.   
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: bootstrap felled need help
« Reply #7 on: August 22, 2009, 03:41:04 am »

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.
Code
wx-config --libs --cflags

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #8 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?
« Last Edit: August 22, 2009, 03:52:01 am by doctorlinux »
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: bootstrap felled need help
« Reply #9 on: August 22, 2009, 04:01:51 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"
Code
wx-config --unicode=yes --libs --cflags

Like the above and see if it gives you results.

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #10 on: August 22, 2009, 04:13:05 am »
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
« Last Edit: August 22, 2009, 04:20:37 am by doctorlinux »
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: bootstrap felled need help
« Reply #11 on: August 22, 2009, 04:26:15 am »
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.
« Last Edit: August 22, 2009, 04:27:55 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #12 on: August 22, 2009, 04:39:17 am »
Thank you Tim S. :D

Yes that what I was thinking.
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline doctorlinux

  • Multiple posting newcomer
  • *
  • Posts: 11
  • fedora 11
Re: bootstrap felled need help
« Reply #13 on: August 22, 2009, 11:22:57 am »
I found the svn link to wxwidgets

 EDIT :  {

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   }
 

Got it making right now  :D

here a good how to link to build the trunk

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

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


« Last Edit: August 23, 2009, 12:19:32 am by doctorlinux »
Fedora 11
C::B Version SVN /trunk 8.02

Thanks & God Bless!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: bootstrap felled need help
« Reply #14 on: August 22, 2009, 11:35:09 am »
I found the svn link to wxwidgets

 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.