1

Temat: kompilacja a8cas-tools

Hej!

Pytanie, czy komuś z was udało się skompilować poprawnie a8cas-tools pod Debianem 6.0.7? Mi niestety coś nie wychodzi. A ponieważ moja znajomość Linux-a jest jaka jest ;) proszę o pomoc...

libsndfile kompiluje się i instaluje się bez problemu, liba8cas również, ale próba kompilacji a8cas-tools kończy się jak poniżej...

na początku kompilacja i instalacja liba8cas-1.4.0 potem tools... i sypie się już przy ./configure, any idea?


root@debian:/home/seban/Downloads/liba8cas-1.4.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux 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
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 ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ANSI C header files... (cached) yes
checking whether to enable assertions... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SNDFILE... yes
checking sndfile.h usability... yes
checking sndfile.h presence... yes
checking for sndfile.h... yes
checking for sf_open... yes
checking for sf_open_virtual... yes
checking whether SF_FORMAT_OGG is declared... yes
checking whether SFC_SET_SCALE_FLOAT_INT_READ is declared... yes
checking whether SFC_SET_SCALE_INT_FLOAT_WRITE is declared... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
-------------------------------------------------

 liba8cas Version 1.4.0

 Prefix: '/usr/local'.
 Compiler: 'gcc -g -O2 -I/usr/local/include   -Wall -pedantic '

 Package features:
   Async Execution: 

 Now type 'make [<target>]'
   where the optional <target> is:
     all                - build all binaries
     install            - install everything

--------------------------------------------------
root@debian:/home/seban/Downloads/liba8cas-1.4.0# make all
Making all in include
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/include'
Making all in src
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make  all-am
make[2]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I../include -g -O2 -I/usr/local/include   -Wall -pedantic -MT liba8cas_la-format_sndfile.lo -MD -MP -MF .deps/liba8cas_la-format_sndfile.Tpo -c -o liba8cas_la-format_sndfile.lo `test -f 'format_sndfile.c' || echo './'`format_sndfile.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/local/include -Wall -pedantic -MT liba8cas_la-format_sndfile.lo -MD -MP -MF .deps/liba8cas_la-format_sndfile.Tpo -c format_sndfile.c  -fPIC -DPIC -o .libs/liba8cas_la-format_sndfile.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -g -O2 -I/usr/local/include -Wall -pedantic -MT liba8cas_la-format_sndfile.lo -MD -MP -MF .deps/liba8cas_la-format_sndfile.Tpo -c format_sndfile.c -o liba8cas_la-format_sndfile.o >/dev/null 2>&1
mv -f .deps/liba8cas_la-format_sndfile.Tpo .deps/liba8cas_la-format_sndfile.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I../include -g -O2 -I/usr/local/include   -Wall -pedantic -no-undefined -version-info 2:0:2  -o liba8cas.la -rpath /usr/local/lib liba8cas_la-a8cas.lo liba8cas_la-a8cas_file.lo liba8cas_la-cas_decode.lo liba8cas_la-cas_encode.lo liba8cas_la-downsample.lo liba8cas_la-dyn_array.lo liba8cas_la-format_cas.lo liba8cas_la-format_fsk.lo liba8cas_la-format_hex.lo liba8cas_la-format_raw.lo liba8cas_la-format_sndfile.lo liba8cas_la-format_stdio_based.lo liba8cas_la-fsk_demod.lo liba8cas_la-fsk_mod.lo liba8cas_la-io.lo liba8cas_la-pwm_demod.lo liba8cas_la-pwm_mod.lo liba8cas_la-read_audio.lo liba8cas_la-resample.lo liba8cas_la-upsample.lo  -L/usr/local/lib -lsndfile   -lm
libtool: link: rm -fr  .libs/liba8cas.a .libs/liba8cas.la .libs/liba8cas.lai .libs/liba8cas.so .libs/liba8cas.so.0 .libs/liba8cas.so.0.2.0
libtool: link: gcc -shared  -fPIC -DPIC  .libs/liba8cas_la-a8cas.o .libs/liba8cas_la-a8cas_file.o .libs/liba8cas_la-cas_decode.o .libs/liba8cas_la-cas_encode.o .libs/liba8cas_la-downsample.o .libs/liba8cas_la-dyn_array.o .libs/liba8cas_la-format_cas.o .libs/liba8cas_la-format_fsk.o .libs/liba8cas_la-format_hex.o .libs/liba8cas_la-format_raw.o .libs/liba8cas_la-format_sndfile.o .libs/liba8cas_la-format_stdio_based.o .libs/liba8cas_la-fsk_demod.o .libs/liba8cas_la-fsk_mod.o .libs/liba8cas_la-io.o .libs/liba8cas_la-pwm_demod.o .libs/liba8cas_la-pwm_mod.o .libs/liba8cas_la-read_audio.o .libs/liba8cas_la-resample.o .libs/liba8cas_la-upsample.o   -L/usr/local/lib /usr/local/lib/libsndfile.so -lm  -O2   -Wl,-soname -Wl,liba8cas.so.0 -o .libs/liba8cas.so.0.2.0
libtool: link: (cd ".libs" && rm -f "liba8cas.so.0" && ln -s "liba8cas.so.0.2.0" "liba8cas.so.0")
libtool: link: (cd ".libs" && rm -f "liba8cas.so" && ln -s "liba8cas.so.0.2.0" "liba8cas.so")
libtool: link: ar cru .libs/liba8cas.a  liba8cas_la-a8cas.o liba8cas_la-a8cas_file.o liba8cas_la-cas_decode.o liba8cas_la-cas_encode.o liba8cas_la-downsample.o liba8cas_la-dyn_array.o liba8cas_la-format_cas.o liba8cas_la-format_fsk.o liba8cas_la-format_hex.o liba8cas_la-format_raw.o liba8cas_la-format_sndfile.o liba8cas_la-format_stdio_based.o liba8cas_la-fsk_demod.o liba8cas_la-fsk_mod.o liba8cas_la-io.o liba8cas_la-pwm_demod.o liba8cas_la-pwm_mod.o liba8cas_la-read_audio.o liba8cas_la-resample.o liba8cas_la-upsample.o
libtool: link: ranlib .libs/liba8cas.a
libtool: link: ( cd ".libs" && rm -f "liba8cas.la" && ln -s "../liba8cas.la" "liba8cas.la" )
make[2]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0'
root@debian:/home/seban/Downloads/liba8cas-1.4.0# make install
Making install in include
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/include'
make[2]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
 /usr/bin/install -c -m 644 a8cas.h '/usr/local/include'
make[2]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/include'
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/include'
Making install in src
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make[2]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   liba8cas.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/liba8cas.so.0.2.0 /usr/local/lib/liba8cas.so.0.2.0
libtool: install: (cd /usr/local/lib && { ln -s -f liba8cas.so.0.2.0 liba8cas.so.0 || { rm -f liba8cas.so.0 && ln -s liba8cas.so.0.2.0 liba8cas.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f liba8cas.so.0.2.0 liba8cas.so || { rm -f liba8cas.so && ln -s liba8cas.so.0.2.0 liba8cas.so; }; })
libtool: install: /usr/bin/install -c .libs/liba8cas.lai /usr/local/lib/liba8cas.la
libtool: install: /usr/bin/install -c .libs/liba8cas.a /usr/local/lib/liba8cas.a
libtool: install: chmod 644 /usr/local/lib/liba8cas.a
libtool: install: ranlib /usr/local/lib/liba8cas.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0/src'
make[1]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0'
make[2]: Entering directory `/home/seban/Downloads/liba8cas-1.4.0'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/aclocal" || /bin/mkdir -p "/usr/local/share/aclocal"
 /usr/bin/install -c -m 644 a8cas.m4 '/usr/local/share/aclocal'
make[2]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0'
make[1]: Leaving directory `/home/seban/Downloads/liba8cas-1.4.0'
root@debian:/home/seban/Downloads/liba8cas-1.4.0# pwd
/home/seban/Downloads/liba8cas-1.4.0
root@debian:/home/seban/Downloads/liba8cas-1.4.0# cd ..
root@debian:/home/seban/Downloads# ls
a8cas-tools-1.3.1      liba8cas-1.3.1.tar.gz     libsndfile-1.0.25
a8cas-tools-1.3.1.tar.gz  liba8cas-1.4.0        libsndfile-1.0.25.tar.gz
liba8cas-1.3.1          liba8cas-1.4.0.tar.gz
liba8cas-1.3.1(1).tar.gz  liba8cas-1.4.0-win32.zip
root@debian:/home/seban/Downloads# cd a8cas-tools-1.3.1
root@debian:/home/seban/Downloads/a8cas-tools-1.3.1# ls
aclocal.m4    compile     configure.ac  INSTALL      Makefile.in  README
AUTHORS        config.log  COPYING      install-sh   missing        src
autom4te.cache    configure   depcomp      Makefile.am  NEWS
root@debian:/home/seban/Downloads/a8cas-tools-1.3.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
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 getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
./configure: line 4042: syntax error near unexpected token `1.3.0,,'
./configure: line 4042: `AM_PATH_A8CAS(1.3.0,,)'
root@debian:/home/seban/Downloads/a8cas-tools-1.3.1# 

2

Odp: kompilacja a8cas-tools

Ja sprawdzalem na Debian 6.0 64-bits i komplicaja/instalacaja bez probelmow.

To co zrobilem:

1. Instalacja glownych potrzebych pakietow do kompilacji pod Debianem

# apt-get install build-essential

2. Instalacja libsndfile

# apt-get install libsndfile1-*

3. Kompilcaja/Instalacja liba8cas-1.4.0

#./configure
# make all
#make install

4. Kompilcaja/Instalacja a8cas-tools-1.3.1

#./configure
# make all
#make install

I tyle

root@jumpbox:~# ls -l /usr/local/bin/a8cas*
-rwxr-xr-x 1 root staff 19062 Apr 30 10:56 /usr/local/bin/a8cas-convert
-rwxr-xr-x 1 root staff 10282 Apr 30 10:56 /usr/local/bin/a8cas-info

Ostatnio edytowany przez Monsoft (2013-04-30 09:30:00)

3

Odp: kompilacja a8cas-tools

seban: libsndfile instaluj z uzyciem: apt-get install libsndfile1-dev (dociagnie co trzeba w zaleznosciach)
mam wrazenie ze zajrzales do pliku INSTALL i zasugerowales sie tam opisanym uzyciem autoreconf -i, a zrobiles to ZANIM zinstalowales liba8cas, przez co nie bylo odpowiednich makr zainstalowanych.

autoreconf -i uzywasz do kompilacji wersji z gita, gdy w paczce brakuje pliku configure (ktory przegenerowales)
rozpakuj archiwum ponownie, nadpisujac ów configure - uruchom konfiguracje na nowo i... powinno byc ok.

The UNIX Guru`s view of Sex:
unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep

4

Odp: kompilacja a8cas-tools

Hej!

@jell: masz rację dokładnie tak zrobiłem (autoreconf -i). Dzięki za oświecenie w tym temacie :)

A więc zrobiłem wszystko od nowa (łącznie z instalką debiana pod VM). I mam znowu podobną akcję... przy ./configure dla a8cas-tools mam coś takiego...

root@debian:/home/seban/Downloads# cd a8cas-tools-1.3.1
root@debian:/home/seban/Downloads/a8cas-tools-1.3.1# ls
aclocal.m4  config.log      COPYING  install-sh    missing  src
AUTHORS     configure      depcomp  Makefile.am    NEWS
compile     configure.ac  INSTALL  Makefile.in    README
root@debian:/home/seban/Downloads/a8cas-tools-1.3.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
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 getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for A8CAS_LDFLAGS... 
checking for A8CAS_LIBS...  -la8cas
checking for A8CAS_CPPFLAGS... 
checking for liba8cas headers version >= 1.3.0... not present.
configure: error: Sufficiently new version of liba8cas not found.

Ostatnio edytowany przez seban (2013-04-30 11:15:29)

5

Odp: kompilacja a8cas-tools

Sprawdz co masz tutaj:

# cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib

pozniej sprawdz czy w tej lokalizacji masz biblioteki liba8cas

# ls -l /usr/local/lib/liba8cas*
-rw-r--r-- 1 root staff 328134 Apr 30 10:47 /usr/local/lib/liba8cas.a
-rwxr-xr-x 1 root staff    973 Apr 30 10:47 /usr/local/lib/liba8cas.la
lrwxrwxrwx 1 root staff     17 Apr 30 10:47 /usr/local/lib/liba8cas.so -> liba8cas.so.0.2.0
lrwxrwxrwx 1 root staff     17 Apr 30 10:47 /usr/local/lib/liba8cas.so.0 -> liba8cas.so.0.2.0
-rwxr-xr-x 1 root staff 226416 Apr 30 10:47 /usr/local/lib/liba8cas.so.0.2.0

uruchom ldconfig
i w razie czego przeloguj sie

6

Odp: kompilacja a8cas-tools

olej to co napisal Monsoft ;)

po prostu zrobiles make all, ale pozniej nie dales make install ;)

"przeloguj sie" lol. to nie windows ;)

The UNIX Guru`s view of Sex:
unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep

7

Odp: kompilacja a8cas-tools

Z ciekawości też sprawdziłem i efekt taki sam. (checking for liba8cas headers version >= 1.3.0... not present.
configure: error: Sufficiently new version of liba8cas not found.)

Debian 6
FreeBsd 9

(żaden z systemów nie jest uaktualniony)
Na obu libsndfile kompilowane ze żródeł.

"tatusiu zobacz, narysowałam tobie takie same coś jak na twojej koszulce" 
https://github.com/willyvmm/mouSTer
jmp $e477

8

Odp: kompilacja a8cas-tools

OK to ja juz nie bede sie wtracal bo kolega jellonek wie lepiej

Ostatnio edytowany przez Monsoft (2013-04-30 11:47:52)

9

Odp: kompilacja a8cas-tools

Hmm.. Teraz poszło bez problemu ... i co dziwne nie potrafię odtworzyć przebiegu poprzedniej instalacji zakończonej niepowodzeniem.

edit:
Już wiem. Powtórzyłem całą operację która zakończyła się niepowodzeniem.

Skrypt instalacyjny liba8cas-1.4.0 nie uaktualnia pliku /etc/ld.so.cache

Trzeba to zrobić ręcznie po instalacji odpalając ldconf.
Jest to nawet opisane w pliku INSTALL:

2. To make the installed library available to programs intending to use it,
typically some additional actions are needed, like:
- running ldconfig, or
- adding LIBDIR to the LD_LIBRARY_PATH environment variable during program
  execution, or
- adding LIBDIR to the LD_RUN_PATH environment variable during program linking.
Also, make sure that the a8cas.m4 file installed with the library is
accessible for Automake (see "dirlist" at
http://www.gnu.org/s/hello/manual/autom … -Path.html ).

Ponowne zalogowanie się rozwiązuje czasami ten problem (u mnie przynajmniej tak się stało)

seban: przed odpaleniem konfigu dla a8cas-tool odpal ldconfig. Rozwiąże to problem.

Ostatnio edytowany przez willy (2013-04-30 12:12:57)

"tatusiu zobacz, narysowałam tobie takie same coś jak na twojej koszulce" 
https://github.com/willyvmm/mouSTer
jmp $e477

10

Odp: kompilacja a8cas-tools

Hej!

Panowie chciałem serdecznie wam podziękować! :) Wszystko już działa. Dzięki raz jeszcze.

@jell: oczywiście iż robiłem make install :) spec od Linux ze mnie żaden, ale z tym jeszcze sobie radzę :) tzn. pamiętałem o make install :)

Mój problem rozwiązało polecenie ldconfig :) przelogowanie ani reboot maszyny nie pomagał. dopiero wydanie polecenia 'ldconfig' rozwiązało problem, po nim 'configure' poszło bez problemów. następnie make all i make install również. Mam już działające a8cas-convert i a8cas-info.

jeszcze raz bardzo wielkie dzięki wszystkim za pomoc :)

pozdrawiam serdecznie
Seban

Ostatnio edytowany przez seban (2013-04-30 15:45:59)

11

Odp: kompilacja a8cas-tools

Hejka. Odkopuję, bo mam problem na dwóch platformach identyczny, a z autoconfem jestem na etapie - używam jak trzeba.
Zarówno na Ubuntu 4.15-0-213-generic, jak i na M1 Darwin Kernel Version 22.6.0 arm64 wywala następujący błąd:

M1:

autoreconf -i zwraca:

configure.ac:23: warning: macro 'AM_PATH_A8CAS' not found in library
configure.ac:17: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:17: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:17: the top level
configure.ac:23: error: possibly undefined macro: AM_PATH_A8CAS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: error: /opt/homebrew/Cellar/autoconf/2.71/bin/autoconf failed with exit status: 1

powtórne uruchomienie generuje resztę plików ale zwraca nadal:

configure.ac:23: warning: macro 'AM_PATH_A8CAS' not found in library
configure.ac:17: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:17: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:17: the top level
configure.ac:12: installing './compile'
configure.ac:9: installing './config.guess'
configure.ac:9: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
src/Makefile.am: installing './depcomp'

./configure zwraca na końcu:

...
./configure: line 4505: syntax error near unexpected token `1.3.0,,'
./configure: line 4505: `AM_PATH_A8CAS(1.3.0,,)'

Ubuntu:

autoreconf -i zwraca:

configure.ac:23: warning: macro 'AM_PATH_A8CAS' not found in library
configure.ac:23: error: possibly undefined macro: AM_PATH_A8CAS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Po drugim wywołaniu już mówi tylko pierwszą linijkę (not found in library) i generuje resztę plików.

Po wywołaniu ./configure:

...
./configure: line 4196: syntax error near unexpected token `1.3.0,,'
./configure: line 4196: `AM_PATH_A8CAS(1.3.0,,)'

ldconfig nie pomaga na Debianie, na M1 go nie ma.
Biblioteki poinstalowane, liba8cas też skompilowana i zainstalowana.

Ostatnio edytowany przez qbahusak (2023-12-30 15:24:32)

12

Odp: kompilacja a8cas-tools

Ojejku, nie mam jak sprawdzić tego teraz, bo nie mam Linuksa pod ręką, ale w ogólności - trzeba "jakoś" zadbać o to aby Automake'owe makra z pliku a8cas.m4 były widoczne dla Automake'a.

a8cas.m4 jest częścią instalacji liba8cas, i jest kopiowany podczas "make install" do katalogu bodajże "/usr/local/share/aclocal". Ale domyśnie w Linuksach Automake nie szuka makr w tym katalogu, tylko w "/usr/share/aclocal". Więc najprościej byłoby po prostu skopiować ten plik do "/usr/share/aclocal", ale bardziej elegancko byłoby dodać "/usr/local/share/aclocal" do ścieżek wyszukiwania Automake'a. Przeczytaj INSTALL rozdz. II.2.

A8CAS - narzędzie do 100% archiwizacji kaset Atari

13

Odp: kompilacja a8cas-tools

Dzięki za odpowiedź, takie miałem podejrzenie, a teraz pewność :) próbowałem ten plik jakoś „unaocznić” autoconfowi, bez skutku, ale spróbuję jeszcze raz.

14

Odp: kompilacja a8cas-tools

To chyba wystarczy w katalogu /usr/share/aclocal umieścić plik "dirlist" z odpowiednią zawartością - w INSTALL rozdz. II.2 jest odpowiedni link do dokumentacji Automake'a.

A8CAS - narzędzie do 100% archiwizacji kaset Atari