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

[patch] QNX 7.0 support #2487

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Closed

[patch] QNX 7.0 support #2487

SDLBugzilla opened this issue Feb 11, 2021 · 1 comment

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.5
Reported for operating system, platform: QNX, All

Comments on the original bug report:

On 2017-06-28 11:23:17 +0000, Elad Lahav wrote:

Created attachment 2782
SDL2 QNX support

The attached diff file implements a video back-end for QNX systems using the Screen compositing window manager. It also fixes a small, but critical, bug in the QSA audio plugin.
The patch was tested on 7.0 x86_64 machines, though it should work on other architectures and, probably, on QNX 6.6 as well. Tested games include uMario (https://github.com/jakowskidev/uMario_Jakowski1) and Pacman (https://github.com/ebuc99/pacman).

The code builds on QNX machines using the standard steps:

./autogen.sh

./configure

make

Or on Linux machines with cross-platform compilation:

./autogen.sh

./configure --build=x86_64-pc-linux-gnu --host x86_64-pc-nto-qnx7.0.0 --prefix=$PWD/dist --disable-pulseaudio

make

On 2017-06-28 18:03:34 +0000, Ryan C. Gordon wrote:

How hard is it to get a QNX build environment going? I'd like to add this to the buildbot, so QNX continues to get build coverage on each commit. Are the development tools available for free somewhere?

--ryan.

On 2017-07-01 05:45:53 +0000, Ryan C. Gordon wrote:

This patch looks good; I'm going to push it in the morning if no one beats me to it.

--ryan.

On 2017-07-01 21:51:11 +0000, Ryan C. Gordon wrote:

This patch is now https://hg.libsdl.org/SDL/rev/28d3a50e276e, thanks!

--ryan.

On 2017-07-01 23:10:23 +0000, wrote:

the patch has a bug on line 110 of /src/video/qnx/keyboard.c: if val == sizeof(key_to_sdl) / sizeof(int), then it will read one past the end of key_to_sdl.

On 2017-07-01 23:52:41 +0000, Ryan C. Gordon wrote:

(In reply to programmerjake from comment # 4)

the patch has a bug on line 110 of /src/video/qnx/keyboard.c: if val ==
sizeof(key_to_sdl) / sizeof(int), then it will read one past the end of
key_to_sdl.

This is now fixed in https://hg.libsdl.org/SDL/rev/e1fc7d3b46fb, thanks!

--ryan.

@rigeltrue
Copy link

Hi, I try to build it on my Linux Ubuntu 16.04 laptop, with QNX SDP 700

The steps are here:
source ~/qnx700/qnxsdp-env.sh
./autogen.sh
./configure --build=x86_64-pc-linux-gnu --host x86_64-pc-nto-qnx7.0.0 --prefix=$PWD/dist --disable-pulseaudio
make

But the building show the error message.
gen/wayland-protocol.c:32:26: fatal error: wayland-util.h: No such file or directory
I have checked qnx700/target/qnx7/usr/include, there is no wayland-util.h in the QNX SDK.

Do you know which step I miss or which configuration need to be set before building?
Thanks

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