Including external libraries [message #209871] |
Sat, 16 February 2008 08:49  |
Eclipse User |
|
|
|
Originally posted by: carlon.luca.email.it
Hi! Sorry for this trivial problem, but I can't seem to be able to solve.
I followed the manual and I added an external library. I added in the
project properties the path the the libraries and to the related include
files. In the project directory I got the header opencv/cv.h in the
include directory, as I expected. After I build anyway, I get this in the
console window:
make all
g++ -O2 -g -Wall -fmessage-length=0 -c -o Prova.o Prova.cpp
Prova.cpp:11:23: error: opencv/cv.h: No such file or directory
make: *** [Prova.o] Error 1
I can't see any -l parameter. What did I do wrong? Am I missing something?
In my source code I wrote:
#include <opencv/cv.h>
With an old version of CDT I had no problem in doing this, but I did it in
a different way. Am I lacking something to add this library?
Thanks! And sorry for the trivial question but even reading old posts I
couldn't find what is my mistake.
|
|
|
|
|
|
Re: Including external libraries [message #1066079 is a reply to message #209930] |
Sat, 29 June 2013 22:14  |
Eclipse User |
|
|
|
Luca Carlon wrote:
> Hi! Sorry for this trivial problem, but I can't seem to be able to
> solve. I followed the manual and I added an external library. I added in
> the project properties the path the the libraries and to the related
> include files. In the project directory I got the header opencv/cv.h in
> the include directory, as I expected. After I build anyway, I get this
> in the console window:
>
> make all g++ -O2 -g -Wall -fmessage-length=0 -c -o Prova.o Prova.cpp
> Prova.cpp:11:23: error: opencv/cv.h: No such file or directory
> make: *** [Prova.o] Error 1
>
> I can't see any -l parameter. What did I do wrong? Am I missing something?
> In my source code I wrote:
>
> #include <opencv/cv.h>
>
> With an old version of CDT I had no problem in doing this, but I did it
> in a different way. Am I lacking something to add this library?
> Thanks! And sorry for the trivial question but even reading old posts I
> couldn't find what is my mistake.
>
I also have the same problem above.However,you said "I noticed the problem was due to the fact that I didn't tell eclipse to
manage the makefile. I didn't realize it was not managing it." Could you tell me how to tell eclipse to manage the makefile ??? Waiting for you reply!Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.04131 seconds