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

Unable to compile on Ubuntu 14.04 LTS #59

Closed
asquelt opened this issue Apr 6, 2017 · 4 comments
Closed

Unable to compile on Ubuntu 14.04 LTS #59

asquelt opened this issue Apr 6, 2017 · 4 comments

Comments

@asquelt
Copy link

asquelt commented Apr 6, 2017

this distro is equipped with Qt 5.2.1 and is still supported until April 2019.
obs-studio provides build instructions PPA repository and packages for trusty with ffmpeg-next enabled.

obs-websocket compile breaks on:

/home/travis/build/asquelt/obs-websocket/WSEvents.cpp:81:3: error: no matching function for call to ‘QTimer::singleShot(int, WSEvents::WSEvents(WSServer*)::__lambda0)’
  });
   ^
/home/travis/build/asquelt/obs-websocket/WSEvents.cpp:81:3: note: candidates are:
In file included from /usr/include/qt5/QtCore/QTimer:1:0,
                 from /home/travis/build/asquelt/obs-websocket/WSEvents.cpp:21:
/usr/include/qt5/QtCore/qtimer.h:81:17: note: static void QTimer::singleShot(int, const QObject*, const char*)
     static void singleShot(int msec, const QObject *receiver, const char *member);
                 ^
/usr/include/qt5/QtCore/qtimer.h:81:17: note:   candidate expects 3 arguments, 2 provided
/usr/include/qt5/QtCore/qtimer.h:82:17: note: static void QTimer::singleShot(int, Qt::TimerType, const QObject*, const char*)
     static void singleShot(int msec, Qt::TimerType timerType, const QObject *receiver, const char *member);
                 ^
/usr/include/qt5/QtCore/qtimer.h:82:17: note:   candidate expects 4 arguments, 2 provided

whole build log: https://travis-ci.org/asquelt/obs-websocket/jobs/219241067

Palakis pushed a commit that referenced this issue Apr 14, 2017
@Palakis
Copy link
Contributor

Palakis commented Apr 14, 2017

I modified this call to use a slot instead of a lambda function. Can you try it, please?

@asquelt
Copy link
Author

asquelt commented Apr 14, 2017

yes, that fixed the build.

https://travis-ci.org/asquelt/obs-websocket/jobs/222070782

@Palakis
Copy link
Contributor

Palakis commented Apr 14, 2017

\o/

@Palakis
Copy link
Contributor

Palakis commented Apr 14, 2017

So making Linux builds on Travis works. Once we figure out the problem with OS X builds, you'll be able to submit a PR for Linux and OS X builds on Travis.

@Palakis Palakis closed this as completed Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants