Help needed to compile on ReadyNAS OS 6 x86
Status: Beta
Brought to you by:
aadmiraal
Wanting to get lximediacenter run on readynas. I try to compile from Sources but get following error:
In file included from ../../../include/LXiCore:8:0:
../../../include/liblxicore/sapplication.h:203:61: error: ‘QMessageLogContext’ does not name a type
../../../include/liblxicore/sapplication.h:203:80: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
May you assist in what I need to do to resolve this?
You get this error because the Qt version you are compiling against is not correct. You should use Qt 5 for the latest release, you can set it default by installing the "qt5-default" package.
You could also try pbuilder to build a deb package, it will automatically install the right build environment in a sanbox.
Thanks, I was just following the ReadMe which refer to qt4 dependencies. I have now tested succesfully the compile with qt5 on Ubuntu (had also to install libqt5webkit5-dev in addtion to qt5-default), but qt5 unfortunately does not install on ReadyNas OS6 (Unable to locate package qt5-default). I am currently using OS6 v6.1.9 and will make a new try with 6.2 once the addons I am using get compatible with that version. For now I think I should try an older version of lxi media that is using qt4. qt4 environment installs fine on readynas.
I've removed the dependency with Qt in the 0.5.0 release, this should make it easier to compile on ReadyNAS OS.
Made a new compilation attempt with lximedia v0.5. This time I have another error (Unknown CMake command "target_include_directories") which from my research is due to the version used of cmake in Readynas OS6. Readynas OS6 seems to use Debian Wheezy (Stable) shipped with cmake v2.8.9-1 while this "target_include_directories" seems to require at least v2.8.11. If that is the case would it be possible to get a make file compatible with Debian Stable?
I've made some changes to make the 0.5.0 version compile and work on Debian Stable (7.8), you can get this code from SVN:
svn checkout svn://svn.code.sf.net/p/lximedia/code/branches/lximediaserver-0.5.0 lximediaserver
Thanks it now compiles on my readynas OS 6.2 with this debian version. Will you also create the .deb installer, or should I investigate how to create those? I believe I would need the startup scripts.