adamlwgriffiths / cyglfw3

Cython bindings for GLFW3
Other
20 stars 6 forks source link

Building failed on Ubuntu 15.04 64 bit #16

Closed stuaxo closed 9 years ago

stuaxo commented 9 years ago
python setup.py install
running install
install_dir /mnt/data/home/stu/.virtualenvs/3d/lib/python2.7/site-packages/
running bdist_egg
running egg_info
creating cyglfw3.egg-info
writing requirements to cyglfw3.egg-info/requires.txt
writing cyglfw3.egg-info/PKG-INFO
writing top-level names to cyglfw3.egg-info/top_level.txt
writing dependency_links to cyglfw3.egg-info/dependency_links.txt
writing manifest file 'cyglfw3.egg-info/SOURCES.txt'
reading manifest file 'cyglfw3.egg-info/SOURCES.txt'
writing manifest file 'cyglfw3.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cyglfw3
copying cyglfw3/version.py -> build/lib.linux-x86_64-2.7/cyglfw3
copying cyglfw3/__init__.py -> build/lib.linux-x86_64-2.7/cyglfw3
copying cyglfw3/compatible.py -> build/lib.linux-x86_64-2.7/cyglfw3
copying cyglfw3/glfw3.pyx -> build/lib.linux-x86_64-2.7/cyglfw3
copying cyglfw3/cglfw3.pxd -> build/lib.linux-x86_64-2.7/cyglfw3
running build_ext
building 'cyglfw3.glfw3' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/cyglfw3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cyglfw3/glfw3.c -o build/temp.linux-x86_64-2.7/cyglfw3/glfw3.o -I/usr/local/include -I/opt/local/include -I/opt/local/lib
x86_64-linux-gnu-gcc: error: cyglfw3/glfw3.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
adamlwgriffiths commented 9 years ago

Can you try the command python setup.py build_ext -i from the README and see if that works?

stuaxo commented 9 years ago

Sure, sorry I missed that ... still fails - I guess there's a problem with my setup

$ python setup.py build_ext -i
running build_ext
building 'cyglfw3.glfw3' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cyglfw3/glfw3.c -o build/temp.linux-x86_64-2.7/cyglfw3/glfw3.o -I/usr/local/include -I/opt/local/include -I/opt/local/lib
x86_64-linux-gnu-gcc: error: cyglfw3/glfw3.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
adamlwgriffiths commented 9 years ago

Does it work from pip? pip install cyglfw3? I don't run Ubuntu 15 myself, but it compiles on older releases.

stuaxo commented 9 years ago

Nope, here's what happens in a freshly created virtualenv:

$ pip install cyglfw3
Downloading/unpacking cyglfw3
  Downloading cyglfw3-3.1.0.1.tar.gz (154kB):  18%  28kB 
  Downloading cyglfw3-3.1.0.1.tar.gz (154kB): 154kB downloaded
  Running setup.py (path:/tmp/pip-build-qfJ3qd/cyglfw3/setup.py) egg_info for package cyglfw3
    warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Utility'
    Unable to find pgen, not compiling formal grammar.
    Compiling module Cython.Plex.Scanners ...
    Compiling module Cython.Plex.Actions ...
    Compiling module Cython.Compiler.Lexicon ...
    Compiling module Cython.Compiler.Scanning ...
    Compiling module Cython.Compiler.Parsing ...
    Compiling module Cython.Compiler.Visitor ...
    Compiling module Cython.Compiler.FlowControl ...
    Compiling module Cython.Compiler.Code ...
    Compiling module Cython.Runtime.refnanny ...
    Compiling module Cython.Tempita._tempita ...

    Installed /tmp/pip-build-qfJ3qd/cyglfw3/.eggs/Cython-0.22.1-py2.7-linux-x86_64.egg
    warning: cyglfw3/glfw3.pyx:618:30: Index should be typed for more efficient access
    Compiling cyglfw3/glfw3.pyx because it depends on /tmp/pip-build-qfJ3qd/cyglfw3/.eggs/Cython-0.22.1-py2.7-linux-x86_64.egg/Cython/Includes/libc/string.pxd.
    Cythonizing cyglfw3/glfw3.pyx

Downloading/unpacking Cython (from cyglfw3)
  Downloading Cython-0.22.1.tar.gz (1.6MB): 1.6MB downloaded
  Running setup.py (path:/tmp/pip-build-qfJ3qd/Cython/setup.py) egg_info for package Cython
    Unable to find pgen, not compiling formal grammar.
    Compiling module Cython.Plex.Scanners ...
    Compiling module Cython.Plex.Actions ...
    Compiling module Cython.Compiler.Lexicon ...
    Compiling module Cython.Compiler.Scanning ...
    Compiling module Cython.Compiler.Parsing ...
    Compiling module Cython.Compiler.Visitor ...
    Compiling module Cython.Compiler.FlowControl ...
    Compiling module Cython.Compiler.Code ...
    Compiling module Cython.Runtime.refnanny ...
    Compiling module Cython.Tempita._tempita ...

    warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
    warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Installing collected packages: cyglfw3, Cython
  Running setup.py install for cyglfw3
    building 'cyglfw3.glfw3' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cyglfw3/glfw3.c -o build/temp.linux-x86_64-2.7/cyglfw3/glfw3.o -I/usr/local/include -I/opt/local/include -I/opt/local/lib
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_5width___get__’:
    cyglfw3/glfw3.c:7506:59: error: dereferencing pointer to incomplete type
       __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_this_ptr->width); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                               ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_6height___get__’:
    cyglfw3/glfw3.c:7569:59: error: dereferencing pointer to incomplete type
       __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_this_ptr->height); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                               ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_6pixels_2__set__’:
    cyglfw3/glfw3.c:8210:26: error: dereferencing pointer to incomplete type
       __pyx_v_self->_this_ptr->width = (__pyx_v_data.shape[0]);
                              ^
    cyglfw3/glfw3.c:8219:26: error: dereferencing pointer to incomplete type
       __pyx_v_self->_this_ptr->height = (__pyx_v_data.shape[1]);
                              ^
    cyglfw3/glfw3.c:8283:26: error: dereferencing pointer to incomplete type
       __pyx_v_self->_this_ptr->pixels = (&(*((unsigned char *) ( /* dim=0 */ ((char *) (((unsigned char *) __pyx_t_31.data) + __pyx_t_9)) ))));
                              ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_2__init__’:
    cyglfw3/glfw3.c:8461:65: error: invalid application of ‘sizeof’ to incomplete type ‘struct GLFWimage’
       __pyx_v_self->_this_ptr = ((struct GLFWimage *)malloc((sizeof(struct GLFWimage))));
                                                                     ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_54GetWindowFrameSize’:
    cyglfw3/glfw3.c:11539:3: warning: implicit declaration of function ‘glfwGetWindowFrameSize’ [-Wimplicit-function-declaration]
       glfwGetWindowFrameSize(((struct GLFWwindow *)__pyx_v_window->_this_ptr), (&__pyx_v_left), (&__pyx_v_top), (&__pyx_v_right), (&__pyx_v_bottom));
       ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_84PostEmptyEvent’:
    cyglfw3/glfw3.c:12997:3: warning: implicit declaration of function ‘glfwPostEmptyEvent’ [-Wimplicit-function-declaration]
       glfwPostEmptyEvent();
       ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_98CreateCursor’:
    cyglfw3/glfw3.c:13790:3: warning: implicit declaration of function ‘glfwCreateCursor’ [-Wimplicit-function-declaration]
       __pyx_v_c_cursor = glfwCreateCursor(((struct GLFWimage *)__pyx_v_image->_this_ptr), __pyx_v_xhot, __pyx_v_yhot);
       ^
    cyglfw3/glfw3.c:13790:20: warning: assignment makes pointer from integer without a cast
       __pyx_v_c_cursor = glfwCreateCursor(((struct GLFWimage *)__pyx_v_image->_this_ptr), __pyx_v_xhot, __pyx_v_yhot);
                        ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_100CreateStandardCursor’:
    cyglfw3/glfw3.c:13898:3: warning: implicit declaration of function ‘glfwCreateStandardCursor’ [-Wimplicit-function-declaration]
       __pyx_v_c_cursor = glfwCreateStandardCursor(__pyx_v_shape);
       ^
    cyglfw3/glfw3.c:13898:20: warning: assignment makes pointer from integer without a cast
       __pyx_v_c_cursor = glfwCreateStandardCursor(__pyx_v_shape);
                        ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_102DestroyCursor’:
    cyglfw3/glfw3.c:13995:3: warning: implicit declaration of function ‘glfwDestroyCursor’ [-Wimplicit-function-declaration]
       glfwDestroyCursor(((struct GLFWcursor *)__pyx_v_cursor->_this_ptr));
       ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_104SetCursor’:
    cyglfw3/glfw3.c:14100:3: warning: implicit declaration of function ‘glfwSetCursor’ [-Wimplicit-function-declaration]
       glfwSetCursor(((struct GLFWwindow *)__pyx_v_window->_this_ptr), ((struct GLFWcursor *)__pyx_v_cursor->_this_ptr));
       ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_110SetCharModsCallback’:
    cyglfw3/glfw3.c:14484:3: warning: implicit declaration of function ‘glfwSetCharModsCallback’ [-Wimplicit-function-declaration]
       glfwSetCharModsCallback(((struct GLFWwindow *)__pyx_v_window->_this_ptr), __pyx_f_7cyglfw3_5glfw3_charmodsfun_cb);
       ^
    cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_120SetDropCallback’:
    cyglfw3/glfw3.c:15134:3: warning: implicit declaration of function ‘glfwSetDropCallback’ [-Wimplicit-function-declaration]
       glfwSetDropCallback(((struct GLFWwindow *)__pyx_v_window->_this_ptr), __pyx_f_7cyglfw3_5glfw3_dropfun_cb);
       ^
    cyglfw3/glfw3.c: In function ‘initglfw3’:
    cyglfw3/glfw3.c:32140:36: error: ‘GLFW_AUTO_ICONIFY’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_AUTO_ICONIFY); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32140:36: note: each undeclared identifier is reported only once for each function it appears in
    cyglfw3/glfw3.c:32152:36: error: ‘GLFW_FLOATING’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_FLOATING); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32344:36: error: ‘GLFW_DOUBLEBUFFER’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_DOUBLEBUFFER); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32452:36: error: ‘GLFW_CONTEXT_RELEASE_BEHAVIOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_CONTEXT_RELEASE_BEHAVIOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32632:36: error: ‘GLFW_ANY_RELEASE_BEHAVIOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_ANY_RELEASE_BEHAVIOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32644:36: error: ‘GLFW_RELEASE_BEHAVIOR_FLUSH’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_RELEASE_BEHAVIOR_FLUSH); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32656:36: error: ‘GLFW_RELEASE_BEHAVIOR_NONE’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_RELEASE_BEHAVIOR_NONE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32668:36: error: ‘GLFW_ARROW_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_ARROW_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32680:36: error: ‘GLFW_IBEAM_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_IBEAM_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32692:36: error: ‘GLFW_CROSSHAIR_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_CROSSHAIR_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32704:36: error: ‘GLFW_HAND_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_HAND_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32716:36: error: ‘GLFW_HRESIZE_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_HRESIZE_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32728:36: error: ‘GLFW_VRESIZE_CURSOR’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_VRESIZE_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    cyglfw3/glfw3.c:32764:36: error: ‘GLFW_DONT_CARE’ undeclared (first use in this function)
       __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_DONT_CARE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                        ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /mnt/data/home/stu/.virtualenvs/t/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-qfJ3qd/cyglfw3/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mXTMcv-record/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/data/home/stu/.virtualenvs/t/include/site/python2.7:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/__init__.py -> build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/version.py -> build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/compatible.py -> build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/glfw3.pyx -> build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/cglfw3.pxd -> build/lib.linux-x86_64-2.7/cyglfw3

copying cyglfw3/glfw3.c -> build/lib.linux-x86_64-2.7/cyglfw3

running build_ext

building 'cyglfw3.glfw3' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/cyglfw3

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cyglfw3/glfw3.c -o build/temp.linux-x86_64-2.7/cyglfw3/glfw3.o -I/usr/local/include -I/opt/local/include -I/opt/local/lib

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_5width___get__’:

cyglfw3/glfw3.c:7506:59: error: dereferencing pointer to incomplete type

   __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_this_ptr->width); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                                           ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_6height___get__’:

cyglfw3/glfw3.c:7569:59: error: dereferencing pointer to incomplete type

   __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->_this_ptr->height); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                                           ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_6pixels_2__set__’:

cyglfw3/glfw3.c:8210:26: error: dereferencing pointer to incomplete type

   __pyx_v_self->_this_ptr->width = (__pyx_v_data.shape[0]);

                          ^

cyglfw3/glfw3.c:8219:26: error: dereferencing pointer to incomplete type

   __pyx_v_self->_this_ptr->height = (__pyx_v_data.shape[1]);

                          ^

cyglfw3/glfw3.c:8283:26: error: dereferencing pointer to incomplete type

   __pyx_v_self->_this_ptr->pixels = (&(*((unsigned char *) ( /* dim=0 */ ((char *) (((unsigned char *) __pyx_t_31.data) + __pyx_t_9)) ))));

                          ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_5Image_2__init__’:

cyglfw3/glfw3.c:8461:65: error: invalid application of ‘sizeof’ to incomplete type ‘struct GLFWimage’

   __pyx_v_self->_this_ptr = ((struct GLFWimage *)malloc((sizeof(struct GLFWimage))));

                                                                 ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_54GetWindowFrameSize’:

cyglfw3/glfw3.c:11539:3: warning: implicit declaration of function ‘glfwGetWindowFrameSize’ [-Wimplicit-function-declaration]

   glfwGetWindowFrameSize(((struct GLFWwindow *)__pyx_v_window->_this_ptr), (&__pyx_v_left), (&__pyx_v_top), (&__pyx_v_right), (&__pyx_v_bottom));

   ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_84PostEmptyEvent’:

cyglfw3/glfw3.c:12997:3: warning: implicit declaration of function ‘glfwPostEmptyEvent’ [-Wimplicit-function-declaration]

   glfwPostEmptyEvent();

   ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_98CreateCursor’:

cyglfw3/glfw3.c:13790:3: warning: implicit declaration of function ‘glfwCreateCursor’ [-Wimplicit-function-declaration]

   __pyx_v_c_cursor = glfwCreateCursor(((struct GLFWimage *)__pyx_v_image->_this_ptr), __pyx_v_xhot, __pyx_v_yhot);

   ^

cyglfw3/glfw3.c:13790:20: warning: assignment makes pointer from integer without a cast

   __pyx_v_c_cursor = glfwCreateCursor(((struct GLFWimage *)__pyx_v_image->_this_ptr), __pyx_v_xhot, __pyx_v_yhot);

                    ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_100CreateStandardCursor’:

cyglfw3/glfw3.c:13898:3: warning: implicit declaration of function ‘glfwCreateStandardCursor’ [-Wimplicit-function-declaration]

   __pyx_v_c_cursor = glfwCreateStandardCursor(__pyx_v_shape);

   ^

cyglfw3/glfw3.c:13898:20: warning: assignment makes pointer from integer without a cast

   __pyx_v_c_cursor = glfwCreateStandardCursor(__pyx_v_shape);

                    ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_102DestroyCursor’:

cyglfw3/glfw3.c:13995:3: warning: implicit declaration of function ‘glfwDestroyCursor’ [-Wimplicit-function-declaration]

   glfwDestroyCursor(((struct GLFWcursor *)__pyx_v_cursor->_this_ptr));

   ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_104SetCursor’:

cyglfw3/glfw3.c:14100:3: warning: implicit declaration of function ‘glfwSetCursor’ [-Wimplicit-function-declaration]

   glfwSetCursor(((struct GLFWwindow *)__pyx_v_window->_this_ptr), ((struct GLFWcursor *)__pyx_v_cursor->_this_ptr));

   ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_110SetCharModsCallback’:

cyglfw3/glfw3.c:14484:3: warning: implicit declaration of function ‘glfwSetCharModsCallback’ [-Wimplicit-function-declaration]

   glfwSetCharModsCallback(((struct GLFWwindow *)__pyx_v_window->_this_ptr), __pyx_f_7cyglfw3_5glfw3_charmodsfun_cb);

   ^

cyglfw3/glfw3.c: In function ‘__pyx_pf_7cyglfw3_5glfw3_120SetDropCallback’:

cyglfw3/glfw3.c:15134:3: warning: implicit declaration of function ‘glfwSetDropCallback’ [-Wimplicit-function-declaration]

   glfwSetDropCallback(((struct GLFWwindow *)__pyx_v_window->_this_ptr), __pyx_f_7cyglfw3_5glfw3_dropfun_cb);

   ^

cyglfw3/glfw3.c: In function ‘initglfw3’:

cyglfw3/glfw3.c:32140:36: error: ‘GLFW_AUTO_ICONIFY’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_AUTO_ICONIFY); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32140:36: note: each undeclared identifier is reported only once for each function it appears in

cyglfw3/glfw3.c:32152:36: error: ‘GLFW_FLOATING’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_FLOATING); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32344:36: error: ‘GLFW_DOUBLEBUFFER’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_DOUBLEBUFFER); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32452:36: error: ‘GLFW_CONTEXT_RELEASE_BEHAVIOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_CONTEXT_RELEASE_BEHAVIOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32632:36: error: ‘GLFW_ANY_RELEASE_BEHAVIOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_ANY_RELEASE_BEHAVIOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32644:36: error: ‘GLFW_RELEASE_BEHAVIOR_FLUSH’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_RELEASE_BEHAVIOR_FLUSH); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32656:36: error: ‘GLFW_RELEASE_BEHAVIOR_NONE’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_RELEASE_BEHAVIOR_NONE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32668:36: error: ‘GLFW_ARROW_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_ARROW_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32680:36: error: ‘GLFW_IBEAM_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_IBEAM_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32692:36: error: ‘GLFW_CROSSHAIR_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_CROSSHAIR_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32704:36: error: ‘GLFW_HAND_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_HAND_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32716:36: error: ‘GLFW_HRESIZE_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_HRESIZE_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32728:36: error: ‘GLFW_VRESIZE_CURSOR’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_VRESIZE_CURSOR); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

cyglfw3/glfw3.c:32764:36: error: ‘GLFW_DONT_CARE’ undeclared (first use in this function)

   __pyx_t_1 = __Pyx_PyInt_From_int(GLFW_DONT_CARE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

                                    ^

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /mnt/data/home/stu/.virtualenvs/t/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-qfJ3qd/cyglfw3/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mXTMcv-record/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/data/home/stu/.virtualenvs/t/include/site/python2.7 failed with error code 1 in /tmp/pip-build-qfJ3qd/cyglfw3
Traceback (most recent call last):
  File "/mnt/data/home/stu/.virtualenvs/t/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/mnt/data/home/stu/.virtualenvs/t/local/lib/python2.7/site-packages/pip/__init__.py", line 248, in main
    return command.main(cmd_args)
  File "/mnt/data/home/stu/.virtualenvs/t/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 33: ordinal not in range(128)
adamlwgriffiths commented 9 years ago

Can you check that you're running the latest GLFW (3.1.x)? The code in HEAD requires 3.1. There are tagged versions and releases on GH and PyPi (3.0.4.7) that support previous versions.

stuaxo commented 9 years ago

Thanks, the tagged version worked, if I get time I'll try and install a newer version + re-open this if I have the issue still :)

adamlwgriffiths commented 9 years ago

Cool, glad it worked. It's a shame it doesn't work with the older version. It may be possible to modify the code to handle old versions, I'm not sure.