psemiletov / tea-qt

TEA text editor
https://tea.ourproject.org
GNU General Public License v3.0
89 stars 13 forks source link

fatal error: 'linux/joystick.h' file not found #19

Closed ryandesign closed 6 years ago

ryandesign commented 6 years ago

Hello,

TEA 45.0.0 fails to build on macOS 10.12.6 with this error:

In file included from rvln.cpp:73:
In file included from ./rvln.h:52:
In file included from ./document.h:52:
./myjoystick.h:14:10: fatal error: 'linux/joystick.h' file not found
#include <linux/joystick.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [rvln.o] Error 1
psemiletov commented 6 years ago

Thank you! Now it is fixed (I hope), as I've added some ifdefs to the code to check MacOS.

ryandesign commented 6 years ago

Thanks. It looks like it's actually supposed to be Q_OS_MAC not Q_OS_MACOS. If I make that change, it builds.

daniloegea commented 6 years ago

Hello.

You should use Q_OS_LINUX where you use the Joystick feature. I am the maintainer of the FreeBSD's port of tea and the new version is not building (same problem) :(

psemiletov commented 6 years ago

Thanks for the report, fixed!

daniloegea commented 6 years ago

Fixed on FreeBSD. Thanks! ;)

psemiletov commented 6 years ago

Thank you for cooperation :)