Hi,
I am having trouble executing a really simple sdl2 program I have written to test my sdl2 dev environment. It's really simple:
Problem is that I get a error if I try to execute the binary:
If I compile the same program with my Linux system it's working right. I guess it's something FreeBSD related.
Compile script:
I'm using a radeon rx 480 graphic card.
That is my rc.conf:
It feels like I'm missing something very obvious but I don't know what.
Any help would be nice.
Thanks.
I am having trouble executing a really simple sdl2 program I have written to test my sdl2 dev environment. It's really simple:
Code:
#include <stdio.h>
#include <SDL2/SDL.h>
SDL_Window *win = NULL;
Uint32 render_flags;
SDL_Renderer *rend = NULL;
void
error_check_render() {
if(SDL_Init(SDL_INIT_EVERYTHING) != 0) {
printf("error initializing SDL: %s\n", SDL_GetError());
}
win = SDL_CreateWindow("Bitfroest",
0,
0,
1920, 1080, 0);
render_flags = SDL_RENDERER_ACCELERATED;
rend = SDL_CreateRenderer(win, -1, render_flags);
}
int
main() {
error_check_render();
SDL_DestroyRenderer(rend);
SDL_DestroyWindow(win);
SDL_Quit();
return 0;
}
Code:
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: radeonsi
Compile script:
Code:
#!/bin/sh
clang ./src/render.c -o ./main -L/usr/local/lib -I/usr/local/include -include SDL2/SDL.h -lSDL2mai
n -lSDL2
I'm using a radeon rx 480 graphic card.
That is my rc.conf:
Code:
clear_tmp_enable="YES"
hostname="magi"
keymap="de.kbd"
ifconfig_igb0="DHCP"
ifconfig_igb0_ipv6="inet6 accept_rtadv"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
#sysrc kld_list+=fusefs
#kld_list="fusefs"
nfs_client_enable="YES"
kld_list="amdgpu"
Any help would be nice.
Thanks.