首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"jpeglib.h:在OPENBSD中没有这样的文件或目录“ghostscript端口

"jpeglib.h:在OPENBSD中没有这样的文件或目录“ghostscript端口
EN

Stack Overflow用户
提问于 2010-05-13 05:58:37
回答 2查看 5.9K关注 0票数 0

你好,我在openbsd 4.7的端口上编译ghostscript时遇到了一个问题。

所以我已经安装了jpeg-7,我有最新的obd4.7端口树。

代码语言:javascript
复制
===>  Building for ghostscript-8.63p11
mkdir -p /usr/ports/pobj/ghostscript-8.63p11/ghostscript-8.63/obj
gmake LDFLAGS='-L/usr/local/lib -shared' GS_XE=./obj/../obj/libgs.so.11.0 STDIO_IMPLEMENTATION=c DISPLAY_DEV=./obj/../obj/display.dev BINDIR=./obj/../obj GLGENDIR=./obj/../obj GLOBJDIR=./obj/../obj PSGENDIR=./obj/../obj PSOBJDIR=./obj/../obj CFLAGS='-O2 -fno-reorder-blocks -fno-reorder-functions -fomit-frame-pointer -march=i386 -fPIC -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/8.63\"' prefix=/usr/local ./obj/../obj/gsc 
gmake[1]: Entering directory `/usr/ports/pobj/ghostscript-8.63p11/ghostscript-8.63'
cc -I./obj/../obj -I./src   -DHAVE_MKSTEMP -O2 -fno-reorder-blocks -fno-reorder-functions -fomit-frame-pointer -march=i386 -fPIC -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/8.63\" -DGX_COLOR_INDEX_TYPE='unsigned long long' -o ./obj/../obj/sdctc.o -c ./src/sdctc.c
In file included from src/sdctc.c:17:
obj/jpeglib_.h:1:21: jpeglib.h: No such file or directory
In file included from src/sdctc.c:19:
src/sdct.h:58: error: field `err' has incomplete type
src/sdct.h:70: error: field `err' has incomplete type
src/sdct.h:72: error: field `cinfo' has incomplete type
src/sdct.h:73: error: field `destination' has incomplete type
src/sdct.h:84: error: field `err' has incomplete type
src/sdct.h:87: error: field `dinfo' has incomplete type
src/sdct.h:88: error: field `source' has incomplete type
gmake[1]: *** [obj/../obj/sdctc.o] Error 1
gmake[1]: Leaving directory `/usr/ports/pobj/ghostscript-8.63p11/ghostscript-8.63'
gmake: *** [so] Error 2
*** Error code 2

Stop in /usr/ports/print/ghostscript/gnu (line 2225 of /usr/ports/infrastructure/mk/bsd.port.mk).

我试着在Makefile的CFLAGS中再加一个参数,值为"-I/usr/local“,但没有运气=(人们在irc freenode服务器上,#openbsd通道拒绝为端口提供任何帮助,甚至更多-因为这是4.7不稳定版本。

我有我的理由使用这个版本和端口相信我=)

代码语言:javascript
复制
CFLAGS+=        -DSYS_TYPES_HAS_STDINT_TYPES    \   
                -I${LOCALBASE}/include          \
                -I${LOCALBASE}/include/ijs      \
                -I${LOCALBASE}/include/libpng   \
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-05-14 01:07:08

好吧,没关系,我刚刚重新编译了整个用户空间,现在它是ok=)

票数 1
EN

Stack Overflow用户

发布于 2010-05-13 07:21:02

您可以使用find找到jpeglib.h的位置

代码语言:javascript
复制
find / -name jpeglib.h

一旦知道它所在的路径,就可以添加正确的-I标志。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2823059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档