2014-07-03 08:08:23 -0600 | asked a question | Integration of Qt into OpenCV-2.4.3 Hello, I've built Opencv with the Qt flag checked but now, I think that qt is not working properly. Indeed when I run createButton() or cvCreateButton() the big program I need to execute (which has not been made by me and was working correctly on another machine) just terminates its execution without reporting any kind of errors, just like a normal return() was called!! Here is the portion of code with problems: and here is the display function: } On standard output I just have the output of the first cout (d32) and then the prompt! I can run correctly createButton() and cvCreateTrackbar() in others projects, so maybe the problem is not in the way I built OpenCV; I can run correctly other OpenCV function in this project (e.g. imread(), namedWindow(), imshow()), so I'm asking whether the problem could be in the way the Makefile.am and configure.ac are written: I just "ignored" Qt adding OpenCV flags where necessary. Do I have to explicitly add also the Qt library to my files? And if so, how should I do this? Thanks for your help. |
2014-06-24 08:35:12 -0600 | received badge | ● Editor (source) |
2014-06-24 06:25:58 -0600 | asked a question | Build a project using Automake (Make error: undefined reference to openCV functions (error: ld returned 1 exit status)) Hello, I'm totally new to Make and Automake but I need to build a project which uses Automake. I'm using Ubuntu 12.04 and I've installed with succes the openCV library (version 2.4.3) which I had used in several small projects which I built using: g++ sourcefile.cpp Now, I think that the reason why Make gives me this error is because I haven't added the instruction I've tried to add that instruction to the LDFLAGS but Make keeps on giving me the same error in output. This is the src/libcnbiVisualNavigation/Makefile.am I tried to modify:lib_LTLIBRARIES = libnavigation.la include_HEADERS = \ some_headers.h libnavigation_la_SOURCES = \ some_sources.cpp libnavigation_la_LDFLAGS = -version-info $(CURRENT):$(REVISION):$(AGE) -release $(RELEASE) libnavigation_la_LIBADD = -lm $(OPENCV_LIBS) -lboost_thread-mt -lboost_signals-mt -lcnbiVisualNavigationThis is the output that make gives to me: Making all in src/libnavigation
make[1]: Entering directory |