Installing Qt and PySide on Angstrom
I tryed to install PySide for interface development in Qt. I got it to work on my Arch box, but after several attempts to install it on Angstrom running on a BeagleBone Black rev. A5
Using various means for installation, such as:
easy_install pyside pip install pyside
and building it from source.
Everytime i attempt to install i receive the same output
-- The C compiler identification is GNU 4.7.3 -- The CXX compiler identification is GNU 4.7.3 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- 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 Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:591 ( MESSAGE): /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib" but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Call Stack (most recent call first): CMakeLists.txt:9 (find_package) -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Could NOT find Qt4 (missing: QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (found suitable version "4.8.1", required is "4.5. 0") -- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.3", required is "2.6") -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) (Required is at least version "2.6.32") -- Could NOT find LibXslt (missing: LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR) (Required is at least version "1.1.19") Qt QTGUI library not found. Qt QTXML library not found. Qt QTCORE library not found. -- sphinx-build - not found! doc target disabled CMake Warning at CMakeLists.txt:127 (message): Some dependencies were not found, shiboken generator compilation disabled! -- Configuring done -- Generating done -- Build files have been written to: /tmp/easy_install-p37FM6/ PySide-1.2.1/pyside_build/py2.7-qt4.8.1-32bit-release/shiboken [ 2%] Generating qrc_generator.cxx Scanning dependencies of target apiextractor [ 4%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/ apiextractor.cpp.o In file included from /tmp/easy_install-p37FM6/PySide-1.2.1/sources/ shiboken/ApiExtractor/abstractmetalang.h:27:0, from /tmp/easy_install-p37FM6/PySide-1.2.1/sources/shiboken/ApiExtractor/apiextractor.h:28, from /tmp/easy_install-p37FM6/PySide-1.2.1/sources/shiboken/ApiExtractor/apiextractor.cpp:24: /tmp/easy_install-p37FM6/PySide-1.2.1/sources/shiboken/ApiExtractor/ typesystem.h:27:24: fatal error: QtCore/QHash: No such file or directory compilation terminated. make: *** [ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor. cpp.o] Error 1 make: *** [ApiExtractor/CMakeFiles/apiextractor.dir/all] Error 2 make: *** [all] Error 2 error: Setup script exited with error: Error compiling shiboken
As can be seen it has difficulties locating Qt4, which I have installed using:
opkg install qt4-embedded opkg install qt4-tools
So i found the solution to the problem.
Purging Qt and reinstall using with the following did the trick:
opkg update #always a good idea opkg install qt4-x11-free-dev
Furthermore the following must be installed as well
opkg install libxslt-dev opkg install libqtxml-dev opkg install libqtcore-dev opkg install libqtgui-dev
opkg install python-pip python-setuptools python-smbus pip install pyside
And now we can start programming.