EmbDev.net

Forum: ARM programming with GCC/GNU tools Help! Compile JPGLIB for ARM


von Sla (Guest)


Rate this post
useful
not useful
How compile free "jpglib" for AT91 ?

If compile this, error - 'undefined reference'.

Think need jpglib for ARM CPU.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sla wrote:
> How compile free "jpglib" for AT91 ?
>
> If compile this, error - 'undefined reference'.
>
> Think need jpglib for ARM CPU.

Not enough information. Paste the complete output from "make all" not
just two words from an error message.

von Sla (Guest)


Rate this post
useful
not useful
Martin Thomas wrote:
> Sla wrote:
>> How compile free "jpglib" for AT91 ?
>>
>> If compile this, error - 'undefined reference'.
>>
>> Think need jpglib for ARM CPU.
>
> Not enough information. Paste the complete output from "make all" not
> just two words from an error message.

Hi Martin!

In this project we record of the text information (OSD) in jpg file as
in the camera :
"DATA 00-00-00
 TIME 00:00:00"

For this we apply decoding jpg file using free library "jpglib".
All works in C/C++ projects , but there is a problem in translation of
the project in WinARM.

Look a screenshot
http://www.meta-ru.ru/err.jpg

- I made zero function with a call from jpglib, and this give error "
undefined reference ".

How correct this problem ?

( Sorry my English ).

Sla.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sla wrote:
> Martin Thomas wrote:
>> Sla wrote:
>>> How compile free "jpglib" for AT91 ?
>>>
>>> If compile this, error - 'undefined reference'.
>>>
>>> Think need jpglib for ARM CPU.
>>
>> Not enough information. Paste the complete output from "make all" not
>> just two words from an error message.
>
> Hi Martin!
>
> In this project we record of the text information (OSD) in jpg file as
> in the camera :
> "DATA 00-00-00
>  TIME 00:00:00"
>
> For this we apply decoding jpg file using free library "jpglib".
> All works in C/C++ projects , but there is a problem in translation of
> the project in WinARM.
>
> Look a screenshot
> http://www.meta-ru.ru/err.jpg
>
> - I made zero function with a call from jpglib, and this give error "
> undefined reference ".
>
> How correct this problem ?
>
> ( Sorry my English ).
>
> Sla.

Is it a "real" library (usualy ends with .a) or a set of files? Did you
compile the library-files? Have you added the names of the generated
object-files to the link-options?
Did you create a library and did you add the options to use the library
to your project's link-options?

von Sla (Guest)


Rate this post
useful
not useful
> Is it a "real" library (usualy ends with .a) or a set of files? Did you
> compile the library-files? Have you added the names of the generated
> object-files to the link-options?
> Did you create a library and did you add the options to use the library
> to your project's link-options?


Is it set of files \jpglib\ *.c *.h *.obj .

How compile libirary-files ?

How add names files to link-options ?

( Sory, many how ;) )

Sla.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sla wrote:
>> Is it a "real" library (usualy ends with .a) or a set of files? Did you
>> compile the library-files? Have you added the names of the generated
>> object-files to the link-options?
>> Did you create a library and did you add the options to use the library
>> to your project's link-options?
>
>
> Is it set of files \jpglib\ *.c *.h *.obj .
>
> How compile libirary-files ?
>
> How add names files to link-options ?
>
> ( Sory, many how ;) )
>
> Sla.

If the library is only available with "ready-made" object-files you may
be out of luck since you need object-code compiled with an arm-elf
targeted gcc cross-compiler to link it with you the object-code from
your user-application. If you have the complete source: add the
source-files (.c) to the source-list, add the path the the header-files
to the include-path list and try to build again. The makefiles from the
examples included in my WinARM-package might serve as examples. You
could also take a look into the efsl-arm examples available from my
page.
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
(latest code  thru the link marked with [T4]). If it works you can later
create a "real" library (a-file) which you can link without recompiling
the jpglib-code every time you rebuild the project.

Martin Thomas

von Sla (Guest)


Rate this post
useful
not useful
Hi Martin!

Yes jpglib it is free library including source files.

I have made as you have advised.

It compiled!

Thanks!!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.