glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
598 stars 435 forks source link

crosscompile #17

Closed ugashet closed 9 years ago

ugashet commented 9 years ago

hello, please help to crosscompile your app, at first i'm make and activate (use export) cpu toolchain, next i'm make build as i686 linux by default, and correct CMakeCCompiler.cmake and CMakeCXXCompile.cmake ( make changes about new compile and ar,ld, and other like this arm-linux-gcc) then i'm compile and install at /usr/local/lib iconv library compiled by arm, at now if i'm make software get this text: root@ubuntu:/home/zxing-cpp-master/build# make [ 1%] Building CXX object CMakeFiles/libzxing.dir/core/src/zxing/aztec/decoder/Decoder.cpp.o /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:24:19: error: iconv.h: No such file or directory /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp: In function 'void::add(std::string&, char)': /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:53: error: 'iconv_t' was not declared in this scope /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:53: error: expected `;' before 'ic' /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:54: error: 'ic' was not declared in this scope /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:54: error: 'iconv' was not declared in this scope /home/zxing-cpp-master/core/src/zxing/aztec/decoder/Decoder.cpp:55: error: 'iconv_close' was not declared in this scope make[2]: * [CMakeFiles/libzxing.dir/core/src/zxing/aztec/decoder/Decoder.cpp.o] Error 1 make[1]: * [CMakeFiles/libzxing.dir/all] Error 2 make: *\ [all] Error 2

how to agree compiled library and doing next? Thank's

ugashet commented 9 years ago

i find solution: need to copy iconv.h from distrib to right directory, and it's work! result: WORK software!!!