Ask Your Question

Tushar's profile - activity

2019-07-16 04:40:19 -0600 received badge  Popular Question (source)
2015-02-01 09:30:37 -0600 commented answer opencv install on ubuntu 14.04 error

Hi,

i had Google and after that only i have put the question on forum, I didnt found any search useful, So please give me some helpful link if you found related to the ubuntu 14.04, (What i found that this is bug in this version but i am not sure)....

Thanks Tushar

2015-02-01 09:25:38 -0600 asked a question Error in building opencv on ubuntu 14.04

Hi

I am trying to build the opencv on ubuntu 14.04 and i am getting following error.

/home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp: In function ‘(static initializers for /home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp)’: /home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp:280:10: error: inconsistent operand constraints in an ‘asm’ ); ^ make[2]: * [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

Please help me in this..

gcc version used is : gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

Thanks

Tushar

2015-01-30 12:35:56 -0600 asked a question opencv install on ubuntu 14.04 error

i am trying to install opencv on my ubuntu machine with ubuntu 14.04 installed, i am getting following error.

/home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp: In function ‘(static initializers for /home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp)’: /home/tushar/work/opencv/opencv-2.4.10/modules/core/src/system.cpp:280:10: error: inconsistent operand constraints in an ‘asm’ ); ^ make[2]: * [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

Opencv version used is 2.4.10

Can anyone help me.

Thanks Tushar

2015-01-26 04:09:32 -0600 received badge  Nice Answer (source)
2015-01-24 08:39:48 -0600 received badge  Teacher (source)
2015-01-24 02:42:22 -0600 received badge  Self-Learner (source)
2015-01-24 02:14:38 -0600 received badge  Editor (source)
2015-01-24 02:08:07 -0600 answered a question Running opencv application on ARM

Hi All,

I got some solution for this,

Working environment is Linux Ubuntu 14.04

  1. Download opencv from http://opencv.org
  2. Unzip it
  3. Take linux Arago tool chain
  4. Now download cmake and cmake gui with following commands sudo apt-get install cmake cmake-curses-gui
  5. Next, Make a build library outside the opencv folder mkdir build cd build
  6. Create a file named toolchain.cmake in build folder vim toolchain.cmake
  7. Add the following to toolchain.cmake and save it. set( CMAKE_SYSTEM_NAME Linux ) set( CMAKE_SYSTEM_PROCESSOR arm ) set( CMAKE_C_COMPILER arm-none-linux-gnueabi-gcc ) set( CMAKE_CXX_COMPILER arm-none-linux-gnueabi-g++ )
  8. Export the cross toolchain paths . export PATH=$PATH:../toolchain/bin/

  9. Now run cmake to generate the make file cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ../opencv_folder_path

9.Do following steps to configure the components . ccmake . disable ffmpeg here if it is not installed in your system.

  1. Now build the libraries for ARM using make make

  2. Do make install make install.

  3. Done we have build the libraries for ARM. Newly build libraries will be now in build/install/include & build/install/lib

  4. Now copy the cross build libraries to your arm file system to /usr/lib and header files to /usr/include

  5. Write a simple code using opencv like rgb_to_grey conversion. build it and now you can run it on ARM.

  6. just before running cross build binary on ARM export library path as follows LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/lib

  7. Done you have done

2015-01-20 22:05:52 -0600 received badge  Autobiographer
2015-01-20 05:37:40 -0600 received badge  Student (source)
2015-01-20 05:33:56 -0600 asked a question Running opencv application on ARM

Hi,

I have cross compile the opencv for ARM as per the given procedure in link. I have copied the libraries .so and header files from build/install/ to ARM file system /usr/lib and /usr/include Now i want to write a application to simply read a image and display it. \ I have build that application with below command from my ubuntu machine

arm-linux-gnueabihf-g++-4.6 Image_read.cpp -I ../opencv_make/install/include/ ../opencv_make/lib/libopencv_calib3d.so ../opencv_make/lib/libopencv_contrib.so ../opencv_make/lib/libopencv_core.so ../opencv_make/lib/libopencv_features2d.so ../opencv_make/lib/libopencv_flann.so ../opencv_make/lib/libopencv_gpu.so ../opencv_make/lib/libopencv_highgui.so ../opencv_make/lib/libopencv_imgproc.so ../opencv_make/lib/libopencv_legacy.so ../opencv_make/lib/libopencv_ml.so ../opencv_make/lib/libopencv_objdetect.so ../opencv_make/lib/libopencv_ocl.so ../opencv_make/lib/libopencv_photo.so ../opencv_make/lib/libopencv_stitching.so ../opencv_make/lib/libopencv_superres.so

When i tried to run this application on ARM i got following error. root@dm814x-evm:~/sample_app_arm# ./a.out -sh: ./a.out: not found root@dm814x-evm:~/sample_app_arm#

as a.out is in the local folder and it is having executable permissions also..?

Please help me in this scenario, i am perfectly stuck here. Thanks in advance.

Regards Tushar