GithubHelp home page GithubHelp logo

Comments (6)

gen2brain avatar gen2brain commented on May 26, 2024

I guess you are trying to cross compile for RPi, so libasound2-dev you installed is just for system.
Try just to copy alsa includes to e.g. /usr/local/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/include so compiler can find it by default. mini_al opens alsa on runtime, doesn't link library so that should be ok.

On real device instructions for ubuntu/debian should just work.

from raylib-go.

Pienkaito avatar Pienkaito commented on May 26, 2024

This is interesting. I found out that /usr/local/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/ doesn't have an include folder, so I created one and copied the alsa folder inside.

Sofar no compilation errors. I will report back once I execute the build on my RPI Zero.

from raylib-go.

Pienkaito avatar Pienkaito commented on May 26, 2024

There are some wierd behaviours regarding my RPI build.

Here's a simple code example, that I've tested.

for !raylib.WindowShouldClose() {
	raylib.BeginDrawing()
	raylib.ClearBackground(raylib.RayWhite)

	if raylib.IsKeyDown(raylib.KeyA) {
		raylib.DrawCircle(50, 50, 19, raylib.Blue)
	}
	raylib.EndDrawing()
}

The supposed outcome should be that if I hold the A-Key on my keyboard then it should show a blue circle on the screen.
It does, but it flickers.
The second issue is that I can only execute my build via terminal only. Without it my Raspberry freezes.

As gen2brain said, I've cross-compiled my build with WSL.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

ALSA headers are now included/bundled, also, instructions for Android and RPi are changed.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

@Pienkaito also, see raysan5/raylib#379

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

ALSA headers are not needed anymore, dlopen is used instead.

from raylib-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.