Comments (6)
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.
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.
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.
ALSA headers are now included/bundled, also, instructions for Android and RPi are changed.
from raylib-go.
@Pienkaito also, see raysan5/raylib#379
from raylib-go.
ALSA headers are not needed anymore, dlopen is used instead.
from raylib-go.
Related Issues (20)
- `raygui.TextBox()` space character not working properly HOT 1
- Android build failing, undefined symbol: internal_storage_path & asset_manager HOT 6
- [IMPORTANT] GLFW error and wrong (0,0) position HOT 11
- WASM HOT 1
- Building for Android arm64 HOT 2
- Intermittent SIGBUS: bus error When uploading a custom mesh to gpu HOT 1
- log android HOT 2
- how get jni acces? HOT 9
- cannot locate symbol "internal_storage_path" HOT 12
- Dear IMGUI support HOT 1
- 2 or 3 second build times? HOT 2
- Misleading use of color type RGBA. HOT 2
- No function for `GuiLoadIcons` HOT 1
- Cross compiling error HOT 6
- Can't debug via go-delve on M1 MacOS. (missing rodata struct member) HOT 1
- Issues with using DLL on Windows HOT 1
- Adding `SwapScreenBuffer()` and `PollInputEvents()` functions HOT 3
- Can not build for windows/darwin HOT 2
- errors with camera on fedora HOT 3
- Unable to remove status bar from raygui Panels HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib-go.