Ask Your Question

bot1131357's profile - activity

2019-11-13 07:15:16 -0600 received badge  Necromancer (source)
2019-11-13 06:55:07 -0600 edited answer CV_FOURCC was not declared in this scope

This is what you need to refer to: cv::VideoWriter::fourcc and cv::SortFlags Good luck :)

2019-11-13 06:54:25 -0600 answered a question CV_FOURCC was not declared in this scope

This is what you need to refer to: 1) cv::VideoWriter::fourcc and 2) cv::SortFlags Good luck :)

2019-11-13 00:43:38 -0600 edited question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream (ESP32 Cam) I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream. I have no pr

2019-11-12 23:49:51 -0600 edited question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream. I have no problem gettin

2019-11-12 22:22:10 -0600 edited question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream. I have no problem gettin

2019-11-12 22:21:06 -0600 edited question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream. I have no problem gettin

2019-11-12 22:18:29 -0600 edited question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream. I have no problem gettin

2019-11-12 22:17:06 -0600 asked a question Cannot open MJPEG stream (ESP32 Cam)

Cannot open MJPEG stream I have a ESP32 cam that's streaming at http://192.168.1.121:81/stream and I have no problem get

2017-06-20 00:46:17 -0600 received badge  Editor (source)
2017-06-20 00:44:33 -0600 asked a question recipe for target '3rdparty/zlib/CMakeFiles/zlib.dir/all' failed

I'm trying to cross-compile OpenCV into Raspberry Pi 3, but I got stuck at linking libzlib.a

My CMAKE command is as follows:

cmake  -D CMAKE_BUILD_TYPE=RELEASE -DENABLE_NEON=ON -DBUILD_LIB=ON -DBUILD_ZLIB=ON \
-DCMAKE_AR=${AR} \
-DCMAKE_TOOLCHAIN_FILE=/home/ytan/Dev/opencv/platforms/linux/armv8-rpi3-linux-gnueabihf.toolchain.cmake -D CMAKE_INSTALL_PREFIX=~/Dev/build-pi3/opencv ..

And when I run make, I get this error:

[  1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inftrees.c.o
[  1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inffast.c.o
[  1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/trees.c.o
[  1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/uncompr.c.o
[  1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/zutil.c.o
[  2%] Linking C static library ../lib/libzlib.a
Error running link command: No such file or directory
3rdparty/zlib/CMakeFiles/zlib.dir/build.make:458: recipe for target '3rdparty/lib/libzlib.a' failed
make[2]: *** [3rdparty/lib/libzlib.a] Error 2
CMakeFiles/Makefile2:254: recipe for target '3rdparty/zlib/CMakeFiles/zlib.dir/all' failed
make[1]: *** [3rdparty/zlib/CMakeFiles/zlib.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

This post is 3 years old, but no one seemed to have answered it. Even Jesus (OP) gave up.

I'm using Xubuntu 16.04, and used crosstool-ng to build my toolchain (ct-ng armv8-rpi3-linux-gnueabihf)

Help, anyone?

Update: I decided to build zlib separately, and guess what? The same error happened for libtiff. When I build libtiff, I get error for libjpeg. Here's the dump:

[  5%] Linking C static library ../lib/liblibjpeg.a
Error running link command: No such file or directory
3rdparty/libjpeg/CMakeFiles/libjpeg.dir/build.make:1264: recipe for target '3rdparty/lib/liblibjpeg.a' failed
make[2]: *** [3rdparty/lib/liblibjpeg.a] Error 2
CMakeFiles/Makefile2:254: recipe for target '3rdparty/libjpeg/CMakeFiles/libjpeg.dir/all' failed
make[1]: *** [3rdparty/libjpeg/CMakeFiles/libjpeg.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

It's obvious something very fundamental is failing here.

2017-06-19 23:47:53 -0600 commented answer cross compile OpenCV with FFMPEG for ARM Linux

Did you build the ffmpeg for arm? At the risk of pointing out the obvious, the ffmpeg used in your host computer is probably built for x86_64 , and that's not compatible.

2017-06-19 21:25:20 -0600 commented answer Opencv static link error

This helped. I have already set my environment variable but ran into the same problem..Why is it needed in the first place?

2017-06-19 10:20:24 -0600 asked a question Cross-compiling OpenCV on Raspberry Pi 3

Hi OpenCV community!

I'm trying to cross-compile OpenCV into Raspberry Pi 3.

I have built ffmpeg using the toolchain, and installed it at ~/Dev/build-pi3/ffmpeg

When I run cmake for OpenCV, I get this :

$ cmake  -D CMAKE_BUILD_TYPE=RELEASE -DENABLE_NEON=ON \
-DZLIB_INCLUDE_DIR=/home/ytan/Dev/build-pi3/libz/include \
-DZLIB_LIBRARY=/home/ytan/Dev/build-pi3/libz/lib -DZLIB_LIBRARIES=libz \
-DCMAKE_TOOLCHAIN_FILE=/home/ytan/Dev/opencv/platforms/linux/armv8-rpi3-linux-gnueabihf.toolchain.cmake -D CMAKE_INSTALL_PREFIX=~/Dev/build-pi3/opencv .. 
...
(many lines)
...
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 57.56.100
--   Found libavformat, version 57.49.100
--   Found libavutil, version 55.29.100
--   Found libswscale, version 4.1.100
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- WARNING: Can't build ffmpeg test code

Anyone encountered this problem? How can I check why libavresample is not found and why ffmpeg test code fail to build? Some help would be appreciated.

<full log="" here="">

I'm using Xubuntu 16.04, and used crosstool-ng to build my toolchain (ct-ng armv8-rpi3-linux-gnueabihf)