Author Topic: CodeBlocks on RHEL 4  (Read 4048 times)

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
CodeBlocks on RHEL 4
« on: November 16, 2007, 01:08:39 am »
I'm running Code::Blocks on RHEL 4 (2.6.9-42.0.3.ELsmp) and have built it in the past.  Now I'm upgrading to the newest version and find that I need to upgrade wx to 2.8.3.  I've done this in the past and it typically requires a rebuild of wx, so I pull down wxGTK-2,8.3-2.fc7.src.rpm and attempt rpm --rebuild but I start getting stuck in dependency hell.  wxGTK requires gstreamer-devel >= 0.10.  OK, so I find an srpm for gstreamer-0.10 and try again - rpm --rebuild gstreamer-0.10 and I need glib2-devel, check-devel, and gtk-doc.  OK, so now I try to dig up these....

There has got to be a better way to get this going on RHEL4.  Any tips??

-Kirk

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 131
Re: CodeBlocks on RHEL 4
« Reply #1 on: November 16, 2007, 01:16:06 pm »
Instead of trying to solve the dependencies from F7's (which is too new, RHEL4 is based on FC3) wxGTK, I would try to lower the build requirements or remove them completely (eg. the gstreamer) and probably remove some options for configure too. Then you will have wxGTK not so functionally rich, but buildable on RHEL 4.
Code::Blocks package maintainer for Fedora and EPEL

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: CodeBlocks on RHEL 4
« Reply #2 on: November 16, 2007, 10:05:35 pm »
So I tried to back off a step or two and decided to give a try at rebuilding wxWidgets.  I've done that before and just have to get it working for v2.8.6.  I've gotten the latest version of wxWidgets (2.8.6) and on the first step of compilation (../configure) I get this:

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK+ or finding the wrong
*** version of GTK+. If it is not finding GTK+, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

Now, I've seen this before with a previous version of wxWidgets - not sure which version but about 1 year ago. I've verified that pkg_config exists, I've added various directories to my PATH, LD_LIBRARY_PATH, and PKG_CONFIG_PATH but to no avail. I also have verified that I do indeed have a directory under /usr/local/lib/gtk-2.0, and it is added to all the paths.


Any tips??

-Kirk

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: CodeBlocks on RHEL 4
« Reply #3 on: November 16, 2007, 11:28:02 pm »
I found wxGTK RPMs for Fedora Core 4 and they installed without a hitch.  I was then able to build wxWidgets. 

Now the CodeBlocks build seems to think I still have wxWidgets 2.4.2 rather than my newly built and installed 2.8.6.  ???



-Kirk


Offline SharkCZ

  • Almost regular
  • **
  • Posts: 131
Re: CodeBlocks on RHEL 4
« Reply #4 on: November 19, 2007, 08:22:41 pm »
It could be an issue with the path to wx-config. Try running "which wx-config" from a shell (terminal) and it will show which wx-config is used.
Code::Blocks package maintainer for Fedora and EPEL