[PySide] Syntax error: word unexpected when cross-compiling Pyside

Tran Vinh Thuy tranvinhthuy at seoultech.ac.kr
Wed Feb 4 03:44:47 CET 2015


When I try to cross compile Shiboken library for PySide with the cmake configuration as below (using Freescale ARM toolchain):



    cmake ../shiboken \

    -DCMAKE_INSTALL_PREFIX=~/dev/stage \

    -DLIB_INSTALL_DIR=~/dev/stage \

    -DCMAKE_BUILD_TYPE=MinSizeRel \

    -DQT_QMAKE_EXECUTABLE=/home/thuy/qt/build/bin/qmake \

    -DENABLE_ICECC=0 \

      -DCMAKE_C_COMPILER="/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc"  \

     -DCMAKE_CXX_COMPILER="/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-g++"  \

    -DCMAKE_SYSTEM="Linux" -DCMAKE_SYSTEM_NAME="Linux" \

    -DCMAKE_SYSTEM_PROCESSOR="arm" -DCMAKE_CXX_FLAGS="-fPIC" \

    -DPYTHON_LIBRARY=~/dev/libpython2.7.so.1.0 \

    -DPYTHON_INCLUDE_DIR=~/dev/Python-2.7.5/Include \

    -DPYTHON_INCLUDE_DIR2=~/dev/Python-2.7.5/Include \

    -DBUILD_TESTS="false" -DUSE_PYTHON3="false"



The build runs ok until 98% then the error "Syntax error: word unexpected (expecting ")")" pops up



    Linking CXX static library libapiextractor.a

    [ 83%] Built target apiextractor

    Scanning dependencies of target shiboken

    [ 85%] [ 87%] [ 88%] [ 90%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/cppgenerator.cpp.o

    Building CXX object generator/CMakeFiles/shiboken.dir/generator.cpp.o

    [ 92%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/headergenerator.cpp.o

    Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/overloaddata.cpp.o

    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/thuy/dev/shiboken-build/generator/shiboken: 1: /home/thuy/dev/shiboken-build/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



I have tried many ways to fix it but no luck also Google doesn't really show any relate info.

Please kindly help!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20150204/ba5fe782/attachment.html>


More information about the PySide mailing list