首页 > python autopy_安装python autopy时出错

python autopy_安装python autopy时出错

嘿,我已经看过了一个老问题,但它不能回答我的问题

我已经安装了libpng,然后尝试安装autopy并得到complie错误。在

我对python还不是很在行,所以我不确定如何修复它们。在Ashley:~ ashleyhughes$ sudo easy_install autopy

Searching for autopy

Reading http://pypi.python.org/simple/autopy/

Reading http://www.autopy.org

Best match: autopy 0.51

Downloading http://pypi.python.org/packages/source/a/autopy/autopy-0.51.tar.gz#md5=b92055aa2a3712a9c3b4c874014b450e

Processing autopy-0.51.tar.gz

Running autopy-0.51/setup.py -q bdist_egg --dist-dir /tmp/easy_install-U9uWoj/autopy-0.51/egg-dist-tmp-hdjtIx

clang: warning: argument unused during compilation: '-mno-fused-madd'

clang: warning: argument unused during compilation: '-mno-fused-madd'

clang: warning: argument unused during compilation: '-mno-fused-madd'

clang: warning: argument unused during compilation: '-mno-fused-madd'

clang: warning: argument unused during compilation: '-mno-fused-madd'

src/screengrab.c:48:26: warning: implicit declaration of function

'CGDisplayBitsPerPixel' is invalid in C99

[-Wimplicit-function-declaration]

bitsPerPixel = (uint8_t)CGDisplayBitsPerPixel(displayID);

^

src/screengrab.c:191:2: warning: 'CGLSetFullScreen' is deprecated

[-Wdeprecated-declarations]

CGLSetFullScreen(glContext);

^

src/screengrab.c:194:2: warning: implicit declaration of function 'glReadBuffer'

is invalid in C99 [-Wimplicit-function-declaration]

glReadBuffer(GL_FRONT);

^

src/screengrab.c:194:15: error: use of undeclared identifier 'GL_FRONT'

glReadBuffer(GL_FRONT);

^

src/screengrab.c:197:2: warning: implicit declaration of function 'glFinish' is

invalid in C99 [-Wimplicit-function-declaration]

glFinish();

^

src/screengrab.c:199:6: warning: implicit declaration of function 'glGetError'

is invalid in C99 [-Wimplicit-function-declaration]

if (glGetError() != GL_NO_ERROR) return NULL;

^

src/screengrab.c:199:22: error: use of undeclared identifier 'GL_NO_ERROR'

if (glGetError() != GL_NO_ERROR) return NULL;

^

src/screengrab.c:207:2: warning: implicit declaration of function

'glPopClientAttrib' is invalid in C99 [-Wimplicit-function-declaration]

glPopClientAttrib(); /* Clear attributes previously set. */

^

src/screengrab.c:223:2: warning: implicit declaration of function

'glPushClientAttrib' is invalid in C99 [-Wimplicit-function-declaration]

glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);

^

src/screengrab.c:223:21: error: use of undeclared identifier

'GL_CLIENT_PIXEL_STORE_BIT'

glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);

^

src/screengrab.c:225:2: warning: implicit declaration of function

'glPixelStorei' is invalid in C99 [-Wimplicit-function-declaration]

glPixelStorei(GL_PACK_ALIGNMENT, BYTE_ALIGN); /* Force alignment. */

^

src/screengrab.c:225:16: error: use of undeclared identifier 'GL_PACK_ALIGNMENT'

glPixelStorei(GL_PACK_ALIGNMENT, BYTE_ALIGN); /* Force alignment. */

^

src/screengrab.c:226:16: error: use of undeclared identifier

'GL_PACK_ROW_LENGTH'

glPixelStorei(GL_PACK_ROW_LENGTH, 0);

^

src/screengrab.c:227:16: error: use of undeclared identifier 'GL_PACK_SKIP_ROWS'

glPixelStorei(GL_PACK_SKIP_ROWS, 0);

^

src/screengrab.c:228:16: error: use of undeclared identifier

'GL_PACK_SKIP_PIXELS'

glPixelStorei(GL_PACK_SKIP_PIXELS, 0);

^

src/screengrab.c:235:2: warning: implicit declaration of function 'glReadPixels'

is invalid in C99 [-Wimplicit-function-declaration]

glReadPixels(x, y, width, height,

^

src/screengrab.c:236:30: error: use of undeclared identifier 'GL_BGRA'

MMRGB_IS_BGR ? GL_BGRA : GL_RGBA,

^

src/screengrab.c:236:40: error: use of undeclared identifier 'GL_RGBA'

MMRGB_IS_BGR ? GL_BGRA : GL_RGBA,

^

9 warnings and 9 errors generated.

error: Setup script exited with error: command 'clang' failed with exit status 1

谁能帮忙吗。我需要自动检测,因为它能在多个平台上工作

我用过伊桑。提拉-thompson.com/Mac_OS_X_端口.html安装libpng

用命令行工具安装xcode

更多相关:

  • OpenGL所有渲染的结果都输出显示在窗口中,设置OpenCV的图像cv::Mat outimg,并使用OpenGL的glReadPixels从帧缓冲区中加载像素至内存: //use fast 4-byte alignment (default anyway) if possible glPixelStorei(GL_PACK_AL...

  • 在主程序中我们先设置3个采样器名称 pbrShader.use();pbrShader.setInt("irradianceMap", 0);pbrShader.setInt("prefilterMap", 1);pbrShader.setInt("brdfLUT", 2);其中setint是封装函数:void setInt...

  • 操作都是在默认帧缓冲的渲染缓冲上进行的。默认的帧缓冲是在你创建窗口的时候生成和配置的(GLFW帮我们做了这些)。 帧缓存帮助我们离屏渲染,提高渲染速度 unsigned int captureFBO; glGenFramebuffers(1, &captureFBO); glBindFramebuffer(GL_FRAMEBUFF...

  • 为了将坐标从一个坐标系变换到另一个坐标系,我们需要用到几个变换矩阵,最重要的几个分别是模型(Model)、观察(View)、投影(Projection)三个矩阵。我们的顶点坐标起始于局部空间(Local Space),在这里它称为局部坐标(Local Coordinate),它在之后会变为世界坐标(World Coordinate),...

  • 1.前言   2.LwIP makefiles With minimal features C_SOURCES = src/api/err.c src/core/init.c src/core/mem.c src/core/memp.c src/core/netif.c src/core/pbuf.c sr...