Croscompile OpenCV for RPi link error ;? - Raspberry Pi Forums


hi, today tried compile opencv raspberry pi on pc, there 1 error, can't fix...

little info:
hristov@hristov-optiplex-755:~/workspace/opencv-arm$ make
[ 1%] building c object 3rdparty/libwebp/cmakefiles/libwebp.dir/dec/alpha.c.o
[ 1%] building c object 3rdparty/libwebp/cmakefiles/libwebp.dir/dec/buffer.c.o
[ 1%] building c object 3rdparty/libwebp/cmakefiles/libwebp.dir/dec/vp8.c.o
... , on ...
[ 6%] building c object 3rdparty/libwebp/cmakefiles/libwebp.dir/utils/quant_levels.c.o
[ 6%] building c object 3rdparty/libwebp/cmakefiles/libwebp.dir/utils/thread.c.o
linking c static library ../lib/liblibwebp.a
error running link command: no such file or directory
make[2]: *** [3rdparty/lib/liblibwebp.a] error 2
make[1]: *** [3rdparty/libwebp/cmakefiles/libwebp.dir/all] error 2
make: *** [all] error 2
hristov@hristov-optiplex-755:~/workspace/opencv-arm$
toolchain file i'm using file /platform/linux/arm-gnueabi.toolchain.cmake have made couple of changes in beginning of file
set(cmake_system_name linux)
set(cmake_system_version 1)
set(cmake_system_processor arm)

set(gcc_compiler_version "4.8.3" cache string "gcc compiler version")
set(float_abi_suffix "hf")

set(cmake_c_compiler arm-linux-gnueabihf-gcc)
set(cmake_cxx_compiler arm-linux-gnueabihf-g++)
set(arm_linux_sysroot /home/hristov/workspace/rootfs)

set(cmake_cxx_flags "" cache string "c++ flags")
set(cmake_c_flags "" cache string "c flags")
set(cmake_shared_linker_flags "" cache string "shared linker flags")
set(cmake_module_linker_flags "" cache string "module linker flags")
set(cmake_exe_linker_flags "-wl,-z,nocopyreloc" cache string "executable linker flags")

set(cmake_cxx_flags "${cmake_cxx_flags} -fdata-sections -wa,--noexecstack -fsigned-char -wno-psabi")
set(cmake_c_flags "${cmake_c_flags} -fdata-sections -wa,--noexecstack -fsigned-char -wno-psabi")

set(cmake_shared_linker_flags "-wl,--fix-cortex-a8 -wl,--no-undefined -wl,--gc-sections -wl,-z,noexecstack -wl,-z,relro -wl,-z,now ${cmake_shared_linker_flags}")

set(cmake_module_linker_flags "-wl,--fix-cortex-a8 -wl,--no-undefined -wl,--gc-sections -wl,-z,noexecstack -wl,-z,relro -wl,-z,now ${cmake_module_linker_flags}")

set(cmake_exe_linker_flags "-wl,--fix-cortex-a8 -wl,--no-undefined -wl,--gc-sections -wl,-z,noexecstack -wl,-z,relro -wl,-z,now ${cmake_exe_linker_flags}")
compilation fails, when tries make ".a" static library file object files, can't understand file cannot found ? of object files or other ?



raspberrypi



Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support