Ask Your Question

Billa Surendra's profile - activity

2019-06-19 11:21:07 -0600 received badge  Student (source)
2019-02-12 10:21:04 -0600 received badge  Self-Learner (source)
2019-02-12 03:00:43 -0600 marked best answer Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

I have cross compiled OpenCV library to support multi core execution with "-DWITH_OPENMP=ON" option, cmake was built successfully but when i am going to cross compiling OpenCV applications (face detection) I am getting some errors.

Error:

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_ml.a when searching for -lopencv_ml

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_videostab.a when searching for -lopencv_videostab

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_stitching.a when searching for -lopencv_stitching

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_calib3d.a when searching for -lopencv_calib3d

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_shape.a when searching for -lopencv_shape

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_objdetect.a when searching for -lopencv_objdetect

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_features2d.a when searching for -lopencv_features2d

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_flann.a when searching for -lopencv_flann

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_superres.a when searching for -lopencv_superres

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_highgui.a when searching for -lopencv_highgui

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_videoio.a when searching for -lopencv_videoio

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_imgcodecs.a when searching for -lopencv_imgcodecs

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_photo.a when searching for -lopencv_photo

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_video.a when searching for -lopencv_video

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_imgproc.a when searching for -lopencv_imgproc

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/lib/libopencv_core.a when searching for -lopencv_core

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/libzlib.a when searching for -lzlib

/usr/bin/ld: cannot find -lzlib

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/liblibjpeg.a when searching for -llibjpeg

/usr/bin/ld: cannot find -llibjpeg

/usr/bin/ld: skipping incompatible /home/billa/RISCV/OpenCV_multi_core_support/opencv-3.4.1/platforms/linux /riscv_build/install/share/OpenCV/3rdparty/lib/liblibwebp.a when searching for -llibwebp

/usr/bin/ld: cannot find ... (more)

2019-02-12 03:00:20 -0600 answered a question Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

Thanks for helping me, my problem solved by adding --static -lzlib when cross compiling OpenCV application.

2019-02-12 02:59:52 -0600 commented question Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

Thanks for helping me, my problem solved by adding --static -lzlib when cross compiling OpenCV application.

2019-02-12 02:55:47 -0600 commented answer face detection application multi-threaded or not ?

Thanks for your suggestion..my problem solved

2019-01-31 22:47:57 -0600 marked best answer face detection application multi-threaded or not ?

Whether face-detection application that is given as example in OpenCV library is multi-threaded or not ?

2019-01-31 22:47:57 -0600 received badge  Scholar (source)
2019-01-31 22:47:45 -0600 commented answer face detection application multi-threaded or not ?

Without setNumThreads(0); at the beginning of the code by default is face detection program multi threaded ? Or are th

2019-01-31 03:14:26 -0600 asked a question face detection application multi-threaded or not ?

face detection application multi-threaded or not ? Whether face-detection application that is given as example in OpenCV

2019-01-29 02:24:40 -0600 asked a question I am unable to cross compiling RedEyeremoval OpenCV application.

I am unable to cross compiling RedEyeremoval OpenCV application. I have cross compiled OpenCV library to get OpenMP supp

2019-01-28 00:19:34 -0600 commented question Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

In above command if I am trying to disable -DWITH_OPENCL=OFF and I am trying to enable -DWITH_OPENMP=ON but with this op

2019-01-26 04:40:35 -0600 commented question Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

OpenCV cross compiled successfully with riscv cmake toolchain, but when i am executing OpenCV application I am getting a

2019-01-24 23:01:23 -0600 asked a question Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture

Unable to cross compiling OpenCV based application program(face detection) for RISCV architecture I have cross compiled

2018-08-07 04:46:20 -0600 commented answer I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

Thanks for your best support..my problem solved now..

2018-08-07 04:45:27 -0600 commented question I am trying to executing cross compiled (for RISCV) sample c++ program.but i am getting error

Thanks your help me a lot..

2018-08-07 04:44:43 -0600 commented question I am Trying to cross compiling OpenCV application statically by using following command

Thanks..now I am able to cross compiling opencv library for riscv and also I can able to run opencv applications on risc

2018-08-07 04:42:25 -0600 commented question unable to cross compiling opencv library for riscv architecture with static linking

Thanks..now I am able to cross compiling opencv library for riscv

2018-08-07 03:22:22 -0600 commented question I am facing some problem while cross compiling OpenCV library for RISCV architecture.

Especially when I am using a -DWITH_QT=ON in my command for cross compiling for riscv.I am getting following error :--

2018-08-07 03:21:10 -0600 commented question I am facing some problem while cross compiling OpenCV library for RISCV architecture.

Especially when I am using a -DWITH_QT=ON in my command for cross compiling for riscv.I am getting following error. /us

2018-08-07 01:08:41 -0600 asked a question unable to cross compiling opencv library for riscv architecture with static linking

unable to cross compiling opencv library for riscv architecture with static linking I am trying to cross compile opencv

2018-08-03 04:00:34 -0600 commented question I am facing some problem while cross compiling OpenCV library for RISCV architecture.

When I am trying to use -DWITH_QT=ON flag in my command configurations not done correctly and I am getting errors while

2018-08-02 23:50:36 -0600 asked a question I am facing some problem while cross compiling OpenCV library for RISCV architecture.

I am facing some problem while cross compiling OpenCV library for RISCV architecture. I am trying to cross compiling Ope

2018-08-01 06:53:36 -0600 commented question Error while loading shared libraries: libopencv_highgui.so.3.1: internal error

cross compile your OpenCV library static linking..

2018-08-01 06:42:53 -0600 commented question Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors

I have added -DWITH_OPENCL=OFF to my command but still it is giving the same error.

2018-08-01 05:28:02 -0600 edited question Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors

Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors Trying to cross compi

2018-08-01 05:27:33 -0600 edited question Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors

Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors Trying to cross compi

2018-08-01 05:19:39 -0600 asked a question Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors

Trying to cross compiling OpenCV library for RISCV architecture statically but i am getting errors Trying to cross compi

2018-07-31 05:03:34 -0600 commented answer I am trying to executing cross compiled c++ program(removeRedEye) in riscv linux,but i am getting errors

By using this command i am cross compiling Opencv library cmake -DCMAKE_TOOLCHAIN_FILE=../riscv.toolchain.cmake ../../.

2018-07-31 04:50:18 -0600 commented answer I am trying to executing cross compiled c++ program(removeRedEye) in riscv linux,but i am getting errors

I have cross compiled OpenCV library statically by using -DWITH_GTK_2_X=ON -DWITH_QT=ON flags and i did re run cmake,but

2018-07-31 01:59:23 -0600 received badge  Enthusiast
2018-07-27 04:22:47 -0600 commented answer I am trying to executing cross compiled c++ program(removeRedEye) in riscv linux,but i am getting errors

Then what is the solution,i mean what i want to do now.

2018-07-27 03:53:20 -0600 asked a question I am trying to executing cross compiled c++ program(removeRedEye) in riscv linux,but i am getting errors

I am trying to executing cross compiled c++ program(removeRedEye) in riscv linux,but i am getting errors I have cross co

2018-07-27 00:07:25 -0600 asked a question I am trying to executing cross compiled (for RISCV) sample c++ program.but i am getting error

I am trying to executing cross compiled (for RISCV) sample c++ program.but i am getting error I have cross compiled samp

2018-07-23 06:42:06 -0600 commented answer I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

After cross compiling RemoveRedEyes.cpp for riscv and i am copying compiled object file,haarcascade_eye.xml,and one samp

2018-07-23 05:18:56 -0600 commented answer I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

After cross compiling RemoveRedEyes.cpp for riscv and i am copying compiled object file,haarcascade_eye.xml,and one samp

2018-07-23 04:44:40 -0600 commented answer I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

yes,RemoveRedEyes.cpp is cross compiled successfully and again i am added compiled object file and image into riscv-linu

2018-07-23 04:18:05 -0600 commented answer I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

I have modified some code in RedEyeRemoval.cpp program as you said above.now i am getting error like can you give solut

2018-07-23 03:44:09 -0600 commented question I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

please go through my code once i have posted code

2018-07-23 03:43:15 -0600 received badge  Editor (source)
2018-07-23 03:43:15 -0600 edited question I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after thr

2018-07-23 03:12:46 -0600 commented question I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

no i didn't used.can u tell me how to use and where. Thanks for reply

2018-07-23 01:19:52 -0600 asked a question I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after throwing an instance of 'cv::Exception'"

I am trying to executing OpenCV application executable in riscv linux but i am getting error "terminate called after thr

2018-07-20 07:00:17 -0600 marked best answer I am trying to executing the OpenCV sample c++ program but i am getting error ''undefined reference to `compress'''.

I have cross compiled Opencv library statically for riscv architecture.Now I am going to executing opencv c++ sample program.I made Makefile and i am executing make.

Makefile :-

CXX =riscv64-unknown-linux-gnu-g++
CXXFLAGS += -c -Wall $(shell pkg-config --cflags /home/billa/Downloads/opencv-3.4.2/platforms/linux/riscv_build/install/lib/pkgconfig/opencv.pc)
LDFLAGS += $(shell pkg-config --libs --static /home/billa/Downloads/opencv-3.4.2/platforms/linux/riscv_build/install/lib/pkgconfig/opencv.pc)
all: opencv_example
opencv_example: example.o; $(CXX) $< -o $@ $(LDFLAGS)
%.o: %.cpp; $(CXX) $< -o $@ $(CXXFLAGS)
clean: ; rm -f example.o opencv_example

Error :-

/home/billa/Downloads/opencv-3.4.2/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/libIlmImf.a(ImfZipCompressor.cpp.o): In function `.L0 ':
ImfZipCompressor.cpp:(.text._ZN3Imf13ZipCompressor8compressEPKciiRS2_+0xc6): undefined reference to `compress'
ImfZipCompressor.cpp:(.text._ZN3Imf13ZipCompressor10uncompressEPKciiRS2_+0x28): undefined reference to `uncompress'
/home/billa/Downloads/opencv-3.4.2/platforms/linux/riscv_build/install/share/OpenCV/3rdparty/lib/libIlmImf.a(ImfPxr24Compressor.cpp.o): In function `.L0 ':
ImfPxr24Compressor.cpp:(.text._ZN3Imf15Pxr24Compressor8compressEPKciN5Imath3BoxINS3_4Vec2IiEEEERS2_.part.3+0x1d4): undefined reference to `compress'
ImfPxr24Compressor.cpp:(.text._ZN3Imf15Pxr24Compressor10uncompressEPKciN5Imath3BoxINS3_4Vec2IiEEEERS2_.part.4+0x34): undefined reference to `uncompress'
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'opencv_example' failed
make: *** [opencv_example] Error 1

Please help me in this

Thanks in advance

2018-07-20 06:59:06 -0600 commented question I am trying to executing the OpenCV sample c++ program but i am getting error ''undefined reference to `compress'''.

Thanks.. after adding cmake -DWITH_OPENEXR=OFF -DBUILD_OPENEXR=OFF it is working fine.

2018-07-20 00:45:02 -0600 asked a question I am trying to executing the OpenCV sample c++ program but i am getting error ''undefined reference to `compress'''.

I am trying to executing the OpenCV sample c++ program but i am getting error ''undefined reference to `compress'''. I h

2018-07-18 23:59:00 -0600 commented question I am Trying to cross compiling OpenCV application statically by using following command

I am successfully cross compiled opencv for riscv architecture statically.now i am trying to run opencv application bu

2018-07-18 04:19:26 -0600 commented question I am Trying to cross compiling OpenCV application statically by using following command

Now I am getting some other error of the same fashion. ../../lib/libopencv_core.a(opencl_core.cpp.o): In function GetHa