2008-05-15 15:02:24 Any jpeg compressor on uClinux?
Hadi Boulfelfel (FRANCE)
Message: 55865
Hi,
please, is there any JPEG compressor application or source to be build on the uClinux dist?
thank you,
best regards,
Hadi
TranslateQuoteReplyEditDelete
2008-05-15 15:17:03 Re: Any jpeg compressor on uClinux?
Robin Getz (UNITED STATES)
Message: 55867
Hadi:
Have a look:
https://docs.blackfin.uclinux.org/doku.php?id=existing_libraries
search (on that page) for jpeg.
-Robin
QuoteReplyEditDelete
2008-05-15 21:07:42 Re: Any jpeg compressor on uClinux?
Wei Jiang (CHINA)
Message: 55873
you also can see the file "cjpeg.c" in the libjpeg. It's a good example.
QuoteReplyEditDelete
2008-05-20 09:18:23 Re: Any jpeg compressor on uClinux?
Hadi Boulfelfel (FRANCE)
Message: 56049
Thank you Robin, Thank you Wei.
I read the Docs files and now i'm using the included routines in my code but when i build the file , bfin-gcc says :
/tmp/ccyr5inD.o: In function `_WriteIMG':
fcd.c:(.text+0x56a): undefined reference to `_jpeg_std_error'
fcd.c:(.text+0x584): undefined reference to `_jpeg_CreateCompress'
fcd.c:(.text+0x5f2): undefined reference to `_jpeg_stdio_dest'
fcd.c:(.text+0x61e): undefined reference to `_jpeg_set_defaults'
fcd.c:(.text+0x634): undefined reference to `_jpeg_set_quality'
fcd.c:(.text+0x646): undefined reference to `_jpeg_start_compress'
fcd.c:(.text+0x68a): undefined reference to `_jpeg_write_scanlines'
fcd.c:(.text+0x6a6): undefined reference to `_jpeg_finish_compress'
fcd.c:(.text+0x6c0): undefined reference to `_jpeg_destroy_compress'
collect2: ld returned 1 exit status
i Think that they are not included correctly in my code. So can you show me how to do it properly?
(i included just the "jpeglib.h" file)
Thank you,
best regards,
Hadi
TranslateQuoteReplyEditDelete
2008-05-20 09:27:28 Re: Any jpeg compressor on uClinux?
Michael Hennerich (GERMANY)
Message: 56050
You also need to add -ljpeg to your compiler command line.
For an example seee user/jpegview/Makefile.
-Michael
QuoteReplyEditDelete
2008-05-20 09:42:06 Re: Any jpeg compressor on uClinux?
Hadi Boulfelfel (FRANCE)
Message: 56052
Thank you Michael,
you are the developper of that file (fcd.c) , i want to ask another question, please;
when i build the "fcd.c" file I got, more of those messages, the same kind of messages but about the html, cgi and i2c :
/tmp/ccyr5inD.o: In function `_main':
fcd.c:(.text+0x12): undefined reference to `_getRequestMethod'
fcd.c:(.text+0x20): undefined reference to `_getGETvars'
fcd.c:(.text+0x28): undefined reference to `_getPOSTvars'
fcd.c:(.text+0x38): undefined reference to `_getGETvars'
/tmp/ccyr5inD.o: In function `_prg_reg':
fcd.c:(.text+0x1ec): undefined reference to `_htmlHeader'
fcd.c:(.text+0x1f2): undefined reference to `_htmlBody'
fcd.c:(.text+0x21c): undefined reference to `_htmlFooter'
fcd.c:(.text+0x228): undefined reference to `_cleanUp'
fcd.c:(.text+0x262): undefined reference to `_i2c_write_register'
/tmp/ccyr5inD.o: In function `_reset_reg':
fcd.c:(.text+0x284): undefined reference to `_htmlHeader'
fcd.c:(.text+0x28a): undefined reference to `_htmlBody'
fcd.c:(.text+0x29c): undefined reference to `_htmlFooter'
fcd.c:(.text+0x2a8): undefined reference to `_cleanUp'
fcd.c:(.text+0x2d2): undefined reference to `_i2c_write_register'
fcd.c:(.text+0x2ec): undefined reference to `_i2c_write_register'
/tmp/ccyr5inD.o: In function `_capture':
fcd.c:(.text+0x3ba): undefined reference to `_htmlHeader'
fcd.c:(.text+0x3c0): undefined reference to `_htmlBody'
fcd.c:(.text+0x3dc): undefined reference to `_htmlFooter'
fcd.c:(.text+0x3e8): undefined reference to `_cleanUp'
fcd.c:(.text+0x446): undefined reference to `_htmlHeaderNocache'
fcd.c:(.text+0x44c): undefined reference to `_htmlBody'
fcd.c:(.text+0x48a): undefined reference to `_htmlFooter'
fcd.c:(.text+0x4a6): undefined reference to `_cleanUp'
so becausei could not fixe that I built the whole Kernel and waiting about 15min just for the fcd.c file
could you give me any suggestion to fixe that (may be in the make file) so i could build the fcd.c lonely?
thank you again
TranslateQuoteReplyEditDelete
2008-05-20 10:05:33 Re: Any jpeg compressor on uClinux?
Robin Getz (UNITED STATES)
Message: 56054
Hadi:
Have a look at:
https://docs.blackfin.uclinux.org/doku.php?id=target_selection
-Robin
QuoteReplyEditDelete
2008-05-20 10:23:25 Re: Any jpeg compressor on uClinux?
Michael Hennerich (GERMANY)
Message: 56055
I don't know how you build.
at least I only need to enable:
[*] CGI based Test Application for the PPI Frame Capture Driver
and then run make.
You can also run make user_only
-Michael
QuoteReplyEditDelete
2008-05-20 11:00:10 Re: Any jpeg compressor on uClinux?
Hadi Boulfelfel (FRANCE)
Message: 56059
Thank you,
I did (after adding -ljpeg to the complier command line in the makefile under 'user/blkfin-apps/ppifcd-cgi/src'):
make user/blkfin-apps/ppifcd-cgi_only
and I got:
make[1]: Entering directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user'
touch blkfin-apps/ppifcd-cgi/.sgbuilt_user && make -j1 -C blkfin-apps/ppifcd-cgi
make[2]: Entering directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi'
for i in thttpd src ; do make -C $i || exit ; done
make[3]: Entering directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi/thttpd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi/thttpd'
make[3]: Entering directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi/src'
bfin-uclinux-gcc -Wl,-elf2flt -mcpu=bf537-0.2 -o fcd.cgi fcd.o cgivars.o htmllib.o i2c.o -ljpeg -lm
/opt/uClinux/bfin-uclinux/lib/gcc/bfin-uclinux/4.1.2/../../../../bfin-uclinux/bin/ld.real: cannot find -ljpeg
collect2: ld returned 1 exit status
make[3]: *** [fcd.cgi] Error 1
make[3]: Leaving directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user/blkfin-apps/ppifcd-cgi'
make[1]: *** [blkfin-apps/ppifcd-cgi_only] Error 2
make[1]: Leaving directory `/opt/uClinux/uClinux-dist-2008R1-RC8/user'
make: *** [user/blkfin-apps/ppifcd-cgi_only] Error 2
linux-SUSE:/opt/uClinux/uClinux-dist-2008R1-RC8 #
It cannot find -ljpeg
Help, please?
TranslateQuoteReplyEditDelete
2008-05-20 11:56:16 Re: Any jpeg compressor on uClinux?
Hadi Boulfelfel (FRANCE)
Message: 56061
Every thing is ok! just building the jpeglib before the application
Thank you again,
Best regards,
Hadi