Aller au contenu

Nas Ds207 Swftools


romain75

Messages recommandés

  • 4 semaines après...
  • 2 semaines après...

Ligne. 6245

# The cast to long int works around a bug in the HP C Compiler

# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects

# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.

# This bug is HP SR number 8606223364.

{ $as_echo "$as_me:$LINENO: checking size of signed char" >&5

$as_echo_n "checking size of signed char... " >&6; }

if test "${ac_cv_sizeof_signed_char+set}" = set; then

$as_echo_n "(cached) " >&6

else

if test "$cross_compiling" = yes; then

# Depending upon the size, compute the lo and hi bounds.

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

int

main ()

{

static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];

test_array [0] = 0

;

return 0;

}

_ACEOF

rm -f conftest.$ac_objext

if { (ac_try="$ac_compile"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_compile") 2>conftest.er1

ac_status=$?

grep -v '^ *+' conftest.er1 >conftest.err

rm -f conftest.er1

cat conftest.err >&5

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && {

test -z "$ac_c_werror_flag" ||

test ! -s conftest.err

} && test -s conftest.$ac_objext; then

ac_lo=0 ac_mid=0

while :; do

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

int

main ()

{

static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];

test_array [0] = 0

;

return 0;

}

_ACEOF

rm -f conftest.$ac_objext

if { (ac_try="$ac_compile"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_compile") 2>conftest.er1

ac_status=$?

grep -v '^ *+' conftest.er1 >conftest.err

rm -f conftest.er1

cat conftest.err >&5

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && {

test -z "$ac_c_werror_flag" ||

test ! -s conftest.err

} && test -s conftest.$ac_objext; then

ac_hi=$ac_mid; break

else

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`

if test $ac_lo -le $ac_mid; then

ac_lo= ac_hi=

break

fi

ac_mid=`expr 2 '*' $ac_mid + 1`

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

done

else

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

int

main ()

{

static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];

test_array [0] = 0

;

return 0;

}

_ACEOF

rm -f conftest.$ac_objext

if { (ac_try="$ac_compile"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_compile") 2>conftest.er1

ac_status=$?

grep -v '^ *+' conftest.er1 >conftest.err

rm -f conftest.er1

cat conftest.err >&5

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && {

test -z "$ac_c_werror_flag" ||

test ! -s conftest.err

} && test -s conftest.$ac_objext; then

ac_hi=-1 ac_mid=-1

while :; do

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

int

main ()

{

static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];

test_array [0] = 0

;

return 0;

}

_ACEOF

rm -f conftest.$ac_objext

if { (ac_try="$ac_compile"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_compile") 2>conftest.er1

ac_status=$?

grep -v '^ *+' conftest.er1 >conftest.err

rm -f conftest.er1

cat conftest.err >&5

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && {

test -z "$ac_c_werror_flag" ||

test ! -s conftest.err

} && test -s conftest.$ac_objext; then

ac_lo=$ac_mid; break

else

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`

if test $ac_mid -le $ac_hi; then

ac_lo= ac_hi=

break

fi

ac_mid=`expr 2 '*' $ac_mid`

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

done

else

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

# Binary search between lo and hi bounds.

while test "x$ac_lo" != "x$ac_hi"; do

ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

int

main ()

{

static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];

test_array [0] = 0

;

return 0;

}

_ACEOF

rm -f conftest.$ac_objext

if { (ac_try="$ac_compile"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_compile") 2>conftest.er1

ac_status=$?

grep -v '^ *+' conftest.er1 >conftest.err

rm -f conftest.er1

cat conftest.err >&5

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && {

test -z "$ac_c_werror_flag" ||

test ! -s conftest.err

} && test -s conftest.$ac_objext; then

ac_hi=$ac_mid

else

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

done

case $ac_lo in

?*) ac_cv_sizeof_signed_char=$ac_lo;;

'') if test "$ac_cv_type_signed_char" = yes; then

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5

$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}

{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)

See \`config.log' for more details." >&5

$as_echo "$as_me: error: cannot compute sizeof (signed char)

See \`config.log' for more details." >&2;}

{ (exit 77); exit 77; }; }; }

else

ac_cv_sizeof_signed_char=0

fi ;;

esac

else

cat >conftest.$ac_ext <<_ACEOF

/* confdefs.h. */

_ACEOF

cat confdefs.h >>conftest.$ac_ext

cat >>conftest.$ac_ext <<_ACEOF

/* end confdefs.h. */

$ac_includes_default

static long int longval () { return (long int) (sizeof (signed char)); }

static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }

#include <stdio.h>

#include <stdlib.h>

int

main ()

{

FILE *f = fopen ("conftest.val", "w");

if (! f)

return 1;

if (((long int) (sizeof (signed char))) < 0)

{

long int i = longval ();

if (i != ((long int) (sizeof (signed char))))

return 1;

fprintf (f, "%ld", i);

}

else

{

unsigned long int i = ulongval ();

if (i != ((long int) (sizeof (signed char))))

return 1;

fprintf (f, "%lu", i);

}

/* Do not output a trailing newline, as this causes \r\n confusion

on some platforms. */

return ferror (f) || fclose (f) != 0;

;

return 0;

}

_ACEOF

rm -f conftest$ac_exeext

if { (ac_try="$ac_link"

case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_link") 2>&5

ac_status=$?

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); } && { ac_try='./conftest$ac_exeext'

{ (case "(($ac_try" in

*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;

*) ac_try_echo=$ac_try;;

esac

eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""

$as_echo "$ac_try_echo") >&5

(eval "$ac_try") 2>&5

ac_status=$?

$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5

(exit $ac_status); }; }; then

ac_cv_sizeof_signed_char=`cat conftest.val`

else

$as_echo "$as_me: program exited with status $ac_status" >&5

$as_echo "$as_me: failed program was:" >&5

sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )

if test "$ac_cv_type_signed_char" = yes; then

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5

$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}

{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)

See \`config.log' for more details." >&5

$as_echo "$as_me: error: cannot compute sizeof (signed char)

See \`config.log' for more details." >&2;}

{ (exit 77); exit 77; }; }; }

else

ac_cv_sizeof_signed_char=0

fi

fi

rm -rf conftest.dSYM

rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext

fi

rm -f conftest.val

fi

{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5

$as_echo "$ac_cv_sizeof_signed_char" >&6; }

cat >>confdefs.h <<_ACEOF

#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char

_ACEOF

Conclusion c'est du langage c et il y a un probl

Lien vers le commentaire
Partager sur d’autres sites

tu pourrais peut-être essayer de le cross compiler...

Ok alors c'est parti... j'essaye de compiler sysinfo comme dans l'exemple de la documentation officielle.

La compilation de sysinfo est ok...

DS207> ./sysinfo

Total RAM: 129884160

Free RAM: 13361152

Maintenant je me lance dans la cross compilation de pdf2swf :

root@ubuntu:/usr/local/arm-marvell-linux-gnu/sources/swftools-0.9.0/src# /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc pdf2swf.c -o pdf2swf

pdf2swf.c:28:23: ../config.h: No such file or directory

In file included from pdf2swf.c:40:

../lib/os.h:26:23: ../config.h: No such file or directory

In file included from ../lib/./bitio.h:23,

from ../lib/rfxswf.h:37,

from pdf2swf.c:41:

../lib/./types.h:4:23: ../config.h: No such file or directory

../lib/./types.h:36:2: #error "no way to define 64 bit integer"

../lib/./types.h:39:2: #error "don't know how to define 32 bit integer"

../lib/./types.h:42:2: #error "don't know how to define 16 bit integer"

../lib/./types.h:45:2: #error "don't know how to define 8 bit integer"

pdf2swf.c: In function `args_callback_option':

pdf2swf.c:431: error: `PACKAGE' undeclared (first use in this function)

pdf2swf.c:431: error: (Each undeclared identifier is reported only once

pdf2swf.c:431: error: for each function it appears in.)

pdf2swf.c:431: error: `VERSION' undeclared (first use in this function)

pdf2swf.c: In function `getRate':

pdf2swf.c:527: error: `O_BINARY' undeclared (first use in this function)

pdf2swf.c: In function `main':

pdf2swf.c:831: warning: cast from pointer to integer of different size

pdf2swf.c:832: warning: cast from pointer to integer of different size

C'est triste... je continue...

root@ubuntu:/usr/local/arm-marvell-linux-gnu/sources/swftools-0.9.0# ./configurechecking build system type... Invalid configuration `i686-pc-linux-': machine `i686-pc-linux' not recognized

configure: error: /bin/bash ./config.sub i686-pc-linux- failed

Lien vers le commentaire
Partager sur d’autres sites

root@ubuntu:/usr/local/arm-marvell-linux-gnu/sources/swftools-0.9.0# env CC=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc \

> LD=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld \

> RANLIB=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ranlib \

> CFLAGS="-I/usr/local/arm-marvell-linux-gnu/include" \

> LDFLAGS="-L/usr/local/arm-marvell-linux-gnu/lib" \

> ./configure \

> --host=armle-unknown-linux \

> --target=armle-unknown-linux \

> --build=i686-pc-linux \

> --prefix=/usr/local

checking build system type... i686-pc-linux-gnu

checking host system type... armle-unknown-linux-gnu

checking for armle-unknown-linux-gcc... /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-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... yes

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc accepts -g... yes

checking for /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc option to accept ISO C89... none needed

checking for armle-unknown-linux-g++... no

checking for armle-unknown-linux-c++... no

checking for armle-unknown-linux-gpp... no

checking for armle-unknown-linux-aCC... no

checking for armle-unknown-linux-CC... no

checking for armle-unknown-linux-cxx... no

checking for armle-unknown-linux-cc++... no

checking for armle-unknown-linux-cl.exe... no

checking for armle-unknown-linux-FCC... no

checking for armle-unknown-linux-KCC... no

checking for armle-unknown-linux-RCC... no

checking for armle-unknown-linux-xlC_r... no

checking for armle-unknown-linux-xlC... no

checking for g++... g++

configure: WARNING: using cross tools not prefixed with host triplet

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking whether gcc supports lazy variable declaration... yes

checking how to run the C preprocessor... /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc -E

checking for armle-unknown-linux-ranlib... /usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ranlib

checking whether make sets $(MAKE)... yes

checking for a BSD-compatible install... /usr/bin/install -c

checking whether ln -s works... yes

checking for gzip... gzip

checking host system type... (cached) armle-unknown-linux-gnu

checking for target system...

checking for sin in -lm... yes

checking for deflate in -lz... yes

checking for jpeg_write_raw_data in -ljpeg... yes

checking for DGifOpen in -lungif... no

checking for DGifOpen in -lgif... no

checking for byte order... we are cross compiling- trying to guess from system type

checking target system type... armle-unknown-linux-gnu

checking for byte order, try 2... unknown

Byte order could not determined.

root@ubuntu:/usr/local/arm-marvell-linux-gnu/sources/swftools-0.9.0#

Je ne sais plus quoi faire exactement là, quelqu'un à une idée?

Lien vers le commentaire
Partager sur d’autres sites

  • 1 mois après...

env CC=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc LD=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld RANLIB=/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ranlib CFLAGS="-I/usr/local/arm-marvell-linux-gnu/include" LDFLAGS="-L/usr/local/arm-marvell-linux-gnu/lib" LITTLEENDIAN=1 ./configure --host=armle-unknown-linux --target=armle-unknown-linux --build=i686-pc-linux --prefix=/usr/local

- Afficher le texte des messages pr

Lien vers le commentaire
Partager sur d’autres sites

  • 1 mois après...

Voici mon problème lors de la cross compilation, j'ai un message d'erreur:

The following headers/libraries are missing: ungif freetype gif_lib.h
Pour essayer de résoudre ce problème, j'ai essayé d'installer "freetype". J'ai fait un ipkg install freetype. Mais il me manque toujours cette librairie : gif_lib.h J'ai effectué une recherche :
# find / -name 'gif_lib*' -print

Aucun résultat.

Est ce quelqu'un à une idée?

Lien vers le commentaire
Partager sur d’autres sites

  • 4 ans après...

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.