Bukharitsyn / qt-opencv-multithreaded

Automatically exported from code.google.com/p/qt-opencv-multithreaded
0 stars 0 forks source link

Compiling latest SVN under MacOSX with QT 5.0 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout http://qt-opencv-multithreaded.googlecode.com/svn/trunk/ 
qt-opencv-multithreaded-read-only (2013-03-29)
2. Open project in Qt Creator
3. Push compile

What is the expected output? What do you see instead?
Expected a clean compile. Got the following error:
/.../Desktop/qt-opencv-multithreaded-read-only/src/MainWindow.h:36: 
Error:ui_MainWindow.h: No such file or directory

What version of the product are you using? On what operating system?
MacOSX 10.8.3 with OpenCV 2.4.4 and Qt Creator 2.6.1 and QT 5.0 64 Bit.

Please provide any additional information below.
The file that is tried to include does not exist. But it looks like it is 
needed because MainWindow inherits from it. Is this because I use Qt 5.0 
instead of 4.0?

Original issue reported on code.google.com by Andreas....@gmail.com on 29 Mar 2013 at 7:21

GoogleCodeExporter commented 8 years ago
Please try the following:
1. Rename all occurrences of <QtGui> to <QtWidgets> (as well as 
<QtGui/QApplication> in main.cpp)
2. Add the following to the .PRO file: greaterThan(QT_MAJOR_VERSION, 4): QT += 
widgets
3. Clean all, then re-attempt compiling the project.

See: http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

Original comment by nickdad...@gmail.com on 31 Mar 2013 at 10:32

GoogleCodeExporter commented 8 years ago
Hi,

thank you very much for your help. After following your steps and adding 
corresponding LIBS and INCLUDEPATH options to my project file it compiled finde.

I ran now in issue #2 because VideoCapture seems to be non blocking until a new 
frame is available. I get constantly 1000 frames showed up as the capture rate 
and 115 fps processing rate even though my camera is only capable of 25 (or 
maybe 30?) fps. If I check "drop frames if buffer is full" and set the buffer 
size to 1 it kind of works for me but I get my cpu fully loaded because every 
frame is processed multiple times.

But that's a different thing and related to openCV under macosx. Not an 
qt-opencv-multithreaded issue.

Thank you again!

Andreas Piening

Original comment by Andreas....@gmail.com on 1 Apr 2013 at 3:47

GoogleCodeExporter commented 8 years ago
The latest stable release (1.3.0) now builds using Qt 5.0.1 without any source 
code modifications.

Original comment by nickdad...@gmail.com on 3 Apr 2013 at 10:46