Skip to content

add stub for GetClipboardImage() when building with drm tag#483

Closed
dspasibenko wants to merge 1 commit intogen2brain:masterfrom
dspasibenko:master
Closed

add stub for GetClipboardImage() when building with drm tag#483
dspasibenko wants to merge 1 commit intogen2brain:masterfrom
dspasibenko:master

Conversation

@dspasibenko
Copy link

@dspasibenko dspasibenko commented Jan 9, 2025

The PR suggests to add the GetClipboardImage() stub to make the raylib-go code compilable with the "drm" tag. Without the change I got the linker error that the function GetClipboardImage() is not found.

Tested on Rapberry PI with the drm tag:

go build -ldflags=$(LDFLAGS) -tags "drm noaudio" -o ${BUILD_DIR}/ ./cmd/...

@gen2brain
Copy link
Owner

That should be added in rcore_drm.c, not in the Go file. Similar to #477.

@gen2brain
Copy link
Owner

Is that function already in raylib git? I cannot check at the moment.

@JupiterRider
Copy link
Contributor

Is that function already in raylib git? I cannot check at the moment.

@gen2brain Yes, raysan added it after the 5.5 release:
raysan5/raylib@c78757a#diff-757f4c9c5f0be7473e385fa72b35d509c5af4ee2dc8204d2dbe2418bb9b98922

But geo-stark created a correct PR for this: #484

@gen2brain
Copy link
Owner

Thanks, closing this one.

@gen2brain gen2brain closed this Jan 9, 2025
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

Successfully merging this pull request may close these issues.

3 participants