×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    How to use OpenCV for Maemo5 app?

    I could install OpenCV package in linux, but got no idea how to use it in scratchbox to build app for maemo?

    I found some related info from here: http://www.qt-apps.org/content/show....?content=89995. Also, I found some useful links introducing qt+opencv, such as http://www.qt-apps.org/content/show....ting-qwidgets/, which are exactly what I want. But the problem is there are opencv/...h header files in qt4.6.2, but when i compiled the program in scratchbox, header files cant be found. So I wonder:

    1,scratchbox is using qt4.5, is this the reason it does not contain opencv library? and I need to update it to 4.6.2?
    2,whether the qt program intergrated with opencv compatible within scrathbox?
    3,how could I run opencv app on the maemo device? is it possible?

    Anyone could offer me more detail about it?

    Cheers!
    Last edited by pta0007; 2010-03-02 at 14:38.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    I found some related info from here: http://n2.nabble.com/OpenCV-for-Maem....html#a4172275.
    The link is broken.

    Quote Originally Posted by pta0007 View Post
    But the problem is there are opencv/...h header files in qt4.6.2
    How did you come to such a wrong conclusion? OpenCV is not part of Qt and is not ported to Maemo 5 yet. You have to port opencv library to Maemo platform and then install it both in scratchbox and on the device.
    Links you should start with:
    http://packages.debian.org/source/sid/opencv
    https://garage.maemo.org/projects/opencv/

  3. #3
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    How did you come to such a wrong conclusion? OpenCV is not part of Qt and is not ported to Maemo 5 yet.
    Sorry, maybe I didn't explain clearly. I mean I could use the header file such as opencv/cv.h when writing a program with Qt Creator, which lead me confused about opencv has been ported to qt?

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    Sorry, maybe I didn't explain clearly. I mean I could use the header file such as opencv/cv.h when writing a program with Qt Creator, which lead me confused about opencv has been ported to qt?
    Are you using Qt Creator inside scratchbox?

  5. #5
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    Are you using Qt Creator inside scratchbox?
    Of course not. How could it be possible?

    I use Qt Creator on linux, and want to compile the same program in scratchbox, but failed.

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    Of course not. How could it be possible?
    This is possible, but requires reconfiguration of Xephyr and some other stuff. In my opinion it doesn't worth to be done.

    Quote Originally Posted by pta0007 View Post
    I use Qt Creator on linux, and want to compile the same program in scratchbox, but failed.
    I don't know if tells anything to you, but scratchbox is a chroot environment.
    http://en.wikipedia.org/wiki/Chroot
    Meaning that if you install OpenCV on the desktop it's not visible in scratchbox. Opposite is also true.

  7. #7
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Could you tell me how to port and install opencv library to the device?

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    Could you tell me how to port and install opencv library to the device?
    Were you able to compile
    http://packages.debian.org/source/sid/opencv
    inside scratchbox?

  9. #9
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    Were you able to compile
    http://packages.debian.org/source/sid/opencv
    inside scratchbox?
    I downloaded the package from http://sourceforge.net/projects/open...encv-unix/2.0/, and was able to compile it in scrathbox, both in x86 and armel mode. I have finished the program on the emulator, and it works well. Now how to install the opencv on the device becomes my problem.

  10. #10
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    I downloaded the package from http://sourceforge.net/projects/open...encv-unix/2.0/, and was able to compile it in scrathbox, both in x86 and armel mode. I have finished the program on the emulator, and it works well. Now how to install the opencv on the device becomes my problem.
    Sorry, but I don't understand you. Any way there is no difference between x86 target and device. Since you've manage it to work in x86 target do the same on the device and it will solve your problem.

  11. #11
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    Sorry, but I don't understand you. Any way there is no difference between x86 target and device. Since you've manage it to work in x86 target do the same on the device and it will solve your problem.
    When I copied the whole opencv package to the device in the dir: MyDocs, and tried to install it. I used the command "configure", but the x term showed: Permission denied. I was already under the root. Why is it?

  12. #12
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    When I copied the whole opencv package to the device in the dir: MyDocs, and tried to install it. I used the command "configure", but the x term showed: Permission denied. I was already under the root. Why is it?
    You have to build Debian package
    http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
    from source using dpkg-buildpackage
    http://man.cx/dpkg-buildpackage%281%29
    and install it on the device.
    OpenCV source you've downloaded from the project page doesn't contain debian directory necessary for producing Debian package.

  13. #13
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    OpenCV source you've downloaded from the project page doesn't contain debian directory necessary for producing Debian package.
    I copied ithe debian drectory from other project. But it seems not work.
    Code:
    make[1]: Entering directory `/home/maemo/Desktop/opencv-2.0.0.orig'
    make[1]: *** No rule to make target `clean'.  Stop.
    make[1]: Leaving directory `/home/maemo/Desktop/opencv-2.0.0.orig'
    make: [clean] Error 2 (ignored)
    Code:
    dpkg-buildpackage: failure: debian/rules build gave error exit status 2
    and this is the debian/rule file
    Code:
    clean: 
    	dh_testdir
    	dh_testroot
    	rm -f build-stamp configure-stamp
    
    	# Add here commands to clean up after the build process.
    	-$(MAKE) clean
    
    	dh_clean
    How to solve this problem then?

  14. #14
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by pta0007 View Post
    I copied ithe debian drectory from other project.
    From which project? Which command are you using to build a package?

  15. #15
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    83

    Re: How to use OpenCV for Maemo5 app?

    Quote Originally Posted by divanov View Post
    From which project? Which command are you using to build a package?
    The project I created from MADDE, using
    Code:
    mad pscreate -t simple opencv_2.0.0.orig
    ,(I used "opencv_2.0.0.orig" as the project name, trying to make the debian file usable by the opencv package)and I use
    Code:
    dpkg-buildpackage -rfakeroot
    to build the package.

Similar Threads

  1. Changing App Mgr settings from J2ME app
    By ddbhasin in forum Mobile Java General
    Replies: 6
    Last Post: 2007-09-21, 07:18
  2. why my app is not shown in emulator?....due to i have change UID
    By bharats in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2007-09-12, 06:49
  3. renaming app, how??
    By Audun Holme in forum Symbian
    Replies: 2
    Last Post: 2007-05-13, 12:10
  4. Dialog's clipping area (again). Nokia experts, please help
    By synov in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-26, 14:35
  5. 7650 - go back, close my app not closing the container app
    By geran in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-12-05, 09:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×