Re: C++ help needed (Was: Help with cmake / Qt5 migration needed)
Hi Juhani,
thanks a lot for your help.
On Fri, Oct 20, 2017 at 08:41:35PM +0300, Juhani Numminen wrote:
>
> I think that's the build system sorted, even though the compilation still
> fails. Now you probably need to add some includes.
I was able to add the said includes but somehow this project is balky.
Now I get:
...
cd /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads && /usr/bin/c++ -DHAVE_PTHREAD_H -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG
In file included from /usr/include/CImg.h:337:0,
from /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/../../../src/qtbeads/../images/imageCode.h:7,
from /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/../../../src/qtbeads/../images/imageIntensity.h:7,
from /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/../../../src/qtbeads/properties.h:13,
from /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/../../../src/qtbeads/main_window.h:17,
from /home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/moc_main_window.cpp:9:
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/moc_main_window.cpp:106:33: error: expected unqualified-id before ‘int’
QMetaType::Void, QMetaType::Bool, 10,
^
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/moc_main_window.cpp:106:33: error: expected ‘}’ before ‘int’
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads/moc_main_window.cpp:118:1: error: expected declaration before ‘}’ token
};
^
src/qtbeads/CMakeFiles/qtbeads.dir/build.make:793: die Regel für Ziel „src/qtbeads/CMakeFiles/qtbeads.dir/moc_main_window.cpp.o“ scheiterte
...
somehow the file obj-x86_64-linux-gnu/src/qtbeads/moc_main_window.cpp is
autogenerated and I have no idea where to fix it. The suspicious line 106
looks like this (I added the line numbering to the context):
68 static const uint qt_meta_data_MainWindow[] = {
69
70 // content:
71 7, // revision
72 0, // classname
...
99 // slots: parameters
100 QMetaType::Void,
101 QMetaType::Void,
102 QMetaType::Void,
103 QMetaType::Void,
104 QMetaType::Void,
105 QMetaType::Void, 0x80000000 | 7, 8,
106 QMetaType::Void, QMetaType::Bool, 10,
107 QMetaType::Void,
108 QMetaType::Void,
109 QMetaType::Void,
110 QMetaType::Void,
111 QMetaType::Void,
112 QMetaType::Void,
113 QMetaType::Void, 0x80000000 | 18, 19,
114 QMetaType::Void, 0x80000000 | 18, 19,
115 QMetaType::Void, 0x80000000 | 18, 19,
116
117 0 // eod
118 };
Any hint how to fix this?
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: