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


2012/12/16 Pablo Beltran <[email protected]>

> 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 <[email protected]>
>
>> No weird: Linux Mint 14.
>>
>> Adding "export" causes syntax error:
>>
>> pablo@linux-mint ~/swftools-0.9.2 $ CC=mips-unknown-elf-gcc \
>> pablo@linux-mint ~/swftools-0.9.2 $ CXX=mips-unknown-elf-g++ \
>> pablo@linux-mint ~/swftools-0.9.2 $ export
>> LDFLAGS='-L/home/pablo/zlib-1.2.7' \
>> *bash: export: ` ': not a valid identifier*
>> pablo@linux-mint ~/swftools-0.9.2 $ export
>> CPPFLAGS='-I/home/pablo/zlib-1.2.7' \
>> *bash: export: ` ': not a valid identifier*
>> pablo@linux-mint ~/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 <[email protected]>
>>
>>> On Sat, Dec 15, 2012 at 02:00:55PM +0100, Pablo Beltran <
>>> [email protected]> 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>
>>>
>>
>>
>
---------------
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