Last active
December 21, 2015 19:20
-
-
Save andycasey/6353784 to your computer and use it in GitHub Desktop.
phantompy on OSX 10.6.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm on OS X 10.6.8 and I just installed cmake 2.8.11.2. Following the instructions on https://phantompy.readthedocs.org/en/latest/install.html#get-the-code, this is what I got: | |
mrmagoo:build andycasey$ cmake .. | |
-- The C compiler identification is GNU 4.2.1 | |
-- The CXX compiler identification is GNU 4.2.1 | |
-- Checking whether C compiler has -isysroot | |
-- Checking whether C compiler has -isysroot - yes | |
-- Checking whether C compiler supports OSX deployment target flag | |
-- Checking whether C compiler supports OSX deployment target flag - yes | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Checking whether CXX compiler has -isysroot | |
-- Checking whether CXX compiler has -isysroot - yes | |
-- Checking whether CXX compiler supports OSX deployment target flag | |
-- Checking whether CXX compiler supports OSX deployment target flag - yes | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
CMake Error at CMakeLists.txt:34 (MESSAGE): | |
Brew reported an error: | |
. | |
Please resolve this error. | |
mrmagoo:build andycasey$ brew --version | |
0.8.1 | |
**I updated brew (with ``brew update``) to 0.9.4** | |
mrmagoo:build andycasey$ brew --version | |
0.9.4 | |
mrmagoo:build andycasey$ cmake .. | |
CMake Error at CMakeLists.txt:37 (MESSAGE): | |
Brew reported that QT5 is not installed, error: Error: No such keg: | |
/usr/local/Cellar/qt5 | |
-- Configuring incomplete, errors occurred! | |
** Installed Qt5 through brew with ``brew install qt5``** | |
mrmagoo:build andycasey$ brew install qt5 | |
Warning: Your Xcode (3.2.3) is outdated | |
Please install Xcode 3.2.6. | |
Warning: It appears you have MacPorts or Fink installed. | |
Software installed with other package managers causes known problems for | |
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/qt5-5.1.0.snow_leopard.bottle.1.tar.gz | |
######################################################################## 100.0% | |
==> Pouring qt5-5.1.0.snow_leopard.bottle.1.tar.gz | |
==> Caveats | |
We agreed to the Qt opensource license for you. | |
If this is unacceptable you should uninstall. | |
This formula is keg-only: so it was not symlinked into /usr/local. | |
Qt 5 conflicts Qt 4 (which is currently much more widely used). | |
Generally there are no consequences of this for you. If you build your | |
own software and it requires this formula, you'll need to add to your | |
build variables: | |
LDFLAGS: -L/usr/local/opt/qt5/lib | |
CPPFLAGS: -I/usr/local/opt/qt5/include | |
==> Summary | |
/usr/local/Cellar/qt5/5.1.0: 95273 files, 2.8G | |
mrmagoo:build andycasey$ cmake .. | |
-- Release build | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /Users/andycasey/d3/phantompy/build | |
rmagoo:build andycasey$ make | |
Scanning dependencies of target phantompy_automoc | |
[ 4%] Automoc for target phantompy | |
Generating moc_cookiejar.cpp | |
Generating moc_eventprocessor.cpp | |
Generating moc_frame.cpp | |
Generating moc_image.cpp | |
Generating moc_networkmanager.cpp | |
Generating moc_networkmanagerproxy.cpp | |
Generating moc_networktimeout.cpp | |
Generating moc_page.cpp | |
Generating moc_timeout.cpp | |
Generating moc_webelement.cpp | |
Generating moc_webelementcollection.cpp | |
Generating moc_parserrunnable.cpp | |
Generating moc_qobjecthelper.cpp | |
/Users/andycasey/d3/phantompy/lib/qjson/qobjecthelper.h:0: Note: No relevant classes found. No output generated. | |
Generating moc_serializerrunnable.cpp | |
[ 4%] Built target phantompy_automoc | |
Scanning dependencies of target phantompy | |
[ 9%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/parser.cpp.o | |
cc1plus: error: unrecognized command line option "-stdlib=libc++" | |
make[2]: *** [CMakeFiles/phantompy.dir/lib/qjson/parser.cpp.o] Error 1 | |
make[1]: *** [CMakeFiles/phantompy.dir/all] Error 2 | |
make: *** [all] Error 2 | |
mrmagoo:build andycasey$ brew doctor | |
... | |
mrmagoo:build andycasey$ brew tap homebrew/versions | |
... | |
mrmagoo:build andycasey$ brew install gcc47 | |
... an hour later. | |
mrmagoo:build andycasey$ make | |
[ 4%] Automoc for target phantompy | |
[ 4%] Built target phantompy_automoc | |
[ 9%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/parser.cpp.o | |
cc1plus: error: unrecognized command line option "-stdlib=libc++" | |
make[2]: *** [CMakeFiles/phantompy.dir/lib/qjson/parser.cpp.o] Error 1 | |
make[1]: *** [CMakeFiles/phantompy.dir/all] Error 2 | |
make: *** [all] Error 2 | |
**So I commented out line 16 in CMakeLists.txt where it adds the -stdlib=libc++ flag:** | |
mrmagoo:build andycasey$ make | |
[ 4%] Automoc for target phantompy | |
[ 4%] Built target phantompy_automoc | |
[ 9%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/parser.cpp.o | |
[ 13%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/qobjecthelper.cpp.o | |
[ 18%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/json_scanner.cpp.o | |
[ 22%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/json_parser.cc.o | |
[ 27%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/parserrunnable.cpp.o | |
[ 31%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/serializer.cpp.o | |
[ 36%] Building CXX object CMakeFiles/phantompy.dir/lib/qjson/serializerrunnable.cpp.o | |
[ 40%] Building CXX object CMakeFiles/phantompy.dir/lib/phantompy.cpp.o | |
[ 45%] Building CXX object CMakeFiles/phantompy.dir/lib/private/context.cpp.o | |
[ 50%] Building CXX object CMakeFiles/phantompy.dir/lib/private/page.cpp.o | |
[ 54%] Building CXX object CMakeFiles/phantompy.dir/lib/private/frame.cpp.o | |
[ 59%] Building CXX object CMakeFiles/phantompy.dir/lib/private/image.cpp.o | |
[ 63%] Building CXX object CMakeFiles/phantompy.dir/lib/private/webelement.cpp.o | |
[ 68%] Building CXX object CMakeFiles/phantompy.dir/lib/private/webelementcollection.cpp.o | |
[ 72%] Building CXX object CMakeFiles/phantompy.dir/lib/private/cookiejar.cpp.o | |
[ 77%] Building CXX object CMakeFiles/phantompy.dir/lib/private/networkmanager.cpp.o | |
[ 81%] Building CXX object CMakeFiles/phantompy.dir/lib/private/networktimeout.cpp.o | |
[ 86%] Building CXX object CMakeFiles/phantompy.dir/lib/private/networkmanagerproxy.cpp.o | |
[ 90%] Building CXX object CMakeFiles/phantompy.dir/lib/private/timeout.cpp.o | |
[ 95%] Building CXX object CMakeFiles/phantompy.dir/lib/private/eventprocessor.cpp.o | |
[100%] Building CXX object CMakeFiles/phantompy.dir/phantompy_automoc.cpp.o | |
Linking CXX shared library libphantompy.dylib | |
[100%] Built target phantompy | |
mrmagoo:build andycasey$ sudo make install | |
Password: | |
[ 4%] Automoc for target phantompy | |
[ 4%] Built target phantompy_automoc | |
[100%] Built target phantompy | |
Install the project... | |
-- Install configuration: "Release" | |
-- Installing: /usr/lib/libphantompy.0.0.1.dylib | |
-- Installing: /usr/lib/libphantompy.dylib | |
mrmagoo:phantompy andycasey$ ipython | |
Enthought Python Distribution -- www.enthought.com | |
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 0.12.1 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. | |
In [1]: import phantompy | |
phantompy/api.py:246: UserWarning: libphantompy shared library not found or incompatible | |
warnings.warn('libphantompy shared library not found or incompatible') | |
I edited phantompy/api.py to re-raise whatever exception it was suppressing: | |
OSError: dlopen(/usr/lib/libphantompy.dylib, 6): no suitable image found. Did find: | |
/usr/lib/libphantompy.dylib: mach-o, but wrong architecture | |
Because I'm using Enthought 32bit..... Let's try a 64?? bit python: | |
mrmagoo:phantompy andycasey$ python2.6 | |
Python 2.6.8 (unknown, Apr 14 2012, 04:15:37) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import phantompy | |
>>> exit() | |
Ok.. | |
mrmagoo:phantompy andycasey$ pwd | |
/Users/andycasey/d3/phantompy | |
mrmagoo:phantompy andycasey$ python2.6 tests.py | |
2013-08-28 01:59:01.713 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x108119d80 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.752 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bc907c0 of class NSCFDictionary autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.753 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bc70d70 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.754 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bc716e0 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.755 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bcbfb60 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.756 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bcbfc20 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.756 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bcbfbb0 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.757 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x11bcb0c20 of class NSCFArray autoreleased with no pool in place - just leaking | |
2013-08-28 01:59:01.760 Python[42517:60f] *** __NSAutoreleaseNoPool(): Object 0x108134190 of class NSCFArray autoreleased with no pool in place - just leaking | |
Segmentation fault | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment