Skip navigation.
Home
The QNX Community Portal

View topic - OpenCV installation on QNX 6.3

OpenCV installation on QNX 6.3

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

OpenCV installation on QNX 6.3

Postby farrukh_reload » Tue May 31, 2005 7:37 pm

Hello,
I am trying to install OpenCV on QNX 6.3. This OpenCV is for Linux & all other POSIX Based systems. But when I use 'make' it gives me error messages like 'linux/foo.h' not found and compilation exit. Since there is no linux directory in QNX but is there any other solution of this or Is it possible to install it on QNX 6.3.
Thanx in advance.
farrukh_reload
Active Member
 
Posts: 23
Joined: Sat May 14, 2005 12:51 pm
Location: Lahore, Pakistan

Re: OpenCV installation on QNX 6.3

Postby David Gibbs » Tue May 31, 2005 8:52 pm

farrukh_reload <farrukh_reload@yahoo-dot-com.no-spam.invalid> wrote:
Hello,
I am trying to install OpenCV on QNX 6.3. This OpenCV is for Linux
& all other POSIX Based systems. But when I use 'make' it gives
me error messages like 'linux/foo.h' not found and compilation exit.
Since there is no linux directory in QNX but is there any other
solution of this or Is it possible to install it on QNX 6.3.

Are the a set of defines or macros in either the Makefile, or a
header file, that specify what SORT of Unix system it should be
on? Is there a configure script that might run and try to detect
this?

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs
 

RE: Re: OpenCV installation on QNX 6.3

Postby farrukh_reload » Wed Jun 01, 2005 4:49 am

There was a configured script that run without any error. But when I run make the error came in when it compiles some file like "foo.c" and "linux/foo.h" is a header file included in "foo.c"


./configure --enable-shared (as mentioned in OpenCV docs)
make

and here is the exact error message.
----------------------------------------------------------------------------------------------------------------
cvcap_v4l.cpp:98: linux/fs.h: No such file or directory
cvcap_v4l.cpp:99: linux/kernel.h: No such file or directory
cvcap_v4l.cpp:100: linux/videodev.h: No such file or directory
cvcap_v4l.cpp:110: field `vcap' has incomplete type
cvcap_v4l.cpp:111: field `vwin' has incomplete type
cvcap_v4l.cpp:112: field `vpic' has incomplete type
cvcap_v4l.cpp:113: field `vmbuf' has incomplete type
cvcap_v4l.cpp:114: field `vmmap' has incomplete type
cvcap_v4l.cpp: In function `void icvInitCapture_V4L()':
cvcap_v4l.cpp:155: aggregate `struct video_capability vcap' has incomplete type and cannot be initialized
cvcap_v4l.cpp:161: `VIDIOCGCAP' undeclared (first use this function)
cvcap_v4l.cpp:161: (Each undeclared identifier is reported only once
cvcap_v4l.cpp:161: for each function it appears in.)
cvcap_v4l.cpp:161: confused by earlier errors, bailing out
cpp0: output pipe has been closed
make[3]: *** [cvcap_v4l.lo] Error 1
make[3]: Leaving directory `/fs/hd0-dos-4/Linux Softwares/Linux/open-cv/opencv-0.9.6/otherlibs/highgui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/fs/hd0-dos-4/Linux Softwares/Linux/open-cv/opencv-0.9.6/otherlibs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/fs/hd0-dos-4/Linux Softwares/Linux/open-cv/opencv-0.9.6'
make: *** [all] Error 2

Thanx.
farrukh_reload
Active Member
 
Posts: 23
Joined: Sat May 14, 2005 12:51 pm
Location: Lahore, Pakistan

Re: OpenCV installation on QNX 6.3

Postby David Gibbs » Wed Jun 01, 2005 2:20 pm

farrukh_reload <farrukh_reload@yahoo-dot-com.no-spam.invalid> wrote:
There was a configured script that run without any error. But when I
run make the error came in when it compiles some file like "foo.c"
and "linux/foo.h" is a header file included in "foo.c"


/configure --enable-shared (as mentioned in OpenCV docs)
make

Well, it sounds like it didn't configure very well. I don't know
enough about the configure scripts -- but you may have to look at
what/how it configures and give some options to tell it that it
isn't on a Linux system.

and here is the exact error message.
----------------------------------------------------------------------------------------------------------------
cvcap_v4l.cpp:98: linux/fs.h: No such file or directory
cvcap_v4l.cpp:99: linux/kernel.h: No such file or directory

And, of course, QNX isn't going to have any linux type headers like
that.

Since it claims to be compatible with many/most Unix type systems,
it has got to have a way to configure it to NOT assume it is on a
Linux system. (Cause BSD type systems aren't going to have the Linux
headers either.) I don't know how to do that, though.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs
 

Re: OpenCV installation on QNX 6.3

Postby John Nagle » Wed Jun 01, 2005 4:15 pm

We have most of OpenCV working on QNX 6.21. You should be
able to get "cv" and "cvaux" to compile. The libraries
are reasonably portable.

But the video capture subsystem, which is where you're
having problems, isn't going to work on QNX. It's tied
to Linux-specific I/O. We had to write our own FireWire
camera driver (which I'm willing to release under the GPL.)
Or you can buy Mindready's product.

Nor is "highgui" going to run under Photon without
major work. It's a graphics package.

But the libraries, which contain the difficult vision
algorithms, can be brought onto QNX without much trouble.
What are you trying to do?

Now that QNX NC is gone, you can't get the developers of
open source packages to make their code work on QNX.
So you can't expect standard open source code to work on QNX.

John Nagle
Team Overbot

farrukh_reload wrote:

Hello,
I am trying to install OpenCV on QNX 6.3. This OpenCV is for Linux
& all other POSIX Based systems. But when I use 'make' it gives
me error messages like 'linux/foo.h' not found and compilation exit.
Since there is no linux directory in QNX but is there any other
solution of this or Is it possible to install it on QNX 6.3.
Thanx in advance.
John Nagle
 

RE: Re: OpenCV installation on QNX 6.3

Postby farrukh_reload » Thu Jun 02, 2005 8:14 pm

Well I actually needed OpenCV just for video capture & I even don't need highgui. I just need frames to process on the target system. I was comfortable with OpenCV but Is there any other library package which can do this work.
farrukh_reload
Active Member
 
Posts: 23
Joined: Sat May 14, 2005 12:51 pm
Location: Lahore, Pakistan

Re: OpenCV installation on QNX 6.3

Postby John Nagle » Fri Jun 03, 2005 6:33 am

farrukh_reload wrote:

Well I actually needed OpenCV just for video capture & I even
don't need highgui. I just need frames to process on the target
system. I was comfortable with OpenCV but Is there any other library
package which can do this work.

OpenCV doesn't really do video capture; it just uses Linux or
Windows facilities that do, and then loads frames into its
internal data structure.

Here's the manual page for our FireWire camera driver.

http://www.overbot.com/public/devfw-ohci.html

We would consider making this available under the GPL, but
can't maintain it. It requires the Mindready LLA library.
(http://www.mindready.com/eng/embedded_software_1.asp)
which may not be available for QNX 6.3 yet.

John Nagle
John Nagle
 


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 0 guests

cron