[PySide] Error during building for beaglebone targhet
Silvio
info.silvio at gmail.com
Tue Jun 10 14:35:23 CEST 2014
My targhet is BeagleBone Black, WITHOUT X11...hence I need Qt video server.
targhet so = debian wheezy
host = debian wheezy
Qt works well without X11, I test it with C/C++ application, I run it in
targhet with "-qws" option.
now I need use Pyside without X11.
I tried to compile, but I receive error.
I show my mod in "setup.py", my "toolchain.cmake" file, and my output.
I mod Setup.py in Pyside in first line
######### I add variable for toolchain ############
cmake_cmd = [
OPTION_CMAKE,
"-DCMAKE_TOOLCHAIN_FILE=/home/silvio/BBB/toolchain.cmake",
"-G", self.make_generator,
"-DQT_QMAKE_EXECUTABLE=%s" % self.qmake_path,
"-DBUILD_TESTS=%s" % self.build_tests,
"-DDISABLE_DOCSTRINGS=True",
"-DCMAKE_BUILD_TYPE=%s" % self.build_type,
"-DCMAKE_INSTALL_PREFIX=%s" % self.install_dir,
module_src_dir
]
####because during built i receive error that ld cannot find -lpython2.7
####hence i force to use target’s “libpython2.7 “
########## I set this variable to force ###########
self.py_library = "/media/rootfs/usr/lib/libpython2.7.so"
if sys.version_info[0] > 2:
cmake_cmd.append("-DPYTHON3_EXECUTABLE=%s" %
self.py_executable)
cmake_cmd.append("-DPYTHON3_INCLUDE_DIR=%s" %
self.py_include_dir)
cmake_cmd.append("-DPYTHON3_LIBRARY=%s" % self.py_library)
if self.build_type.lower() == 'debug':
cmake_cmd.append("-DPYTHON3_DBG_EXECUTABLE=%s" %
self.py_executable)
cmake_cmd.append("-DPYTHON3_DEBUG_LIBRARY=%s" %
self.py_library)
else:
.............bla bla bla....
THIS IS MY TOOLCHIAIN.CMAKE:
# INCLUDE(CMakeForceCompiler)
# CMake toolchain file for building ARM software on OI environment
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR arm)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-g++)
SET(CMAKE_CXX_FLAGS "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon
-mfloat-abi=hard")
SET(CMAKE_STRIP
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-strip)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/arm-linux-gnueabihf
/media/rootfs /media/rootfs/usr)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
THIS IS MY OUTPUT:
python2.7 setup.py bdist_wheel --qmake=/opt/qt-arm/bin/qmake --standalone
Removing /home/silvio/BBB/download/PySide-1.2.2/pyside_package
running bdist_wheel
running build
Python architecture is 32bit
Inserting path "/opt/qt-arm/bin" to environment
Inserting path
"/home/silvio/BBB/download/PySide-1.2.2/pyside_install/py2.7-qt4.8.6-32bit-release/bin"
to environment
==============================
Package version: 1.2.2
Build type: Release
Build tests: False
---
Make path: /usr/bin/make
Make generator: Unix Makefiles
Make jobs:
---
Script directory: /home/silvio/BBB/download/PySide-1.2.2
Sources directory: /home/silvio/BBB/download/PySide-1.2.2/sources
Build directory:
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release
Install directory:
/home/silvio/BBB/download/PySide-1.2.2/pyside_install/py2.7-qt4.8.6-32bit-release
Python site-packages install directory:
/home/silvio/BBB/download/PySide-1.2.2/pyside_install/py2.7-qt4.8.6-32bit-release/lib/python2.7/site-packages
---
Python executable: /usr/bin/python2.7
Python includes: /usr/include/python2.7
Python library: /usr/lib/libpython2.7.so
Python prefix: /usr
Python scripts: /usr/bin
---
Qt qmake: /opt/qt-arm/bin/qmake
Qt version: 4.8.6
Qt bins: /opt/qt-arm/bin
Qt plugins: /opt/qt-arm/plugins
---
OpenSSL libs: None
==============================
Building module shiboken...
Deleting module build folder
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release/shiboken...
Creating module build folder
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release/shiboken...
Configuring module shiboken
(/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken)...
Running process: /usr/bin/cmake
-DCMAKE_TOOLCHAIN_FILE=/home/silvio/BBB/toolchain.cmake -G "Unix
Makefiles" -DQT_QMAKE_EXECUTABLE=/opt/qt-arm/bin/qmake
-DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/home/silvio/BBB/download/PySide-1.2.2/pyside_install/py2.7-qt4.8.6-32bit-release
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken
-DPYTHON_EXECUTABLE=/usr/bin/python2.7
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7
-DPYTHON_LIBRARY=/media/rootfs/usr/lib/libpython2.7.so
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes
/usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/home/silvio/BBB/toolchain.cmake
-G Unix Makefiles -DQT_QMAKE_EXECUTABLE=/opt/qt-arm/bin/qmake
-DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/home/silvio/BBB/download/PySide-1.2.2/pyside_install/py2.7-qt4.8.6-32bit-release
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken
-DPYTHON_EXECUTABLE=/usr/bin/python2.7
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7
-DPYTHON_LIBRARY=/media/rootfs/usr/lib/libpython2.7.so
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler:
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler:
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-gcc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-g++
-- Check for working CXX compiler:
/home/silvio/BBB/gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/arm-linux-gnueabihf-g++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /opt/qt-arm/bin/qmake (found suitable version "4.8.6",
required is "4.5.0")
-- Found PythonLibs: /media/rootfs/usr/lib/libpython2.7.so (found
suitable version "2.7.3", required is "2.6")
-- Found LibXml2: /media/rootfs/usr/lib/arm-linux-gnueabihf/libxml2.so
(found suitable version "2.8.0", required is "2.6.32")
-- Found LibXslt: /media/rootfs/usr/lib/arm-linux-gnueabihf/libxslt.so
(found suitable version "1.1.26", required is "1.1.19")
-- sphinx-build - not found! doc target disabled
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release/shiboken
Compiling module shiboken...
Running process: /usr/bin/make
/usr/bin/make
[ 1%] Generating qrc_generator.cxx
Scanning dependencies of target apiextractor
[ 3%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
[ 5%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetabuilder.cpp.o
[ 7%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o
[ 9%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/asttoxml.cpp.o
[ 11%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/fileout.cpp.o
[ 12%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/graph.cpp.o
[ 14%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/reporthandler.cpp.o
[ 16%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/typeparser.cpp.o
[ 18%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/typesystem.cpp.o
[ 20%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/include.cpp.o
[ 22%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/typedatabase.cpp.o
[ 24%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/ast.cpp.o
[ 25%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/binder.cpp.o
[ 27%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/class_compiler.cpp.o
[ 29%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel.cpp.o
[ 31%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel_finder.cpp.o
[ 33%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/compiler_utils.cpp.o
[ 35%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/control.cpp.o
[ 37%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/declarator_compiler.cpp.o
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/declarator_compiler.cpp:109:2:
warning: #warning "ptr to mem -- not implemented" [-Wcpp]
#warning "ptr to mem -- not implemented"
^
[ 38%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/default_visitor.cpp.o
[ 40%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/dumptree.cpp.o
[ 42%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/lexer.cpp.o
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/lexer.cpp:
In member function ‘void LocationManager::positionAt(std::size_t, int*,
int*, QString*) const’:
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/lexer.cpp:87:9:
warning: ‘ppline’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
int ppline, ppcolumn;
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/lexer.cpp:97:31:
warning: ‘line2’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
*line = base_line + *line - line2 - 1;
^
#warning "implement me"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:2140:2:
warning: #warning "implemente me (AST)" [-Wcpp]
#warning "implemente me (AST)"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:2297:2:
warning: #warning "implement me" [-Wcpp]
#warning "implement me"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:2305:2:
warning: #warning "implement me" [-Wcpp]
#warning "implement me"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:2900:2:
warning: #warning "mark the ast as constant" [-Wcpp]
#warning "mark the ast as constant"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:2990:2:
warning: #warning "Parser::skipFunctionBody() -- implement me" [-Wcpp]
#warning "Parser::skipFunctionBody() -- implement me"
^
/home/silvio/BBB/download/PySide-1.2.2/sources/shiboken/ApiExtractor/parser/parser.cpp:3019:2:
warning: #warning "implement me" [-Wcpp]
#warning "implement me"
^
[ 50%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/smallobject.cpp.o
[ 51%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/tokens.cpp.o
[ 53%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/type_compiler.cpp.o
[ 55%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/visitor.cpp.o
[ 57%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/builtin-macros.cpp.o
[ 59%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/preprocessor.cpp.o
[ 61%] Building CXX object
ApiExtractor/CMakeFiles/apiextractor.dir/qrc_generator.cxx.o
Linking CXX static library libapiextractor.a
[ 61%] Built target apiextractor
Scanning dependencies of target libshiboken
[ 62%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o
[ 64%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/debugfreehook.cpp.o
[ 66%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/gilstate.cpp.o
[ 68%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/helper.cpp.o
[ 70%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o
[ 72%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/sbkenum.cpp.o
[ 74%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/sbkmodule.cpp.o
[ 75%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/sbkstring.cpp.o
[ 77%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/bindingmanager.cpp.o
[ 79%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/threadstatesaver.cpp.o
[ 81%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o
[ 83%] Building CXX object
libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
Linking CXX shared library libshiboken-python2.7.so
[ 83%] Built target libshiboken
Scanning dependencies of target shiboken
[ 85%] Building CXX object generator/CMakeFiles/shiboken.dir/generator.cpp.o
[ 87%] Building CXX object
generator/CMakeFiles/shiboken.dir/shiboken/cppgenerator.cpp.o
[ 88%] Building CXX object
generator/CMakeFiles/shiboken.dir/shiboken/headergenerator.cpp.o
[ 90%] Building CXX object
generator/CMakeFiles/shiboken.dir/shiboken/overloaddata.cpp.o
[ 92%] Building CXX object
generator/CMakeFiles/shiboken.dir/shiboken/shibokengenerator.cpp.o
[ 94%] Building CXX object
generator/CMakeFiles/shiboken.dir/shiboken/shibokennormalize.cpp.o
[ 96%] Building CXX object generator/CMakeFiles/shiboken.dir/main.cpp.o
Linking CXX executable shiboken
[ 96%] Built target shiboken
[ 98%] Running generator for 'shiboken'...
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release/shiboken/generator/shiboken:
1:
/home/silvio/BBB/download/PySide-1.2.2/pyside_build/py2.7-qt4.8.6-32bit-release/shiboken/generator/shiboken:
Syntax error: word unexpected (expecting ")")
make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 2
make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2
make: *** [all] Error 2
error: Error compiling shiboken
root at deb32-dev-bbb:/home/silvio/BBB/download/PySide-1.2.2#
More information about the PySide
mailing list