Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
117 user(s) are online (106 user(s) are browsing Forums)

Members: 1
Guests: 116

emeck, more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Where i can found jasper.h file ?
Just can't stay away
Just can't stay away


See User information
@samo79

It compiled very quickly and easily.

http://dl.dropbox.com/u/26599983/libjasper.7z

I haven't done any testing with it so report how it works.

Go to top
Re: Where i can found jasper.h file ?
Just can't stay away
Just can't stay away


See User information
@Chris

Quote:

You need libjasper. You can build it from the archive you got the header files from, however it need autoconf/automake run over it so, well, good luck with that.

Better to find another copy of the source where somebody has bothered to run autoconf over it already.


You sure about that?

I downloaded the latest source archive from the JasPer website and compiling it was just a matter of running ./configure, modifying the libtool file and then running make.

Go to top
Re: Where i can found jasper.h file ?
Amigans Defender
Amigans Defender


See User information
@salass00

Ah, ok, I only had a quick look at the archive contents, and couldn't see configure. However I didn't wait for it all to download, so my archive listing may well have been incomplete.

Go to top
Re: Where i can found jasper.h file ?
Home away from home
Home away from home


See User information
@salass00

There is a problem linking, here my shell output

Quote:
Processo: Shell 7
7.AmigaOS4:> Work:SDK/Progetti/DCRaw/
7.Work:SDK/Progetti/DCRaw> make
ppc-amigaos-gcc -mcrt=newlib -O2 -g -Wall -ljasper -c -o dcraw.o dcraw.c
dcraw.c: In function 'parse_makernote':
dcraw.c:4531: warning: pointer targets in passing argument 1 of 'my_memmem' differ in signedness
ppc-amigaos-gcc: -ljasper: linker input file unused because linking not done
ppc-amigaos-gcc -mcrt=newlib -O2 -g -Wall -ljasper -c -o swab.o swab.c
ppc-amigaos-gcc: -ljasper: linker input file unused because linking not done
ppc-amigaos-gcc -mcrt=newlib -use-static -o dcraw.debug dcraw.o swab.o -llcms -ljpeg -lm
dcraw.o: In function `redcine_load_raw':
/Work/SDK/Progetti/DCRaw/dcraw.c:2669: undefined reference to `jas_init'
/Work/SDK/Progetti/DCRaw/dcraw.c:2670: undefined reference to `jas_stream_fopen'
/Work/SDK/Progetti/DCRaw/dcraw.c:2671: undefined reference to `jas_stream_seek'
/Work/SDK/Progetti/DCRaw/dcraw.c:2672: undefined reference to `jas_image_decode'
/Work/SDK/Progetti/DCRaw/dcraw.c:2674: undefined reference to `jas_matrix_create'
/Work/SDK/Progetti/DCRaw/dcraw.c:2679: undefined reference to `jas_image_readcmpt'
/Work/SDK/Progetti/DCRaw/dcraw.c:2705: undefined reference to `jas_matrix_destroy'
/Work/SDK/Progetti/DCRaw/dcraw.c:2706: undefined reference to `jas_image_destroy'
/Work/SDK/Progetti/DCRaw/dcraw.c:2707: undefined reference to `jas_stream_close'
make: *** [dcraw.debug] Error 1
7.Work:SDK/Progetti/DCRaw>


And this is my makefile:

Quote:
CC := ppc-amigaos-gcc -mcrt=newlib
STRIP := ppc-amigaos-strip -R.comment
RM := rm -f

CFLAGS := -O2 -g -Wall -ljasper
LINK := -use-static
LIBS := -llcms -ljpeg -lm

OBJS := dcraw.o swab.o
TARGET := dcraw

$(TARGET): $(TARGET).debug
$(STRIP) -o $@ $<

$(TARGET).debug: $(OBJS)
$(CC) $(LINK) -o $@ $^ $(LIBS)

clean:
$(RM) $(TARGET).debug $(OBJS)

Go to top
Re: Where i can found jasper.h file ?
Just can't stay away
Just can't stay away


See User information
@samo79

You should add link libraries to the LIBS variable not CFLAGS.

Change:
LIBS := -llcms -ljpeg -lm

to:
LIBS := -llcms -ljasper -ljpeg -lm

Go to top
Re: Where i can found jasper.h file ?
Home away from home
Home away from home


See User information
@salass00

Great, now it compile

Quote:
Processo: Shell 5
5.AmigaOS4:> Work:SDK/Progetti/DCRaw/
5.Work:SDK/Progetti/DCRaw> make
ppc-amigaos-gcc -mcrt=newlib -O2 -g -Wall -c -o dcraw.o dcraw.c
dcraw.c: In function 'parse_makernote':
dcraw.c:4531: warning: pointer targets in passing argument 1 of 'my_memmem' differ in signedness
ppc-amigaos-gcc -mcrt=newlib -O2 -g -Wall -c -o swab.o swab.c
ppc-amigaos-gcc -mcrt=newlib -use-static -o dcraw.debug dcraw.o swab.o -llcms -ljasper -ljpeg -lm
ppc-amigaos-strip -R.comment -o dcraw dcraw.debug
5.Work:SDK/Progetti/DCRaw>


Just annoyed with this latest warning in argument but atleast it doesn't create any problem, so i think i'm ready to release

THANKS mate !

Go to top
Re: Where i can found jasper.h file ?
Home away from home
Home away from home


See User information
New version released (with LibJasper enabled)




Go to top
Re: Where i can found jasper.h file ?
Home away from home
Home away from home


See User information
@samo79
Quote:

ppc-amigaos-gcc -mcrt=newlib -use-static -o dcraw.debug dcraw.o swab.o -llcms -ljasper -ljpeg -lm


Just in case and for future help : should be just "-static", without "use". Yeah, can sounds a bit unlogical, because when you want static version you write just "-static", but when want shared one, you write "-use-dynld".

Anyway, when you remove "-use-dynld", it can build static version by default, but it will be not fully static, if your SDK have any .so of those libxxxx.a (then, compiler will add .so even if you not have -use-dynld).

So, to summorise, should be "-static" only, and recheck all the time your binary in end (just to be sure that there is no surpises).

A bit annoing of course, but users will happy with results :)


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Where i can found jasper.h file ?
Home away from home
Home away from home


See User information
@kas1e

Ok, tip received

Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project