dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
432 stars 79 forks source link

Build instructions for tests #87

Closed ysangkok closed 11 years ago

ysangkok commented 11 years ago

A Makefile or build instructions for tests/*.c would be helpful.

ysangkok commented 11 years ago

I am currently building like this:

~/kmscon/tests $ gcc -o test_output -L ../.libs -luterm -leloop test_output.o ../src/conf.c -I ../../libxkbcommon ../../libxkbcommon/.libs/libxkbcommon.a ../src/shl_log.c ../src/shl_githead.c -Wl,-rpath=../.libs

But upon runtime, it doesn't seem to work. I don't know if I am building incorrectly.

$ sudo ./test_output
[sudo] password for janus: 
[0000.000000] NOTICE: ./test_output Revision kmscon-7-42-g4e0b981 Apr 11 2013 16:41:46
[0000.004798] NOTICE: Creating video object using /dev/dri/card0...
[0000.005018] NOTICE: cannot create drm device; trying drm2d mode
[0000.005272] ERROR: init failed, errno -95: Operation not supported
dvdhrm commented 11 years ago

You can use "make check". That should build all tests.

ysangkok commented 11 years ago

Thanks!