Compilation errors

3 views
Skip to first unread message

Christian Vogl

unread,
Nov 16, 2016, 12:20:07 PM11/16/16
to SoundScape Renderer
Hi!

I just wanted to install SSR, but compilation fails on my Archlinux machines (Thinkpads with kernels 4.4 resp. 4.8), but failed with GUI, whereas without GUI I was successful.
I
So it seems as if SSR was not compatible with QT4.8 (?) or my QT5.7 (?)



configure gives the following:



SSR_executables
: ssr-binaural ssr-wfs ssr-generic ssr-brs ssr-nfc-hoa ssr-vbap ssr-aap
CXX
: g++
CFLAGS
: -g -O2
CXXFLAGS
: -g -std=c++11 -O3
CPPFLAGS
:
PKG_FLAGS
: -I/usr/include/libxml2 -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/qt4/QtCore
OPT_FLAGS
: -fomit-frame-pointer -ffast-math -funroll-loops -march=k8 -mmmx -msse -mfpmath=sse -msse2 -mfpmath=sse
WARNING_FLAGS
: -Wall -Wextra -pedantic -Wno-long-long -Winit-self -Wcast-align -Wmissing-declarations -Wredundant-decls -Woverloaded-virtual -Wnon-virtual-dtor -Wwrite-strings -Wstrict-overflow=0
DEBUGGING_FLAGS
: -DNDEBUG
LIBS
: -lGL -lGLU -lsndfile -lfftw3f -ljack -lpthread -lxml2 -lQtOpenGL -lQtGui -lQtCore -lboost_system -lboost_thread
LDFLAGS
:


| Build with tracker support:
|    InterSense .......................... : no
|    Polhemus Fastrak .................... : yes
|    Razor AHRS .......................... : yes
|    VRPN ................................ : no
|
| Build with Ecasound support ............ : no
| Build with IP interface ................ : yes
| Build with GUI ......................... : yes (floating)
|
| Enable debugging/optimization .......... : no/yes
| Install prefix ......................... : /usr/local



I'm a bit confused about the use of qt4 here (which I have also installed) – main qt version would be qt5.
But Makefile states explicitly qt4, so I guess this is ok.


make then stops at 

make
[2]: *** [Makefile:1125: gui/qclicktextlabel_moc.o] Error 1
make
[2]: Leaving directory '/home/voc10004/priv/auch_musik/ssr/ssr-0.4.1/src'
make
[1]: *** [Makefile:840: all] Error 2
make
[1]: Leaving directory '/home/voc10004/priv/auch_musik/ssr/ssr-0.4.1/src'
make
: *** [Makefile:481: all-recursive] Error 1


When it entered compiling  _moc, it already showed the following error:


gui
/qclicktextlabel_moc.cpp:15:2: error: #error "This file was generated using the moc from 5.7.0. It"
 
#error "This file was generated using the moc from 5.7.0. It"
 
^~~~~
gui
/qclicktextlabel_moc.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt."
 
#error "cannot be used with the include files from this version of Qt."
 
^~~~~
gui
/qclicktextlabel_moc.cpp:17:2: error: #error "(The moc has changed too much.)"
 
#error "(The moc has changed too much.)"


QT's  moc is installed:


> moc
-qt4 -v    
Qt Meta Object Compiler version 63 (Qt 4.8.7)



Any hint what I could change in configuration to also get the GUI?

Thanks in advance,
Christian

Matthias Geier

unread,
Nov 16, 2016, 12:39:28 PM11/16/16
to Christian Vogl, SoundScape Renderer
Hi Christian.

Yes, the SSR uses Qt 4 for now, but very soon it will use Qt 5, see
https://github.com/SoundScapeRenderer/ssr/pull/58.
If you want, you can already try this branch.

If not, here are some hints which maybe help:

The configure script searches for a program called "moc" and I guess
in your case it finds the Qt 5 version of it.
If you have local bin directory -- e.g. $HOME/bin -- you could try to
make a symbolic link there with the name "moc" linking to "mod-qt4".
If not, you could try temporarily disabling the "moc" binary and
renaming "moc-qt4" to "moc".

Alternatively, you could open configure.ac, search for "moc" and
change it to "moc-qt4".
Then you'll have to run ./autogen.sh to update the configure script.

cheers,
Matthias
> --
> You received this message because you are subscribed to the Google Groups
> "SoundScape Renderer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to SoundScapeRende...@googlegroups.com.
> To post to this group, send email to SoundScap...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/SoundScapeRenderer/a8e42284-16e5-4e05-9b24-63fe80f032b0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Matthias Geier

unread,
Nov 18, 2016, 5:11:00 PM11/18/16
to Christian Vogl, SoundScape Renderer
Hi Christian.

Have you been successful in compiling the SSR with Qt4 in the meantime?

I just found out that there is a much simpler way to select Qt4, this
maybe also works on Arch Linux:

export QT_SELECT=4

You'll probably need the "qtchooser" package for that to work.

On Debian, there is also a "qt4-default" package, which selects Qt4 as
system-wide default.

cheers,
Matthias

Christian Vogl

unread,
Nov 21, 2016, 11:07:15 AM11/21/16
to SoundScape Renderer, chr.a...@googlemail.com
Hey Matthias,
with moc-qt4 it did not compile.

But I tried the qt5 approach on Friday, with  chohner's pull request on one of my machines: 
after a bit of PIC-tinkering I was able to install SSR with GUI.

Thanks for your support!

I'll try the qt-chooser approach on the other machine this week and let you know!
/cav
Reply all
Reply to author
Forward
0 new messages