EmbDev.net

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


Author: Sla (Guest)
Posted on:

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

If compile this, error - 'undefined reference'.

Think need jpglib for ARM CPU.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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.

Author: Sla (Guest)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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?

Author: Sla (Guest)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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...
(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

Author: Sla (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi Martin!

Yes jpglib it is free library including source files.

I have made as you have advised.

It compiled!

Thanks!!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.