Author Topic: Compile under Redhat 9, no success  (Read 7087 times)

mastern

  • Guest
Compile under Redhat 9, no success
« on: October 15, 2005, 12:29:03 am »
Installing C::B under Windwos took me a minute to finish. But it took me 2 days under Linux still with no success.
I'm using Redhat 9. Updated automake to 1.9. Installed wxGTK-2.4.2-1.i386.rpm. Downloaded C::B from CVS.
bootstrap gave some warnings:
Code
# ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
/usr/share/aclocal/xml-i18n-tools.m4:24: warning: underquoted definition of XML_I18N_TOOLS_NEWER_THAN_0_9
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/xml-i18n-tools.m4:28: warning: underquoted definition of AC_PROG_XML_I18N_TOOLS
/usr/share/aclocal/xml-i18n-tools.m4:30: warning: underquoted definition of X18T_PFORG1
/usr/share/aclocal/xml-i18n-tools.m4:32: warning: underquoted definition of X18T_XML_KIND
/usr/share/aclocal/xml-i18n-tools.m4:34: warning: underquoted definition of X18T_KEYS_KIND
/usr/share/aclocal/xml-i18n-tools.m4:135: warning: underquoted definition of AM_PROG_XML_I18N_TOOLS
/usr/share/aclocal/vorbis.m4:9: warning: underquoted definition of XIPH_PATH_VORBIS
/usr/share/aclocal/sdl.m4:11: warning: underquoted definition of AM_PATH_SDL
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
/usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
/usr/share/aclocal/ogg.m4:8: warning: underquoted definition of XIPH_PATH_OGG
/usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF
/usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC
/usr/share/aclocal/libxslt.m4:14: warning: underquoted definition of AM_PATH_XSLT
/usr/share/aclocal/libxml.m4:10: warning: underquoted definition of AM_PATH_XML
/usr/share/aclocal/libxml.m4:205: warning: underquoted definition of AM_PATH_XML2
/usr/share/aclocal/librsvg.m4:11: warning: underquoted definition of AM_PATH_LIBRSVG
/usr/share/aclocal/libole2.m4:18: warning: underquoted definition of AM_PATH_LIBOLE2
/usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_LIBMIKMOD
/usr/share/aclocal/libguppi.m4:11: warning: underquoted definition of AM_PATH_LIBGUPPI
/usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE
/usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
/usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBIDL
/usr/share/aclocal/intltool.m4:27: warning: underquoted definition of AC_PROG_INTLTOOL
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/gtk-2.0.m4:8: warning: underquoted definition of AM_PATH_GTK_2_0
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/glib-gettext.m4:329: warning: underquoted definition of AM_GLIB_GNU_GETTEXT
...
src/plugins/astyle/Makefile.am: installing `./depcomp'
configure.in:61: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:62: error: possibly undefined macro: AM_PATH_WXCONFIG

The configure also gave error message:
Code
# ./configure --prefix=/usr
...
./configure: line 12528: AM_OPTIONS_WXCONFIG: command not found
./configure: line 12529: syntax error near unexpected token `2.4.2,'
./configure: line 12529: `AM_PATH_WXCONFIG(2.4.2, wxWin=1)'

Well, at this step, 'make' will not proceed.
Anything wrong? Or just Redhat is too old to use C::B without upgrading?








Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Compile under Redhat 9, no success
« Reply #1 on: October 15, 2005, 01:01:38 am »
You need the wxGTK devel package too. Like wxGTK-devel-2.4.2-1.i386.rpm or something...
Be patient!
This bug will be fixed soon...

mastern

  • Guest
Re: Compile under Redhat 9, no success
« Reply #2 on: October 15, 2005, 01:55:46 am »
You need the wxGTK devel package too. Like wxGTK-devel-2.4.2-1.i386.rpm or something...
Yes. you're right. Now 'configure' is passed. But 'make' gave some errors:

Code
# make
...
autodetectcompilers.cpp:3:27: wx/xrc/xmlres.h: No such file or directory
autodetectcompilers.cpp:11: `XRCID' was not declared in this scope
autodetectcompilers.cpp: In constructor
   `AutoDetectCompilers::AutoDetectCompilers(wxWindow*)':
autodetectcompilers.cpp:17: `wxXmlResource' undeclared (first use this
   function)
autodetectcompilers.cpp:17: (Each undeclared identifier is reported only once
   for each function it appears in.)
autodetectcompilers.cpp:17: parse error before `::' token
autodetectcompilers.cpp:19: parse error before `)' token
autodetectcompilers.cpp:19: `XRCCTRL' undeclared (first use this function)
autodetectcompilers.cpp:49: parse error before `)' token
autodetectcompilers.cpp: In member function `void
   AutoDetectCompilers::OnDefaultClick(wxCommandEvent&)':
autodetectcompilers.cpp:59: parse error before `)' token
autodetectcompilers.cpp:64: parse error before `)' token
autodetectcompilers.cpp: In member function `void
   AutoDetectCompilers::OnUpdateUI(wxUpdateUIEvent&)':
autodetectcompilers.cpp:70: parse error before `)' token
autodetectcompilers.cpp:72: parse error before `)' token
make[4]: *** [autodetectcompilers.lo] Error 1
...

wx/xrc/ is not found in wxGTK-2.4.2 but found in wxGTK-2.6.2. Is C::B "locked" with wxGTK-2.6.2?
Thanks.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Compile under Redhat 9, no success
« Reply #3 on: October 15, 2005, 02:42:43 am »
For wxWidgets 2.4.2 you'll also need the wxGTK-2.4.2-contrib-dev package ('cause it needs XRC). wxGTK-2.6.2-dev includes XRC as part of wxWidgets and not just a contrib.

mastern

  • Guest
Re: Compile under Redhat 9, no success
« Reply #4 on: October 15, 2005, 03:48:03 am »
Could you point out where to find wxGTK-2.4.2-contrib-dev.rpm? I've done a search but with no luck.
Thanks.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Compile under Redhat 9, no success
« Reply #5 on: October 15, 2005, 04:18:00 am »
Sorry but I have no idea of its name. In fact I've never used Redhat.

From a search in Debian I found libwxgtk-contrib-dev. I hope it be of any use.

takeshimiya

  • Guest
Re: Compile under Redhat 9, no success
« Reply #6 on: October 15, 2005, 05:58:43 am »
Or better, compile wx yourself, so you can configure it to your likings.