Help! Compile JPGLIB for ARM

Guest #1172158
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.
Guest #1172159
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.
Guest #1172160
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?
Guest #1172161
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.
Guest #1172162
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.