Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18.04 support #393

Closed
orschiro opened this issue Nov 24, 2017 · 10 comments

Comments

Projects
None yet
3 participants
@orschiro
Copy link

commented Nov 24, 2017

Hello all,

Is there already any way to run tizonia on Ubuntu 18.04?

Thank you!

@orschiro orschiro changed the title Ubuntu 18.04 Ubuntu 18.04 support Nov 24, 2017

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 24, 2017

Hi!,

There are no official binaries just yet, since 18.04 will come out next year. But Tizonia can be built from source, if you are up to the challenge and have a bit of time in your hands.

Any of the methods outlined here would work:
https://github.com/tizonia/tizonia-openmax-il/blob/master/BUILDING.md#building-from-source

@orschiro

This comment has been minimized.

Copy link
Author

commented Nov 24, 2017

Thanks for your quick reply!

I may give these a try.

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 24, 2017

Sure, if you encounter any issues, just drop a line here!.

@vervaekejonathan

This comment has been minimized.

Copy link

commented Nov 25, 2017

Building it on 17.10, I'm getting this issue:

bin/mkdir -p '/home/J/tizonia/lib/pkgconfig'
/usr/bin/install -c -m 644 libtizplatform.pc '/home/J/tizonia/lib/pkgconfig'
Making install in rm
Making install in tizrmd
Making install in dbus
generating code for interface com.aratelia.tiz.tizrmif...
generating code for interface com.aratelia.tiz.tizrmif...
/bin/mkdir -p '/home/J/tizonia/share/dbus-1/services'
/bin/mkdir -p '/home/J/tizonia/include/tizonia'
/usr/bin/install -c -m 644 com.aratelia.tiz.rm.service '/home/J/tizonia/share/dbus-1/services'
/usr/bin/install -c -m 644 tizrmtypes.h tizrmd-dbus.hh tizrmproxy-dbus.hh '/home/J/tizonia/include/tizonia'
Making install in data
-e Populating /home/J/tizonia/tizonia-openmax-il/rm/tizrmd/data/tizrm.db using >/home/J/tizonia/tizonia-openmax-il/rm/tizrmd/data/tizonia-rm-db-initial.sql3...
-e Done.
/bin/mkdir -p '/home/J/tizonia/bin'
/bin/mkdir -p '/home/J/tizonia/share/tizrmd'
/usr/bin/install -c tizonia-rm-db-dump.sh tizonia-rm-db-generate.sh '/home/J/tizonia/bin'
/usr/bin/install -c -m 644 tizonia-rm-db-initial.sql3 tizrm.db '/home/J/tizonia/share/tizrmd'
Making install in src
CXX tizrmd-tizrmd.o
CXX tizrmd-tizrmdb.o
In file included from /usr/include/dbus-c++-1/dbus-c++/server.h:34:0,
from /usr/include/dbus-c++-1/dbus-c++/dbus.h:33,
from tizrmd.hpp:46,
from tizrmd.cpp:43:
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h: In static member function ‘static void DBus::Threading<Mx, Cv>::init()’:
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:262:5: error: no matching function for call to ‘_init_threading(DBus::Mutex* (&)(), void (&)(DBus::Mutex*), void (&)(DBus::Mutex*), void (&)(DBus::Mutex*), DBus::CondVar* (&)(), void (&)(DBus::CondVar*), void (&)(DBus::CondVar*, DBus::Mutex*), bool (&)(DBus::CondVar*, DBus::Mutex*, int), void (&)(DBus::CondVar*), void (&)(DBus::CondVar*))’
);
^
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:247:13: note: candidate: void DBus::_init_threading()
void DXXAPI _init_threading();
^~~~~~~~~~~~~~~
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:247:13: note: candidate expects 0 arguments, 10 provided
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:249:13: note: candidate: void DBus::_init_threading(DBus::MutexNewFn, DBus::MutexFreeFn, DBus::MutexLockFn, DBus::MutexUnlockFn, DBus::CondVarNewFn, DBus::CondVarFreeFn, DBus::CondVarWaitFn, DBus::CondVarWaitTimeoutFn, DBus::CondVarWakeOneFn, DBus::CondVarWakeAllFn)
void DXXAPI _init_threading(
^~~~~~~~~~~~~~~
/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:249:13: note: conversion of argument 3 would be ill-formed:
Makefile:479: recept voor doel 'tizrmd-tizrmd.o' is mislukt
make[4]: *** [tizrmd-tizrmd.o] Fout 1

Posting it here since this probably will also affect 18.04, since the internet tells me this has to do with a GCC update.

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 26, 2017

Hi!,
I see. It's strange though. 17.10 shipped with gcc 7.2 (https://launchpad.net/ubuntu/artful/+source/gcc-7) and tizonia builds fine with 7.2 on Arch distros. So I'm thinking that there must be something else going on.

I'll have a look.

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 26, 2017

I believe there has been some backguard-incompatible change somewhere in DBUS, and possibly libdbuscxx has not been updated to absorve it... It is just a theory, I have not investigated further yet...

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 26, 2017

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Nov 26, 2017

I've been looking around and it seems that this dbus-c++ fork seems to contain a number of fixes that would allow Tizonia to build correctly in 17.10 and 18.04
https://github.com/pkgw/dbus-cplusplus

Next step is to asses whether to embed this fork in Tizonia or perhaps try to move to another C++-based DBUS option altogether. Tough choice!

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Dec 10, 2017

Closing this issue. Tizonia now builds and runs correctly on Ubuntu 18.04.

See #413.

@juanrubio juanrubio closed this Dec 10, 2017

@orschiro

This comment has been minimized.

Copy link
Author

commented Dec 10, 2017

@juanrubio thank you for the fix! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.