开发者

Compiling libJPEG with Alchemy (-swc)

开发者 https://www.devze.com 2023-02-19 14:48 出处:网络
I have tried for a few days to compile -swc with -ljpeg but have not had any luck. Here is what i have been doing.

I have tried for a few days to compile -swc with -ljpeg but have not had any luck. Here is what i have been doing. in my jpeg_sample_linker.c, it has two headers

#include "AS3.h"
#include <jpeglib.h> //or #include "jpeglib.h"

and the rest of the file is pretty much empty but compilable(because all i want to do is to compile the file with the headers first).

And my gcc comma开发者_StackOverflownd is:

alc-on
gcc -swc -ljpeg jpeg_sample_linker.c -o jpeg_sample_linker.swc 
alc-off

And, gcc keeps on saying it cannot locate libjpeg.h i have also tried

alc-on
gcc -swc  -I/usr/local/include -L/usr/local/lib -ljpeg jpeg_sample_linker.c -o jpeg_sample_linker.swc 
alc-off

It still reported the same error "error: jpeglib.h: No such file or directory".

May i know how i could fix this compilation error?

Billion thanks G


What a bummmer,

the compilation can be solved by editing gcc in /Library/alchemy-darwin-v0.5a/achacks
or
moving everything in /usr/local/lib and /usr/local/include to 
to $ALCHEMY_HOME/usr/local/include and $ALCHEMY_HOME/usr/local/lib

!

0

精彩评论

暂无评论...
验证码 换一张
取 消