compilation gentoo

Xcas devel: interface utilisateur/user interface

Modérateur : xcasadmin

Répondre
debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

compilation gentoo

Message par debimax » ven. nov. 12, 2010 1:52 pm

Bonjour

Je viens de remettre sur pied ma gentoo et je souhaite installer xcas.

J'ai trouvé cet ebuild http://gitweb.thetys-retz.net/overlay/t ... atics/giac

J'ai installé avant fltk, gsl , pari, ntl, mpfr et gmp

Tout ce passe bien au début de la compilation mais j'ai cette erreur

Code : Tout sélectionner

/bin/sh ../libtool --tag=CXX   --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -DIN_GIAC -I. -I.. -I. -I..       -O2 -march=i686 -pipe -fno-strict-aliasing -MT rpn.lo -MD -MP -MF .deps/rpn.Tpo -c -o rpn.lo rpn.cc
libtool: compile:  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -DIN_GIAC -I. -I.. -I. -I.. -O2 -march=i686 -pipe -fno-strict-aliasing -MT rpn.lo -MD -MP -MF .deps/rpn.Tpo -c rpn.cc  -fPIC -DPIC -o .libs/rpn.o
rpn.cc:1387: erreur: explicit qualification in declaration of ‘giac::_concat_CONCAT_s’
rpn.cc:1387: erreur: ‘giac::_concat_CONCAT_s’ declared as reference but not initialized
rpn.cc:1388: erreur: ‘__CONCAT’ was not declared in this scope
make[2]: *** [rpn.lo] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/sci-mathematics/giac-0.9.0/work/giac-0.9.0/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/sci-mathematics/giac-0.9.0/work/giac-0.9.0 »
make: *** [all] Erreur 2
 * ERROR: sci-mathematics/giac-0.9.0 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2318:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sci-mathematics/giac-0.9.0',
 * the complete build log and the output of 'emerge -pqv =sci-mathematics/giac-0.9.0'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/sci-mathematics/giac-0.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/giac-0.9.0/temp/environment'.
 * S: '/var/tmp/portage/sci-mathematics/giac-0.9.0/work/giac-0.9.0'

>>> Failed to emerge sci-mathematics/giac-0.9.0, Log file:

>>>  '/var/tmp/portage/sci-mathematics/giac-0.9.0/temp/build.log'

 * Messages for package sci-mathematics/giac-0.9.0:

 * ERROR: sci-mathematics/giac-0.9.0 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2318:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sci-mathematics/giac-0.9.0',
 * the complete build log and the output of 'emerge -pqv =sci-mathematics/giac-0.9.0'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/sci-mathematics/giac-0.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/giac-0.9.0/temp/environment'.
 * S: '/var/tmp/portage/sci-mathematics/giac-0.9.0/work/giac-0.9.0'
J'ai la même erreur si je fais un classique .configure, make

J'ai lancé un revdep-rebuild pour vérifier s'il y avait des librairie cassée.

Il y a bien quelque "no" dans le configure mais je n'ai pas l'impression qu'ils ne sont pas c'est obligatoire.

si vous avez une idée, je vous rémercie par avance . (je posterai aussi sur un forum de gentoo ce soir)

voici le configure

Code : Tout sélectionner

 * USE:  elibc_glibc kernel_linux userland_GNU x86 xcas
>>> Unpacking source...
>>> Unpacking giac-0.9.0.tar.gz to /var/tmp/portage/sci-mathematics/giac-0.9.0/work
>>> Source unpacked in /var/tmp/portage/sci-mathematics/giac-0.9.0/work
>>> Compiling source in /var/tmp/portage/sci-mathematics/giac-0.9.0/work/giac-0.9.0 ...
 * econf: updating giac-0.9.0/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating giac-0.9.0/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
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... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-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 i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of i686-pc-linux-gnu-g++... gcc3
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/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 the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... i686-pc-linux-gnu-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 whether we are using the GNU C++ compiler... (cached) yes
checking whether i686-pc-linux-gnu-g++ accepts -g... (cached) yes
checking dependency style of i686-pc-linux-gnu-g++... (cached) gcc3
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for objdir... .libs
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-gcc static flag -static works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/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 ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-g++ static flag -static works... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for standard C++ header files... yes
checking for recent enough gmp.h... yes
checking for working libgmp... yes
checking mpfr.h usability... yes
checking mpfr.h presence... yes
checking for mpfr.h... yes
checking for main in -lmpfr... yes
checking for mpfr_set_str_raw... no
checking for main in -lm... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for main in -lpng... yes
checking for dlopen in -ldl... yes
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking gsl/gsl_blas.h usability... yes
checking gsl/gsl_blas.h presence... yes
checking for gsl/gsl_blas.h... yes
checking gsl/gsl_eigen.h usability... yes
checking gsl/gsl_eigen.h presence... yes
checking for gsl/gsl_eigen.h... yes
checking for main in -lgslcblas... yes
checking for gsl_sf_gamma in -lgsl... yes
checking pari/pari.h usability... yes
checking pari/pari.h presence... yes
checking for pari/pari.h... yes
checking for main in -lpari... yes
checking NTL/ZZ.h usability... yes
checking NTL/ZZ.h presence... yes
checking for NTL/ZZ.h... yes
checking for main in -lntl... yes
checking gmpxx.h usability... yes
checking gmpxx.h presence... yes
checking for gmpxx.h... yes
checking for main in -lgmpxx... yes
checking CoCoA/ZZ.H usability... no
checking CoCoA/ZZ.H presence... no
checking for CoCoA/ZZ.H... no
checking host system type... (cached) i686-pc-linux-gnu
checking for tgetent... no
checking for tgetent in -lncurses... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for version of libreadline... yes
checking for readline in -lreadline... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for main in -lGL... yes
checking for main in -lXinerama... yes
checking for main in -lfontconfig... yes
checking for main in -lXft... yes
checking for main in -lXext... yes
checking for main in -lfltk_gl... no
checking for main in -lfltk... no
checking for main in -lz... yes
checking for png.h... (cached) yes
checking for main in -lpng... (cached) yes
checking for main in -ljpeg... yes
checking for main in -lfltk_images... no
checking for main in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for sysconf... yes
checking for clock_gettime in -lrt... yes
checking ext/hash_map usability... yes
checking ext/hash_map presence... yes
checking for ext/hash_map... yes
checking tr1/unordered_map usability... yes
checking tr1/unordered_map presence... yes
checking for tr1/unordered_map... yes
checking hash_map usability... yes
checking hash_map presence... yes
checking for hash_map... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/types.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for getpid... yes
checking for getcwd... yes
checking for getpwuid... yes
checking for system... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking whether we are using the GNU C Library 2 or newer... yes
checking for i686-pc-linux-gnu-ranlib... (cached) i686-pc-linux-gnu-ranlib
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... 4294967295U
checking for stdint.h... (cached) yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for locale.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for malloc.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... (cached) yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.4.2, ok
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for main in -lintl... no
checking for egrep... (cached) /bin/grep -E
checking for latex... /usr/bin/latex
checking for makeindex... /usr/bin/makeindex
checking for pdflatex... /usr/bin/pdflatex
checking for dvips... /usr/bin/dvips
checking for latex2html... /usr/bin/latex2html
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating check/Makefile
config.status: creating doc/Makefile
config.status: creating doc/en/Makefile
config.status: creating doc/es/Makefile
config.status: creating doc/fr/Makefile
config.status: creating doc/el/Makefile
config.status: creating doc/el/tutoriel/Makefile
config.status: creating doc/el/casinter/Makefile
config.status: creating doc/local/Makefile
config.status: creating doc/pt/Makefile
config.status: creating intl/Makefile
config.status: WARNING:  'intl/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting
config.status: creating examples/Makefile
config.status: creating debianold/Makefile
config.status: creating debian/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
Adding link . to giac in src

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » ven. nov. 12, 2010 3:15 pm

j'ai essayé à nouveau avec un .configure make j'ai toujours la même erreur :evil: :evil:

rpn.cc:1387: erreur: explicit qualification in declaration of ‘giac::_concat_CONCAT_s’
rpn.cc:1387: erreur: ‘giac::_concat_CONCAT_s’ declared as reference but not initialized
rpn.cc:1388: erreur: ‘__CONCAT’ was not declared in this scope

parisse
Messages : 5731
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: compilation gentoo

Message par parisse » dim. nov. 14, 2010 5:42 pm

je ne vois pas ou est l'erreur, il n'y a pas de variables de ce nom dans le source, il y a peut-etre un conflit avec un define specifique a cette distrib, peut-etre qu'en rajoutant un C devant CONCAT partout ou le mot apparait ca marchera...

frederic han
Messages : 1137
Inscription : dim. mai 20, 2007 7:09 am
Localisation : Paris
Contact :

Re: compilation gentoo

Message par frederic han » dim. nov. 14, 2010 7:11 pm

J'ai la meme erreur sous linux avec le source telecharge aujourd'hui sur une distrib qui compilait xcas il y a quelques semaines.

en faisant la modif suivante ca repart.
1387,1388c1387,1388
< static define_unary_function_eval (__CCONCAT,&giac::_concat,_CONCAT_s);
< define_unary_function_ptr5( at_CONCAT ,alias_at_CONCAT,&__CCONCAT,0,true);
---
> static define_unary_function_eval (__CONCAT,&giac::_concat,_CONCAT_s);
> define_unary_function_ptr5( at_CONCAT ,alias_at_CONCAT,&__CONCAT,0,true);


Fred

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » lun. nov. 15, 2010 2:23 pm

merci à vous

J'ai cependant un autre problème que je ne comprend pas

Code : Tout sélectionner

$ xcas
No GUI support, try cas instead or recompile Giac with
./configure --enable-fltk-support
make clean ; make
Pas grave je me dis je retourne compiler xcas avec la bonne option

Code : Tout sélectionner

$ ./configure --enable-fltk-support
configure: WARNING: unrecognized options: --enable-fltk-support
./configure --help ne m'indique pas de fltk-support !!!!!!!!

frederic as tu la même chose que moi.

edit: giac fonctionne très bien

frederic han
Messages : 1137
Inscription : dim. mai 20, 2007 7:09 am
Localisation : Paris
Contact :

Re: compilation gentoo

Message par frederic han » lun. nov. 15, 2010 2:48 pm

Non j'ai bien le fltk,

mais ca veut plutot dire que tu n'as pas fltk (ou la bonne version). Il faut du 1.3xx et non du 1.1 ni du 2. Je pense que bernard conseille celle qu'il a sauvegarde sur son site car la branche 1.3 bouge beaucoup.

par ftp ftp-fourier.ujf-grenoble.fr/xcas/devel/sources/fltkdev.tgz

Fred

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » lun. nov. 15, 2010 5:34 pm

Code : Tout sélectionner

checking for main in -lfltk_gl... no
checking for main in -lfltk... no
effectivement il faut que je regarde plutôt vers ma distribution car j'ai bien bien installé fltk

edit: x11-libs/fltk
Latest version available: 2.0_pre6970
j'ai la version 2


edit2:
# ls /usr/portage/x11-libs/fltk/
ChangeLog fltk-1.1.10.ebuild fltk-2.0_pre6970-r1.ebuild
Manifest fltk-1.1.9-r1.ebuild fltk-2.0_pre6970.ebuild
files fltk-1.1.9-r2.ebuild metadata.xml
fltk-1.1.10-r1.ebuild fltk-1.1.9.ebuild

C'est pas gagné s'il faut la version 1.3 :mrgreen:

frederic han
Messages : 1137
Inscription : dim. mai 20, 2007 7:09 am
Localisation : Paris
Contact :

Re: compilation gentoo

Message par frederic han » lun. nov. 15, 2010 8:05 pm

Salut,

c'est bien ca, mais tu n'as pas besoin de retirer les autres.

tu peux tout a fait compiler fltk-1.3 dans un repertoire (meme temporaire) xcas ne s'en sert que pour la compilation, apres tu peux le virer.

tu peux meme te dispenser de faire un make install pour fltk

par exemple pour le Makefile de freebsd j'ai fait comme ca:

CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include -I${LOCALBASE}/include
LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib -L${LOCALBASE}/lib
CXXFLAGS+= -I${LOCALBASE}/include

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CXXFLAGS+= -DSMARTPTR64 -D_I386_ -fPIC
.endif

CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

WRKSRC= ${WRKDIR}/giac-${PORTVERSION}
FLTKDEV-GIAC= ${WRKDIR}/fltk-1.3.x-r6916
COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9937

post-patch:
${REINPLACE_CMD} -e 's|make |${GMAKE} |g' `${GREP} -Rl 'make ' ${COCOALIB-GIAC}`;
${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|g' `${GREP} -Rl '/bin/bash' ${COCOALIB-GIAC}`;

pre-configure:
cd ${COCOALIB-GIAC} && \
./configure --with-libgmp=${LOCALBASE}/lib/libgmp.a && \
${GMAKE} library && \
cd ${FLTKDEV-GIAC} && \
./configure --prefix=${FLTKDEV-GIAC} \
&& ${MAKE}


ensuite tu peux compiler xcas avec les variables d'environement augmentees comme ci dessus.

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » lun. nov. 15, 2010 8:30 pm

merci j'essayerai ceci la semaine prochaine

edit: mince je ne peux plus poster j'ai une erreur (méthode post php) quand je répond à la suite de ce message

Code : Tout sélectionner

Method Not Implemented

POST to /XCAS/posting.php not supported.
Apache/2.2.0 (Fedora) Server at pcm1.e.ujf-grenoble.fr 
edit2: j'ai trouvé l'erreur, c'est la ligne "c d ../giac-0.9.0/" qui pose problème alors j'ai mis un espace entre c et d.
Dernière modification par debimax le ven. nov. 19, 2010 10:09 am, modifié 1 fois.

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » ven. nov. 19, 2010 10:08 am

C'est bon j'ai déjà fait une installation en installant la bonne version de fltk, j'ai donc xcas.


J'avoue ne pas avoir tout compris pour ta méthode et ton Makefile, c'est bien celui de fltk (c'est ca?)
En gros:
Tu mets tes dossiers fltk-1.3.x-r6916 et giac-0.9.0/ dans le même dossier giac-and-fltk.
cd fltk-1.3.x-r6916
tu crées alors ton Makefile que je dois modifier pour ma gentoo.
./configure
make
c d ../giac-0.9.0/
export .... ou indiquer le chemins dans ./configure (quoi que là je dois dire des bétises)
make
et installer xcas

Remarque je suis allé au plus pressé et je regarderai ta méthode après le 10 décembre (à cause de mon travail) ou le soir pour me détendre s'il n'y a rien à la tv.

frederic han
Messages : 1137
Inscription : dim. mai 20, 2007 7:09 am
Localisation : Paris
Contact :

Re: compilation gentoo

Message par frederic han » sam. nov. 20, 2010 8:57 am

Non c'est un bout du makefile pour freebsd qui installe xcas mais du coup il compile cette version de fltk aussi sans l'installer. (idem pour cocoa)

les 3 archives giac fltk et cocoa sont dans 3 sous repertoires de ${WORKDIR} qui peut etre supprime apres l'installation.

Je te l'ai mis juste pour que tu puisse avoir les bonnes variables d'environnement a modifier.

En bref:

ca compile fltk sans l'installer (le reperoire ou il est )
./configure --prefix=${FLTKDEV-GIAC}

puis il faut avant de compiler giac les bonnes variables d'environement.
FLTKDEV-GIAC= ${WRKDIR}/fltk-1.3.x-r6916
COCOALIB-GIAC= ${WRKDIR}/CoCoALib-0.9937

CPPFLAGS+= -I${FLTKDEV-GIAC} -I${COCOALIB-GIAC}/include
LDFLAGS+= -L${FLTKDEV-GIAC}/lib -L${COCOALIB-GIAC}/lib

Fred

debimax
Messages : 49
Inscription : mer. mars 10, 2010 8:44 am

Re: compilation gentoo

Message par debimax » sam. nov. 20, 2010 1:29 pm

Je comprend mieux :P , je testerais ta méthode plus tard. J'espère en faire un ebuild.

encore merci @+

Répondre