by meskiangasher » 28 Nov 2016, 14:07
J'ai essayé
https://ti-pla.net/tilpinst après avoir installé les dépendances, mais cela ne marche pas :
- Code: Select all
root@debian-yves:/home/yves# ./install_tilp.sh
Determining whether /usr/lib64 is probably used
No, /usr/lib64 is probably not used
Will use PREFIX=/usr
Will use SRCDIR=/root/lpg
Will use PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Will use LD_LIBRARY_PATH=
Will use PKG_CONFIG_PATH=
Will use LIBDIR=/usr/lib
Will use CC=gcc
Will use CXX=g++
Before proceeding further, make sure that you're ready to go (look inside the install script):
1) configured PREFIX and SRCDIR the way you wish
(as well as CC and CXX if you're into using non-GCC compilers when the distro defaults to GCC);
2) configured PKG_CONFIG_PATH if necessary
3) purged any installed distro packages for libticonv, libtifiles, libticables, libticalcs, gfm, tilp.
4) installed the build dependencies listed in the script. For instance:
Debian 8:
apt-get install build-essential git autoconf automake autopoint libtool libtool-bin libglib2.0-dev zlib1g-dev libusb-1.0-0-dev libgtk2.0-dev libglade2-dev gettext bison flex groff texinfo xdg-utils libarchive-dev intltool
Fedora 23:
dnf install git gcc gcc-c++ make pkgconfig autoconf automake libtool glib2-devel zlib-devel libusb1-devel gtk2-devel libglade2-devel gettext bison flex groff texinfo xdg-utils libarchive-devel intltool xz
CentOS 7:
yum install git gcc gcc-c++ make pkgconfig autoconf automake libtool glib2-devel zlib-devel libusb1-devel gtk2-devel libglade2-devel gettext bison flex groff texinfo xdg-utils libarchive-devel intltool xz
OpenSUSE 42.1:
zypper install git gcc gcc-c++ make pkg-config autoconf automake libtool glib2-devel zlib-devel libusb-1_0-devel gtk2-devel libglade2-devel gettext-tools bison flex groff texinfo xdg-utils libarchive-devel intltool xz
Alpine 3.3:
apk add git gcc g++ make pkgconfig autoconf automake libtool glib-dev zlib-dev libusb-dev gtk+-dev libglade-dev gettext-dev bison flex groff texinfo xdg-utils libarchive-dev intltool xz
Arch Linux 2015.06.01 + upgrades:
pacman -S git gcc make pkgconfig autoconf automake libtool glib2 zlib libusb gtk2 libglade gettext bison flex groff texinfo xdg-utils libarchive intltool xz
MacOS X:
brew install gettext libarchive autoconf automake libtool glib lzlib libusb gtk+ libglade sdl bison flex texinfo intltool
brew link --force libarchive gettext (you can use 'brew unlink' later).
Otherwise, either the build will fail, or the system may not use the just-built version (e.g. if you didn't purge the distro packages) !
ENTER to proceed, CTRL + C to abort.
Creating output folder if necessary
Performing a quick rough sanity check on compilers
Hello World !
CC=gcc exists and is not totally broken
Hello World !
CXX=g++ exists and is not totally broken
Checking whether /usr can be written to
=== Downloading tilibs ===
Updating tilibs
Already up-to-date.
=== Downloading tilp_and_gfm ===
Updating tilp_and_gfm
Already up-to-date.
=== libticonv ===
Configuring tilibs/libticonv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:45: installing './compile'
configure.ac:44: installing './config.guess'
configure.ac:44: installing './config.sub'
configure.ac:24: installing './install-sh'
configure.ac:24: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory `.'
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 whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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 whether gcc understands -c and -o together... yes
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 x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-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... dlltool
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 -m elf_x86_64) 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... no
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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for library containing strerror... none required
checking for gawk... (cached) mawk
checking for tfdocgen... no
checking for windres... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether gcc needs -traditional... no
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strrchr... yes
checking whether gcc accepts -fvisibility... -fvisibility=hidden
checking whether to enable experimental iconv interface... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/mingw/Makefile
config.status: creating docs/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating ticonv.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Now, you can type 'make' and 'make install'.
Building tilibs/libticonv
make all-recursive
make[1]: Entering directory '/root/lpg/tilp/tilibs/libticonv/trunk'
Making all in build/mingw
make[2]: Entering directory '/root/lpg/tilp/tilibs/libticonv/trunk/build/mingw'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/lpg/tilp/tilibs/libticonv/trunk/build/mingw'
Making all in src
make[2]: Entering directory '/root/lpg/tilp/tilibs/libticonv/trunk/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-ticonv.lo -MD -MP -MF .deps/libticonv_la-ticonv.Tpo -c -o libticonv_la-ticonv.lo `test -f 'ticonv.c' || echo './'`ticonv.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-ticonv.lo -MD -MP -MF .deps/libticonv_la-ticonv.Tpo -c ticonv.c -fPIC -DPIC -o .libs/libticonv_la-ticonv.o
mv -f .deps/libticonv_la-ticonv.Tpo .deps/libticonv_la-ticonv.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-charset.lo -MD -MP -MF .deps/libticonv_la-charset.Tpo -c -o libticonv_la-charset.lo `test -f 'charset.c' || echo './'`charset.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-charset.lo -MD -MP -MF .deps/libticonv_la-charset.Tpo -c charset.c -fPIC -DPIC -o .libs/libticonv_la-charset.o
charset.c: In function 'ticonv_utf16_to_ti80':
charset.c:496:2: warning: #warning FINISH UTF-16-TO-TI-80 CONVERSION [-Wcpp]
#warning FINISH UTF-16-TO-TI-80 CONVERSION
^
mv -f .deps/libticonv_la-charset.Tpo .deps/libticonv_la-charset.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-tokens.lo -MD -MP -MF .deps/libticonv_la-tokens.Tpo -c -o libticonv_la-tokens.lo `test -f 'tokens.c' || echo './'`tokens.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-tokens.lo -MD -MP -MF .deps/libticonv_la-tokens.Tpo -c tokens.c -fPIC -DPIC -o .libs/libticonv_la-tokens.o
mv -f .deps/libticonv_la-tokens.Tpo .deps/libticonv_la-tokens.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-filename.lo -MD -MP -MF .deps/libticonv_la-filename.Tpo -c -o libticonv_la-filename.lo `test -f 'filename.c' || echo './'`filename.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-filename.lo -MD -MP -MF .deps/libticonv_la-filename.Tpo -c filename.c -fPIC -DPIC -o .libs/libticonv_la-filename.o
mv -f .deps/libticonv_la-filename.Tpo .deps/libticonv_la-filename.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-type2str.lo -MD -MP -MF .deps/libticonv_la-type2str.Tpo -c -o libticonv_la-type2str.lo `test -f 'type2str.c' || echo './'`type2str.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DTICONV_EXPORTS -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -MT libticonv_la-type2str.lo -MD -MP -MF .deps/libticonv_la-type2str.Tpo -c type2str.c -fPIC -DPIC -o .libs/libticonv_la-type2str.o
mv -f .deps/libticonv_la-type2str.Tpo .deps/libticonv_la-type2str.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -Wall -g -O2 -D__LINUX__ -fvisibility=hidden -no-undefined -version-info 9:4:0 -o libticonv.la -rpath /usr/lib libticonv_la-ticonv.lo libticonv_la-charset.lo libticonv_la-tokens.lo libticonv_la-filename.lo libticonv_la-type2str.lo -lglib-2.0
libtool: link: gcc -shared -fPIC -DPIC .libs/libticonv_la-ticonv.o .libs/libticonv_la-charset.o .libs/libticonv_la-tokens.o .libs/libticonv_la-filename.o .libs/libticonv_la-type2str.o -lglib-2.0 -O2 -Wl,-soname -Wl,libticonv.so.9 -o .libs/libticonv.so.9.0.4
libtool: link: (cd ".libs" && rm -f "libticonv.so.9" && ln -s "libticonv.so.9.0.4" "libticonv.so.9")
libtool: link: (cd ".libs" && rm -f "libticonv.so" && ln -s "libticonv.so.9.0.4" "libticonv.so")
libtool: link: ( cd ".libs" && rm -f "libticonv.la" && ln -s "../libticonv.la" "libticonv.la" )
make[2]: Leaving directory '/root/lpg/tilp/tilibs/libticonv/trunk/src'
Making all in tests
make[2]: Entering directory '/root/lpg/tilp/tilibs/libticonv/trunk/tests'
depbase=`echo test_ticonv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -D__LINUX__ -fvisibility=hidden -MT test_ticonv.o -MD -MP -MF $depbase.Tpo -c -o test_ticonv.o test_ticonv.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -D__LINUX__ -fvisibility=hidden -o test_ticonv test_ticonv.o ../src/libticonv.la -lglib-2.0
libtool: link: gcc -g -O2 -D__LINUX__ -fvisibility=hidden -o .libs/test_ticonv test_ticonv.o ../src/.libs/libticonv.so -lglib-2.0
depbase=`echo torture_ticonv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -D__LINUX__ -fvisibility=hidden -MT torture_ticonv.o -MD -MP -MF $depbase.Tpo -c -o torture_ticonv.o torture_ticonv.c &&\
mv -f $depbase.Tpo $depbase.Po
torture_ticonv.c: In function ‘main’:
torture_ticonv.c:98:5: warning: ‘ticonv_varname_to_utf8_s’ is deprecated (declared at ../src/ticonv.h:155) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_utf8_s, STR, -1, NULL, (void *)0x12345678, 0);
^
torture_ticonv.c:99:5: warning: ‘ticonv_varname_to_utf8_s’ is deprecated (declared at ../src/ticonv.h:155) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_utf8_s, STR, -1, (void *)0x12345678, NULL, 0);
^
torture_ticonv.c:103:5: warning: ‘ticonv_varname_to_filename_s’ is deprecated (declared at ../src/ticonv.h:160) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_filename_s, STR, -1, NULL, (void *)0x12345678, 0);
^
torture_ticonv.c:105:5: warning: ‘ticonv_varname_to_filename_s’ is deprecated (declared at ../src/ticonv.h:160) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_filename_s, STR, -1, (void *)0x12345678, NULL, 0);
^
torture_ticonv.c:109:5: warning: ‘ticonv_varname_to_tifile_s’ is deprecated (declared at ../src/ticonv.h:165) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_tifile_s, STR, -1, NULL, (void *)0x12345678, 0);
^
torture_ticonv.c:110:5: warning: ‘ticonv_varname_to_tifile_s’ is deprecated (declared at ../src/ticonv.h:165) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_to_tifile_s, STR, -1, (void *)0x12345678, NULL, 0);
^
torture_ticonv.c:114:5: warning: ‘ticonv_varname_from_tifile_s’ is deprecated (declared at ../src/ticonv.h:169) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_from_tifile_s, STR, -1, NULL, (void *)0x12345678, 0);
^
torture_ticonv.c:116:5: warning: ‘ticonv_varname_from_tifile_s’ is deprecated (declared at ../src/ticonv.h:169) [-Wdeprecated-declarations]
PRINTF(ticonv_varname_from_tifile_s, STR, -1, (void *)0x12345678, NULL, 0);
^
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -D__LINUX__ -fvisibility=hidden -o torture_ticonv torture_ticonv.o ../src/libticonv.la -lglib-2.0
libtool: link: gcc -g -O2 -D__LINUX__ -fvisibility=hidden -o .libs/torture_ticonv torture_ticonv.o ../src/.libs/libticonv.so -lglib-2.0
torture_ticonv.o: In function `main':
/root/lpg/tilp/tilibs/libticonv/trunk/tests/torture_ticonv.c:138: undefined reference to `ticonv_iconv_open'
/root/lpg/tilp/tilibs/libticonv/trunk/tests/torture_ticonv.c:139: undefined reference to `ticonv_iconv'
/root/lpg/tilp/tilibs/libticonv/trunk/tests/torture_ticonv.c:144: undefined reference to `ticonv_iconv_close'
collect2: error: ld returned 1 exit status
Makefile:549: recipe for target 'torture_ticonv' failed
make[2]: *** [torture_ticonv] Error 1
make[2]: Leaving directory '/root/lpg/tilp/tilibs/libticonv/trunk/tests'
Makefile:453: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/lpg/tilp/tilibs/libticonv/trunk'
Makefile:361: recipe for target 'all' failed
make: *** [all] Error 2
Comme je n'y comprends rien, il y aurait-il une bonne âme pour me dépanner ? Je vous remercie encore.
Last edited by meskiangasher on 28 Nov 2016, 14:09, edited 1 time in total.