Probleme mit Glade

Icy G.

naughty by nature
Gibt es bekannte Probleme mit Glade?
Ich versuche schon Stunden lang ein GTK+ Prog mit Glade zu bauen, aber es gibt nur stress...
Der Design-Part läuft reibungslos, nur wie kriege ich das Progg dann gebaut?

Ich erstelle die Sourcen mit dem Build Button und setze dann ein ./autogen.sh ab, aber es gibt nur Probleme und baut das Prog nicht:grumble:

Code:
Please use AM_GNU_GETTEXT([external]) in order to cause autoconfiguration
to look for an external libintl.
Das kommt unter anderem, aber ich habe keine Ahnung, was die Meldung heißen soll...
Ich habe uebrigens kein Stückchen Code in die srcs geschrieben, alles von Glade
 
Ok,
ich habe herausgefunden, dass man seine Probleme lindern kann, indem man gettext aus den Optionen raushagt...
die jetztige Ausgabe von ./autogen.sh:

Code:
> ./autogen.sh
GNU Make 3.80 found
autoconf2.50: not found
found
automake-1.9: not found
found
This script runs configure and make...
You did remember necessary arguments for configure, right?
aclocal-1.9: not found
libtoolize: not found
autoheader2.50: not found
automake-1.9: not found
autoconf2.50: not found
./autogen.sh: ./configure: not found

wenn ich erst autoconf starte gibts das:
Code:
> autoconf259
configure.in:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:11: error: possibly undefined macro: AM_PROG_CC_STDC
configure.in:16: error: possibly undefined macro: AM_PROG_LIBTOOL
> ./autogen.sh
GNU Make 3.80 found
autoconf2.50: not found
found
automake-1.9: not found
found
This script runs configure and make...
You did remember necessary arguments for configure, right?
aclocal-1.9: not found
libtoolize: not found
autoheader2.50: not found
automake-1.9: not found
autoconf2.50: not found
./configure: line 1279: AM_INIT_AUTOMAKE: command not found
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
./configure: line 3069: AM_PROG_CC_STDC: command not found
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
./configure: line 4305: AM_PROG_LIBTOOL: command not found
./configure: line 4314: syntax error near unexpected token `GTKMM,gtkmm-2.4'
./configure: line 4314: `PKG_CHECK_MODULES(GTKMM,gtkmm-2.4 >= 2.6.1,,'
 
Hi,

installiere:

/usr/ports/devel/gnu-autoconf
/usr/ports/devel/gnu-automake
/usr/ports/devel/gnu-libtool

ln -s /usr/local/share/aclocal/pkg.m4 /usr/local/gnu-autotools/share/aclocal/pkg.m4

export PATH=$PATH:/usr/local/gnu-autotools/bin
./autogen.sh

Jetzt wird er nur noch meckern, dass du in po kein Makefile hast. Thats yours ;-)

CU

Martin
 
erstmal Danke
ich glaube ich bin jetzt weiter als vorher, aber...

Hier was ich nun mache:

Ich mache ein neues Projekt mir Glade (bloß ein Fenster mit einem Label drinne) und baue dann den C++ Source Code ohne Gettext...

dann wechsle ich mit dem Terminal in das Verzeichniss und mache da folgendes:


> ./autogen.sh
Code:
GNU Make 3.80 found
autoconf2.50: not found
found
automake (GNU automake) 1.9.6 found
This script runs configure and make...
You did remember necessary arguments for configure, right?
autoheader2.50: not found
configure.in: installing `./missing'
src/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./COPYING'
configure.in:7: required file `config.h.in' not found
autoconf2.50: not found
./autogen.sh: ./configure: not found

> autoconf
Code:

> ./autogen.sh
Code:
GNU Make 3.80 found
autoconf2.50: not found
found
automake (GNU automake) 1.9.6 found
This script runs configure and make...
You did remember necessary arguments for configure, right?
autoheader2.50: not found
configure.in:7: required file `config.h.in' not found
autoconf2.50: not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking build system type... i386-unknown-freebsd5.4
checking host system type... i386-unknown-freebsd5.4
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 49152
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTKMM... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in

... und ich habe echt keine Idee, was ich jetzt machen soll:confused:
 
Sieht aus, als hättest du das hier vergessen:

/usr/ports/devel/gnu-autoconf

CU

Martin
 
schön wäre es...
ist es aber leider nicht:
Code:
> ls /var/db/pkg | grep gnu-autoconf
gnu-autoconf-2.59
 
Hast du diesen Befehl hier auf der selben Konsole eingegeben, bevor du autogen.sh aufgerufen hast?

export PATH=$PATH:/usr/local/gnu-autotools/bin

CU

Martin
 
Nee, nicht ganz...
ich habe tcsh und da ich da sowieso nicht jedesmal den Befehl eingeben wollte, habe ich ihn ins Configfile der Shell geschrieben, damit er bei jedem Shell start gestartet wird...

Hier der Test:
Code:
> env | grep PATH
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/gnu-autotools/bin:/home/icy/bin
 
Hast du rehash gemacht?

whereis autoconf

Das Prob sollte weg sein, wenn autoconf gefunden wird...

CU

Martin
 
MUAHAHA...
Finally I did it...

Erstmal danke Troll für deine Hilfe...
Aber das Problem verstehe ich immer noch nicht, denn das Problem konnte durch den letzten Ratschlag nicht recht gelöst werden, dafür durch folgendes:

In der autogen.sh steht:
Code:
if which autoconf259 >/dev/null 2>&1
then AC_POSTFIX=2.50
elif which autoconf >/dev/null 2>&1
then AC_POSTFIX=""
else 
  echo 'you need autoconfig (2.58+ recommended) to generate the Makefile'
  exit 1
fi
und ich habe daraus das gemacht: (1. bis 4. Zeile)
Code:
if which autoconf >/dev/null 2>&1
then AC_POSTFIX=""
elif which autoconf259 >/dev/null 2>&1
then AC_POSTFIX=2.50
else 
  echo 'you need autoconfig (2.58+ recommended) to generate the Makefile'
  exit 1
fi

Ich verstehe aber immer noch nicht, wieso es jetzt läuft und würde mich freuen, wenns jemand erklären würde!
 
Zurück
Oben