glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
605 stars 436 forks source link

Can't cross compile under linux with arm-linux-g++.3.2.1 #25

Open 52927588 opened 9 years ago

52927588 commented 9 years ago

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?