User forums > General (but related to Code::Blocks)

g++: no input files Process terminated with status 1 (0 minutes, 0 seconds)

<< < (3/3)

oBFusCATed:
OK, I understand.

Here are the possibilities I've come up:
1. Show the errors in messageboxes, a bit annoying but easy to implement
2. Switch to the Log page, this might fail if the build message or build log are shown at the end of compilation
3. Add a flag to build message/logs to ignore the clear call.
   If there are errors when executing `pkg-config`, then you set this flag to true and add the messages to both logs.
   When the compilation end you set the flag to false.

MRufus:
Thanks for the help on that one. I still had some problems with the code and so far I was able to solve them, but I ran into a problem here.
The code is the same and when I'm trying to compile it gives me this

Linking console executable: bin/Debug/Hello
obj/Debug/main.o: In function `main':
/home/rufat/Desktop/hello/Hello/main.cpp:36: undefined reference to `cvCreateFileCapture_FFMPEG(char const*)'
/home/rufat/Desktop/hello/Hello/main.cpp:38: undefined reference to `cvNamedWindow'
/home/rufat/Desktop/hello/Hello/main.cpp:41: undefined reference to `cvGrabFrame'
/home/rufat/Desktop/hello/Hello/main.cpp:47: undefined reference to `cvRetrieveFrame'
/home/rufat/Desktop/hello/Hello/main.cpp:49: undefined reference to `cvShowImage'
/home/rufat/Desktop/hello/Hello/main.cpp:50: undefined reference to `cvWaitKey'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
6 errors, 0 warnings

As you can see it doesn't complain that it doesnt know something about headers. He passes "#include "cv.h"" and "#include "highgui.h"" but the problems start at line 36. I added OpenCV's include folder to searchDirectories list.Any suggestions?

oBFusCATed:
You've not specified the libraries that has the defined the undefined symbols you see.

Project -> Build options  -> Linker

uiqbal:
Hi All,

I am facing the same problem and I am totally new in OpenCV and Code::Block can any one guide me how to resolve this.
I am using code::block 10.05, OpenCV-2.3.1 and ubuntu 10.10.

Thanks,

Umar

MortenMacFly:

--- Quote from: uiqbal on November 12, 2011, 12:26:34 pm ---I am facing the same problem and I am totally new in OpenCV and Code::Block can any one guide me how to resolve this.

--- End quote ---
Read the OpenCV developer documentation. This will tell what dependencies you'll need to setup. You will need to understand these dependencies anyways! This is a forum about Code::Blocks, not OpenCV. So you are asking the wrong people here - probably 90% of us don't even work with OpenCV.

Navigation

[0] Message Index

[*] Previous page

Go to full version