swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Porting SWFTools (PDF2SWF) to Java


From: Pablo Beltran
Subject: Re: [Swftools-common] Porting SWFTools (PDF2SWF) to Java
Date: Sun, 16 Dec 2012 01:17:22 +0100

adding -lfreetype to LDFLAGS fixes the problem. So, now SWFTools is compiled in mips. Wow!
Go ahead with Java...


2012/12/16 Pablo Beltran <address@hidden>
Maybe someone can point me in the right way... this seems the latest step in order to configure SFWTools with mips. FreeType2 is apparently well configured, but the test fails:

configure:5945: checking whether we can compile the freetype test program
freetype.m4:71: mips-unknown-elf-gcc -I/home/pablo/freetype-2.4.10/include -O3 -mmemcpy -ffunction-sections -fdata-sections -falign-functions=512 -fno-rename-registers -fno-schedule-insns -fno-delayed-branch -freduce-all-givs  -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer -I/home/pablo/freetype-2.4.10/include -I/home/pablo/jpeg-6b -I/home/pablo/zlib-1.2.7 -O3 -mmemcpy -ffunction-sections -fdata-sections -falign-functions=512 -fno-rename-registers -fno-schedule-insns -fno-delayed-branch -freduce-all-givs conftest.c -L/home/pablo/freetype-2.4.10/objs/.libs -L/home/pablo/jpeg-6b -L/home/pablo/zlib-1.2.7 -march=mips1 --static -Wl,--gc-sections -L/usr/local/lib -ljpeg -lz -lm   -o conftest
/tmp/ccgMEiDX.o(.text.main+0xc): In function `main':
: undefined reference to `FT_Init_FreeType'
/tmp/ccgMEiDX.o(.text.main+0x24): In function `main':
: undefined reference to `FT_New_Face'
/tmp/ccgMEiDX.o(.text.main+0x40): In function `main':
: undefined reference to `FT_Get_Postscript_Name'
/tmp/ccgMEiDX.o(.text.main+0x4c): In function `main':
: undefined reference to `FT_Get_Char_Index'
/tmp/ccgMEiDX.o(.text.main+0x58): In function `main':
: undefined reference to `FT_Get_First_Char'
/tmp/ccgMEiDX.o(.text.main+0x68): In function `main':
: undefined reference to `FT_Get_Next_Char'
/tmp/ccgMEiDX.o(.text.main+0x90): In function `main':
: undefined reference to `FT_Load_Glyph'
/tmp/ccgMEiDX.o(.text.main+0xa4): In function `main':
: undefined reference to `FT_Get_Glyph'
/tmp/ccgMEiDX.o(.text.main+0xb4): In function `main':
: undefined reference to `FT_Glyph_Get_CBox'
/tmp/ccgMEiDX.o(.text.main+0xc0): In function `main':
: undefined reference to `FT_Done_Glyph'
/tmp/ccgMEiDX.o(.text.main+0xcc): In function `main':
: undefined reference to `FT_Done_Face'
/tmp/ccgMEiDX.o(.text.main+0xd8): In function `main':
: undefined reference to `FT_Done_FreeType'
/tmp/ccgMEiDX.o(.text.main+0xf8): In function `main':
: undefined reference to `FT_Get_Glyph_Name'
collect2: ld returned 1 exit status
configure: failed program was:

Many thanks,
Pablo


2012/12/15 Pablo Beltran <address@hidden>
No weird: Linux Mint 14.

Adding "export" causes syntax error:

address@hidden ~/swftools-0.9.2 $ CC=mips-unknown-elf-gcc \ 
address@hidden ~/swftools-0.9.2 $ CXX=mips-unknown-elf-g++ \ 
address@hidden ~/swftools-0.9.2 $ export LDFLAGS='-L/home/pablo/zlib-1.2.7' \ 
bash: export: ` ': not a valid identifier
address@hidden ~/swftools-0.9.2 $ export CPPFLAGS='-I/home/pablo/zlib-1.2.7' \ 
bash: export: ` ': not a valid identifier
address@hidden ~/swftools-0.9.2 $ ./configure --host=mips-unknown-elf 

Are you trying to port it to Java too? I would say I'm very close to success and really curious about the final result.

Pablo.


2012/12/15 Matthias Kramm <address@hidden>
On Sat, Dec 15, 2012 at 02:00:55PM +0100, Pablo Beltran <address@hidden> wrote:
> *LDFLAGS='-L/home/pablo/zlib-1.2.7'* \
> CPPFLAGS='-I/home/pablo/zlib-1.2.7' \
>
> Nevertheless, they seem be ignored by the ./configure command according to
> the config.log (line 306):
>
> *LDFLAGS=' -L/usr/local/lib'*

Weird. For me this works.
Are you on some weird shell that doesn't support the "A=B command"
syntax?

Do things change if you try the following commands?

export LDFLAGS='-L/home/pablo/zlib-1.2.7'
export CPPFLAGS='-I/home/pablo/zlib-1.2.7'
./configure

Matthias

---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an existing subscription, please kindly point your favourite web browser at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]