[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ help needed (Was: Help with cmake / Qt5 migration needed)



Hi Andreas,

Andreas Tille kirjoitti 21.10.2017 klo 09:22:
Hi Juhani,

thanks a lot for your help.

I'm happy to help you.

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:

...
/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,
                                  ^

Any hint how to fix this?

I did some searching, and this has happened to others[1][2]. This stems from Xlib.h that defines a preprocessor macro called "Bool", and the fix is to #undef Bool.

Then there was link error: libX11.so.6: error adding symbols: DSO missing, which I managed to fix with -lX11.

Please have a look at the git repo[3], branch qt5-patches, where I pushed my fixes.


Juhani

[1] https://forum.qt.io/topic/41817/
[2] http://www.qcustomplot.com/index.php/support/forum/818
[3] https://github.com/jnumm/beads_debian


Reply to: