zxing-cpp
zxing-cpp copied to clipboard
Can't cross compile under linux with arm-linux-g++.3.2.1
I have added these lines in the CMakeList.txt: SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER "arm-linux-gcc")
SET(CMAKE_CXX_COMPILER "arm-linux-g++") SET(CMAKE_FIND_ROOT_PATH "/usr/local/arm-linux/") SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
but after "mkdir build && cd build && ccmake. && cmake .. && make" ,error occurs as follow:
.../zxing-cpp-master/core/src/bigint/BigInteger.cc: In function X convertBigUnsignedToPrimitiveAccess(const BigUnsigned&)': .../zxing-cpp-master/core/src/bigint/BigInteger.cc:89: parse error before
>' token
make[2]: *** [CMakeFiles/libzxing.dir/core/src/bigint/BigInteger.cc.o] Error 1
make[1]: *** [CMakeFiles/libzxing.dir/all] Error 2
make: *** [all] Error 2
what should I do to make it OK?