|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
SDL2 not working in netbsd - "no available video device"
since my sdl2 programs run slow in openbsd, and blazing fast in slackware, i decided to try them on netbsd 7.1
Code:
#include <stdio.h> #include <stdlib.h> #include <SDL.h> void die (char *msg) { fprintf (stderr, "err: %s\n", msg); exit (0x0f); } int main (int ac, char **av) { if (SDL_Init (SDL_INIT_VIDEO)) die (SDL_GetError ()); puts ("SDL init -> OK"); return 0; } Code:
gcc testing.c -o testing `sdl2-config --libs --cflags` Code:
err: No available video device |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difference between"arp info overwritten" and " duplicate IP address " | varag | OpenBSD Security | 1 | 6th April 2015 02:57 PM |
Fresh installation 6.1.2 amd64 freezes in the line "root device" | divel | NetBSD Installation and Upgrading | 2 | 22nd November 2013 07:11 PM |
"no root device found" while installing | kondziq | FreeBSD Installation and Upgrading | 4 | 29th November 2011 10:01 AM |
System stops booting after "GEOM_MIRROR: Force device gm0 start due to timeout." | indienick | FreeBSD General | 1 | 25th March 2010 09:46 PM |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |