Wednesday, March 23, 2011

Alchemy + libjpeg

It's such a mess!!!!
This error never goes away:

error: jpeglib.h: No such file or directory




1) gcc jpeg_sample_linker.c -O3 -L/usr/local/lib -L../jpeg-8c -ljpeg -swc jpeg_sample_linker.swc
prompts for missing jpeglib.h

2) gcc -c jpeg_sample_linker.c -swc jpeg_sample_linker.swc
prompts for missing jpeglib.h (of course) 


3) gcc -c jpeg_sample.c -ljpeg -swc jpeg_simple_linker.swc 
prompts for missing jpeglib.h, too

4) gcc -Wall -Ijpeg-8c -swc -O3 jpeg_sample_linker.c -o jpeg_sample_linker.swc -Ljpeg-8c -ljpeg -L
prompts for the same missing jpeglib.h error!


WHAT THE FUCK ?

No comments:

Post a Comment