Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st September 2017
billy_bazooka billy_bazooka is offline
Port Guard
Join Date: Sep 2016
Posts: 29
Default 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

#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;
compile it with
gcc testing.c -o testing `sdl2-config --libs --cflags`
and when i start it i get
err: No available video device
i am missing something really obvious here.. why cant it find a video device?
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT. The time now is 11:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick