Autor Wątek: kompilacja c::b pod slackiem  (Przeczytany 6745 razy)

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 21, 2006, 12:43:06
Od kilku dni walcze aby skompilowac code::blocks pod moim Slackware (10.2 dla scislosci)

zrobilem svn checkout z najnowszego repozytorium i przy skrypcie bootstrap dostaje blad w stylu:
(skopiowalem go z forum c::b bo nie jestem przy swoim kompie teraz ale blad jest ten sam)

./bootstrap
You should update your `aclocal.m4' by running aclocal.
src/plugins/astyle/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
src/plugins/astyle/Makefile.am:10:
src/plugins/astyle/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/astyle/Makefile.am:10: to `configure.in' and run `aclocal' and `autoconf' again.
src/plugins/classwizard/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/classwizard/Makefile.am:9:
src/plugins/classwizard/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/classwizard/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
...

AC_PROG_LIBTOOL na pewno jest w configure.in i uruchomilem aclocal oraz autoconfa. Blad wystepuje nadal :(
A moze ktos z Was ma binarke do slacka, ktora nie wymaga libstdc++.so.6 ? bo tylko taka znalazlem i nie chce sie uruchomic.

Offline Mr. Spam

  • Miłośnik przetworów mięsnych

bies

  • Gość
# Luty 21, 2006, 14:03:51
Spróbuj zainstalować nowszą wersje autotools albo starszą wersję libtool.

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 21, 2006, 14:15:12
Hmmm, nie próbowałem starszych wersji. Spróbuję się cofnąć o jeden/dwa numerki.

bies

  • Gość
# Luty 21, 2006, 20:57:23
Albo odpal automake i autoconf dla próby.

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 23, 2006, 23:33:55
wynik automake

configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
src/plugins/Makefile.am:1: BUILD_ASTYLE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:5: BUILD_CLASSWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:9: BUILD_CODECOMPLETION does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:13: BUILD_COMPILER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:17: BUILD_DEBUGGER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:21: BUILD_MIMEHANDLER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:25: BUILD_PLUGINWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:29: BUILD_TODO does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:33: BUILD_MANIFEST does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:37: BUILD_CONTRIB does not appear in AM_CONDITIONAL
src/plugins/astyle/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
src/plugins/astyle/Makefile.am:10:
src/plugins/astyle/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/astyle/Makefile.am:10: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/plugins/classwizard/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/classwizard/Makefile.am:9:
src/plugins/classwizard/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/classwizard/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/plugins/codecompletion/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/plugins/codecompletion/Makefile.am:9:
src/plugins/codecompletion/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/codecompletion/Makefile.am:9: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/plugins/compilergcc/Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
src/plugins/compilergcc/Makefile.am:12:
src/plugins/compilergcc/Makefile.am:12: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/plugins/compilergcc/Makefile.am:12: to `configure.in' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL

...

i tak dalej

Kurde :/

bies

  • Gość
# Luty 24, 2006, 00:54:26
SOA#1, wersje których używam:
automake-1.9.6-athlon
autoconf-2.59-noarch
libtool-1.5.22-athlon

Rewizja codeblocks: 2068

Przechodzi bootstrap, configure. Z make mam problem (ale to dlatego, że używam starszej wersji GTK2 i musiałbym przebudować wxGTK2).

Tylko, że ja nie używam Slacka. :D

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 24, 2006, 01:48:48
rewizja c::b ta sama, automake, autoconf i libtool takze. Sciagnelem i zinstalowalem identyczne wersje. Zaraz oszaleje  :-\

bies

  • Gość
# Luty 24, 2006, 02:44:54
Spokojnie, nie szalej. Wszystko będzie dobrze. :D Sprawdź co masz w /usr/share/aclocal/libtool.m4. W szczególności czy masz tam zdefiniowany LIBTOOL='$(SHELL) $(top_builddir)/libtool' lub jakoś podobnie. Puknij w aclocal (libtoolize jest niepotrzebne). Powinien się pojawić plik aclocal.m4 w którym też powinien być zdefiniowany LIBTOOL.

Może aclocal nie znajduje pliku libtool.m4, wtedy dodaj katalog z tym plikiem do przeszukiwanych przełącznikiem -I.

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 24, 2006, 11:05:22
Sorki, ze tak na raty ale w pracy nie mam dostepu do mojego domowego slacka :)
Sprawdze jeszcze raz wszystkie pliki. Musze takze wiecej poczytac nt. automake i autoconfa bo raczej ich nie uzywalem a wiedzac jak one dzialaja bedzie mi latwiej reagowac na ewentualne bledy.

Jakby co to bede Cie jeszcze meczyl ;)

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 24, 2006, 20:54:39
A wiec dalej:

najpierw ustawiam sobie $ACLOCAL_FLAGS dodajac odpowiednie przelaczniki zeby przeszukal katalogi

export ACLOCAL_FLAGS=--acdir='/opt/wx/2.6/share/aclocal/ -I /usr/local/share/aclocal/'

tworzy mi sie aclocal.m4, w ktorym jest to co napisales powyzej.
potem daje bootstrap (zreszta podczas recznego automake i autoconf jest podobnie)

sirmike@melox:~/install/cb/trunk$ ./bootstrap
aclocal:acinclude.m4:55: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:56: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:57: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:81: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:92: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:103: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:114: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:125: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:136: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:147: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:158: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:172: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:180: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:188: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:198: warning: macro `AM_CONDITIONAL' not found in library
aclocal:acinclude.m4:227: warning: macro `AM_CONDITIONAL' not found in library
aclocal:configure.in:7: warning: macro `AM_INIT_AUTOMAKE' not found in library
aclocal:configure.in:102: warning: macro `AM_CONDITIONAL' not found in library
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
src/plugins/Makefile.am:1: BUILD_ASTYLE does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:5: BUILD_CLASSWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:9: BUILD_CODECOMPLETION does not appear in AM_CONDITIONA
L
src/plugins/Makefile.am:13: BUILD_COMPILER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:17: BUILD_DEBUGGER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:21: BUILD_MIMEHANDLER does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:25: BUILD_PLUGINWIZARD does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:29: BUILD_TODO does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:33: BUILD_MANIFEST does not appear in AM_CONDITIONAL
src/plugins/Makefile.am:37: BUILD_CONTRIB does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear in AM
_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
src/plugins/contrib/wxSmith/Makefile.am:3: PRECOMPILE_HEADERS does not appear in
 AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
src/sdk/Makefile.am:3: PRECOMPILE_HEADERS does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A
M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITI
ONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in A M_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/src/Makefile.am:9: CODEBLOCKS_LINUX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
src/templates/Makefile.am:1: CODEBLOCKS_NT does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL

Mimo tego, ze przegladalem dosc sporo manuale od autoconf i automake to ciagle nie wiem co jest grane :(

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 24, 2006, 21:25:36
o w morde, zadzialalo wreszcie  :-\ dorzucilem jeszcze jeden katalog z plikami .m4 do sciezki przeszukiwania i poszlo :)
Teraz idzie make...

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 24, 2006, 21:38:21
Wrrrrrrrr..... zbyt pieknie by bylo :D

g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/as/include -I../../src/sdk/wxFlatNotebook -I../../src/sdk/propgrid/include -I/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -O2 -ffast-math -g -O2 -I/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -MT messagelog.lo -MD -MP -MF .deps/messagelog.Tpo -c messagelog.cpp  -fPIC -DPIC -o .libs/messagelog.o
messagelog.cpp: In member function `virtual wxFont
   MessageLog::GetDefaultLogFont(bool)':
messagelog.cpp:51: error: `ReadInt' undeclared (first use this function)
messagelog.cpp:51: error: (Each undeclared identifier is reported only once for
   each function it appears in.)

Wyglada na jakis bug niz na nieprawidlowa konfiguracje. A podkusilo mnie zeby zrobic svn up do 2072 :(

bies

  • Gość
# Luty 25, 2006, 00:42:04
Ano możliwe. Jakiego GCC używasz, strzelam, że miej niż 3.4. Z tego co widzę c::b używa PCH. I mam wrażenie, że nie testują kompilacji bez. Otóż w src/sdk/sdk_precomp.h jest włączony configmanager.h. Ale tylko dla zdefiniowanego CP_PRECOMP. Niestety, jeśli nie masz go zdefiniowanego nie jest włączany w messagelog.cpp. A tam jest zdefiniowana metoda ReadInt(). Wywal po prostu tego #undefa z 18 linii src/sdk/sdk_precomp.h. Powinno zadziałać.

Swoją szosą c::b kiepsko (eufemizm) zarządza nagłówkami.

Offline SirMike

  • Użytkownik
    • SirMike's Techblog

# Luty 25, 2006, 02:20:54
GCC mam starsze (3.3.6) - zastanawiam sie czemu w najnowszej dystrybucji slacka jest tak stary kompilator ;)
No ale poradzilem sobie w koncu. Przerobilem troche zrodelka (zmiana, ktora proponowales nie byla dobra), dodalem na chama  includa, ktory deklarowa ta funkcje. Pozniej jeszcze jedna literowka w kodzie i jest cacy :)
Najsmieszniejsze jest to, ze ja sie palowalem kilkadziesiat minut a tu widze kolejny commit do svna poszedl i sa te same poprawki co moje ;)

bies

  • Gość
# Luty 25, 2006, 02:41:01
Cytat: SirMike
GCC mam starsze (3.3.6) - zastanawiam sie czemu w najnowszej dystrybucji slacka jest tak stary kompilator ;)
Wcale nie jest taki stary, ma tylko 7 miesięcy. Poza tym znając Patricka, pewnie uważa, że jest sprawdzony i stabilny. No i ma rację! Sam, gdybym nie użył testowego repo z PLD, też miałbym 3.3.6. Poza tym przejście na nowszy oznacza albo kompilacje wszystkiego co korzysta z libstdc++ (zmieniło się ABI C++) albo dodawanie jakiegoś pakietu libstdc++5-compat. Jedno wymaga testów a drugie wprowadza pewien nieporządek (z jaką biblioteką budować nowe pakiety, a nowe biblioteki C++?). A skoro działa... A o ile jeszcze z 3.4 zazwyczaj nie ma problemu to liczba potrzebnych łatek do programów dla gcc4 jest jeszcze duża.

Cytat: SirMike
No ale poradzilem sobie w koncu. Przerobilem troche zrodelka (zmiana, ktora proponowales nie byla dobra), dodalem na chama includa, ktory deklarowa ta funkcje. Pozniej jeszcze jedna literowka w kodzie i jest cacy :)
Najsmieszniejsze jest to, ze ja sie palowalem kilkadziesiat minut a tu widze kolejny commit do svna poszedl i sa te same poprawki co moje ;)
Tak też bywa. :D