-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed installation on MacOS 10.14.5 #2
Comments
Hi @ezadEzanee this looks like a simple problem. The compiler can not link against X11
i do not have a mac os to test this on, but i'll try to get back to you as soon as possible. did you look on stackoverflow for -lX11 issue with osx? i found this thread that seems to solve the problem at least for one user |
Hi @mherkazandjian , I have resolved the error above. After running the install command again, I'm faced with another error.
I have libomp and llvm installed in my environment. Are you running openmp? I see some lines commented out in screenshot.c and setup.py. I tried removing gomp from the library and the installation managed to proceed however tox output shows the following | => tox |
hi @ezadEzanee i also had been having trouble with the venv thing with tox. i decided to ditch it. |
has this been fixed yet? I am having this issue when trying to install on: |
Hi, the following is the error output when running pip3 install fastgrab
MacOS 10.14.5
Python 3.7.3
Numpy 1.16.4
XQuartz 2.7.11 (xorg-server 1.18.4)
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Failed building wheel for fastgrab
Running setup.py clean for fastgrab
Failed to build fastgrab
Installing collected packages: fastgrab
Running setup.py install for fastgrab ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-record-c128id6t/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/init.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/screenshot.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
running build_ext
building 'fastgrab._linux_x11' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/fastgrab
creating build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c fastgrab/linux_x11/screenshot.c -o build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11/screenshot.o -fno-strict-aliasing -std=c11 -mtune=native
fastgrab/linux_x11/screenshot.c:16:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:16:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:20:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
fastgrab/linux_x11/screenshot.c:32:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:32:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:34:11: warning: implicit declaration of function 'XGetImage' is invalid in C99 [-Wimplicit-function-declaration]
img = XGetImage(display,
^
fastgrab/linux_x11/screenshot.c:34:9: warning: incompatible integer to pointer conversion assigning to 'XImage *' (aka 'struct _XImage *') from 'int' [-Wint-conversion]
img = XGetImage(display,
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:53:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
fastgrab/linux_x11/screenshot.c:78:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:78:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:79:11: warning: implicit declaration of function 'XGetImage' is invalid in C99 [-Wimplicit-function-declaration]
img = XGetImage(display,
^
fastgrab/linux_x11/screenshot.c:79:9: warning: incompatible integer to pointer conversion assigning to 'XImage *' (aka 'struct _XImage *') from 'int' [-Wint-conversion]
img = XGetImage(display,
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:85:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
13 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11/screenshot.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lX11 -lgomp -o build/lib.macosx-10.14-x86_64-3.7/fastgrab/_linux_x11.cpython-37m-darwin.so
ld: library not found for -lX11
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-record-c128id6t/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/
The text was updated successfully, but these errors were encountered: