[OpenNI-dev] Linux and Makefile

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[OpenNI-dev] Linux and Makefile

2dvisio
Hi everyone.

After I documented myself I wonder how to create a Makefile for a project that will include OpenNI and OpenCV.
Does you think there's any error in the following Makefile?

It worked like a charm in my OpenCV projects and I just added the lines for OpenNI.

The problem is given by ld (linker) saying:

/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnGetStatusString'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnStartTracking'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnOSCreateNamedMutex'
[...]

And so on for each of the xnSomething which compose the Nite lib.

Any help will be appreciated!

Thanks,

Carmelo

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

Makefile (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[OpenNI-dev] Re: Linux and Makefile

2dvisio
Additionally to that I receive another error coming from several "functions" that are "undefined reference" inside the "XnCppWrapper.h" header file.

Something like a lot of lines of code are appearing:


src/main.o: In function `xn::DepthGenerator::GetDepthMap() const':   /usr/include/ni/XnCppWrapper.h:2435: undefined reference to `xnGetDepthMap'
src/main.o: In function `xn::ImageGenerator::GetRGB24ImageMap() const':  /usr/include/ni/XnCppWrapper.h:2590: undefined reference to `xnGetRGB24ImageMap'
[...]

And many others.

Do you have any clue on that?

I sincerely do not understand which the problem could be, but I'm almost certain is something stupid in the organization of the library files.

Thanks a lot.

Carmelo





On Thu, Dec 23, 2010 at 4:31 PM, CARMELO VELARDO <[hidden email]> wrote:
Hi everyone.

After I documented myself I wonder how to create a Makefile for a project that will include OpenNI and OpenCV.
Does you think there's any error in the following Makefile?

It worked like a charm in my OpenCV projects and I just added the lines for OpenNI.

The problem is given by ld (linker) saying:

/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnGetStatusString'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnStartTracking'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined reference to `xnOSCreateNamedMutex'
[...]

And so on for each of the xnSomething which compose the Nite lib.

Any help will be appreciated!

Thanks,

Carmelo


--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.
Reply | Threaded
Open this post in threaded view
|

[OpenNI-dev] Re: Linux and Makefile

2dvisio
OK,

I realized I missed the -lOpenNI.... -_- Sorry, it was duller than
expected...





On Dec 23, 5:05 pm, CARMELO VELARDO <[hidden email]> wrote:

> Additionally to that I receive another error coming from several
> "functions"that are "undefined reference" inside the "XnCppWrapper.h"
> header file.
>
> Something like a lot of lines of code are appearing:
>
> src/main.o: In function `xn::DepthGenerator::GetDepthMap() const':
> /usr/include/ni/XnCppWrapper.h:2435: undefined reference to `xnGetDepthMap'
> src/main.o: In function `xn::ImageGenerator::GetRGB24ImageMap() const':
> /usr/include/ni/XnCppWrapper.h:2590: undefined reference to
> `xnGetRGB24ImageMap'
> [...]
>
> And many others.
>
> Do you have any clue on that?
>
> I sincerely do not understand which the problem could be, but I'm almost
> certain is something stupid in the organization of the library files.
>
> Thanks a lot.
>
> Carmelo
>
> On Thu, Dec 23, 2010 at 4:31 PM, CARMELO VELARDO
> <[hidden email]>wrote:
>
> > Hi everyone.
>
> > After I documented myself I wonder how to create a Makefile for a project
> > that will include OpenNI and OpenCV.
> > Does you think there's any error in the following Makefile?
>
> > It worked like a charm in my OpenCV projects and I just added the lines for
> > OpenNI.
>
> > The problem is given by ld (linker) saying:
>
> > /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined
> > reference to `xnGetStatusString'
> > /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined
> > reference to `xnStartTracking'
> > /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/libXnVNite.so: undefined
> > reference to `xnOSCreateNamedMutex'
> > [...]
>
> > And so on for each of the xnSomething which compose the Nite lib.
>
> > Any help will be appreciated!
>
> > Thanks,
>
> > Carmelo

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.