WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] gtk-industrial-engine compile trouble  (Read 2935 times)

Offline marquitico

  • Newbie
  • *
  • Posts: 41
[Solved] gtk-industrial-engine compile trouble
« on: May 12, 2011, 11:03:15 PM »
I am trying to compile the Industrial gtk2 engine from scratch from the gtk-industrial-engine_0.2.36-2.tar.gz package. The Industrial engine in gtk-engines.tcz is too outdated for a theme I found online (I think). The autogen.sh script terminates with no peculiarities, but make fails with the following error:

Code: [Select]
    /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/gtk-1.2
          -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include    -g -O2 -MT industrial1_theme_main.lo -MD -MP -MF
          .deps/industrial1_theme_main.Tpo -c -o industrial1_theme_main.lo industrial1_theme_main.c
     libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
          -I/usr/local/lib/glib/include -g -O2 -MT industrial1_theme_main.lo -MD -MP -MF .deps/industrial1_theme_main.Tpo
          -c industrial1_theme_main.c  -fPIC -DPIC -o .libs/industrial1_theme_main.o
     industrial1_theme_main.c:14:28: error: parse_rc_style.h: No such file or directory
     make[3]: *** [industrial1_theme_main.lo] Error 1
     make[3]: Leaving directory `~/gtk-industrial-engine-0.2.36/gtk1-engine'
     make[2]: *** [all-recursive] Error 1
     make[2]: Leaving directory `~/gtk-industrial-engine-0.2.36/gtk1-engine'
     make[1]: *** [all-recursive] Error 1
     make[1]: Leaving directory `~/gtk-industrial-engine-0.2.36'
     make: *** [all] Error 2
     tc@box:~/gtk-industrial-engine-0.2.36$

Poking around in the subdirectories, I see that I indeed have no parse_rc_style.h header file. Is this supposed to come in the package itself? Or was autogen.sh supposed to create it?

This is the same package that was used to build the gtk1 engine in 3.x. I'm hoping someone familiar with it can help. :)

I am on MicroCore 2.10. I have built several gtk1 and gtk2 engines successfully, including murrine, nodoka, equinox, newpsychicabilities, xeno, and so on, plus other packages that are not GTK-related, so I know that my build environment in general is functional. Did this package need special -dev files? Or maybe particular command-line options passed to autogen.sh?

Not skilled at this sort of thing, I confess. What other info do you need from me? Thanx in advance.
« Last Edit: May 15, 2011, 12:21:01 AM by marquitico »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: gtk-industrial-engine compile trouble
« Reply #1 on: May 13, 2011, 01:23:42 AM »
Isn't the issue that you're trying to compile a gtk1 engine using gtk2 and its devs?

I'm guessing that it would compile with gtk1 and devs. Is there a ./configure switch to choose between gtk1 and gtk2

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline marquitico

  • Newbie
  • *
  • Posts: 41
Re: gtk-industrial-engine compile trouble
« Reply #3 on: May 13, 2011, 04:40:23 AM »
Isn't the issue that you're trying to compile a gtk1 engine using gtk2 and its devs?
Actually not. I have successfully compiled gtk2 engines on here (murrine, nodoka, and equinox) and gtk1 engines (newpsychicabilities, xeno) and packages that had an engine for each (lighthouseblue). I have both gtk1 & gtk2, and gtk1 & gtk2 devs and deps as well. The config.log shows clearly that both gtk1 and gtk2 were successfully detected on my system during configure. It seems to be that while running make, the industrial1_theme_main.c file references a header (parse_rc_style.h) that doesn't exist.

The error that I posted is simply the point during the make where it stopped (which was almost at the beginning), at which point it was working on gtk1. When it failed it simply quit altogether.

I'm guessing that it would compile with gtk1 and devs. Is there a ./configure switch to choose between gtk1 and gtk2
No, there isn't, and that surprised me! But following the example of the smooth engine, I tried various forms of the option to disable building gtk2, but it just spat "unrecognized option" back at me.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk-industrial-engine compile trouble
« Reply #5 on: May 13, 2011, 05:06:28 AM »
Note: the version you attempted to compile appears to be older than the one which has been removed 5 years ago from debian
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline marquitico

  • Newbie
  • *
  • Posts: 41
Re: gtk-industrial-engine compile trouble
« Reply #6 on: May 15, 2011, 12:20:20 AM »
OK, you guys are the best. Found an 0.2.46 version (matching the version number in the debian bugreport), and discovered it still needed a parse_rc_style.h file. Between the both of you I have my theme.  :D