Skip to content

Instantly share code, notes, and snippets.

View Fat-Zer's full-sized avatar

Golubev Alexander Fat-Zer

View GitHub Profile
Jun 19 07:27:41 goblin kernel: [141590.752052] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Jun 19 07:27:41 goblin kernel: [141590.752057] ata3.00: failed command: FLUSH CACHE EXT
Jun 19 07:27:41 goblin kernel: [141590.752064] ata3.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0
Jun 19 07:27:41 goblin kernel: [141590.752066] res 40/00:00:00:4f:c2/00:00:00:00:00/40 Emask 0x4 (timeout)
Jun 19 07:27:41 goblin kernel: [141590.752070] ata3.00: status: { DRDY }
Jun 19 07:27:41 goblin kernel: [141590.752077] ata3: hard resetting link
Jun 19 07:27:41 goblin kernel: [141590.752080] ata3: nv: skipping hardreset on occupied port
Jun 19 07:27:46 goblin kernel: [141596.255061] ata3: link is slow to respond, please be patient (ready=0)
Jun 19 07:27:51 goblin kernel: [141600.794065] ata3: SRST failed (errno=-16)
Jun 19 07:27:51 goblin kernel: [141600.794070] ata3: hard resetting link
vm-gentoo-test-amd64 tmp # git clone http://git.trinitydesktop.org/cgit/tdegraphics
Cloning into 'tdegraphics'...
vm-gentoo-test-amd64 tmp # cd tdegraphics/
vm-gentoo-test-amd64 tdegraphics # git submodule init
Submodule 'admin' (http://[email protected]/scm/git/tde-common-admin) registered for path 'admin'
Submodule 'cmake' (http://[email protected]/scm/git/tde-common-cmake) registered for path 'cmake'
vm-gentoo-test-amd64 tdegraphics # git submodule update
Cloning into 'admin'...
remote: Counting objects: 283, done
remote: Finding sources: 100% (283/283)
@Fat-Zer
Fat-Zer / autotools-cmake-convert.pl
Last active March 29, 2020 02:51
autotools-cmake-convert.pl
#!/usr/bin/env perl
# Usage sample:
# find <dir> -iname Makefile.am | while read m; do
# echo "=== processing $m ===";
# ../scripts/autotools-cmake-convert.pl ${m} >"$(dirname $m)/CMakeLists.txt";
# done
use v5.10.1;
use experimental qw(smartmatch);
use File::Basename;
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9de61f2..26c3b5f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,8 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(SOMELIBS vdpau glib-2.0 libswscale libva-glx gl glu REQUIRED)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
+add_custom_target(tests)
+add_dependencies(check test)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ee632d..9de61f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,12 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
enable_testing()
add_subdirectory(tests)
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
+set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH
libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":1".
libva: va_getDriverName() returns -1
[VS] Software VDPAU backend library initialized
[VS] {full} vdp_imp_device_create_x11 display=0xaa5010, screen=0
[VS] warning: failed to initialize libva. No video decode acceleration available.
[VS] {part} VdpOutputSurfaceCreate device=1, rgba_format=VDP_RGBA_FORMAT_A8, width=5, height=5
[VS] {full} VdpOutputSurfacePutBitsNative surface=2, destination_rect=NULL
[VS] {part} VdpOutputSurfaceGetBitsNative surface=2, source_rect=NULL
outputsurface
libva: VA-API version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":1".
libva: va_getDriverName() returns -1
[VS] Software VDPAU backend library initialized
[VS] {full} vdp_imp_device_create_x11 display=0xfd6010, screen=0
[VS] warning: failed to initialize libva. No video decode acceleration available.
[VS] {part} VdpOutputSurfaceCreate device=1, rgba_format=VDP_RGBA_FORMAT_B8G8R8A8, width=509, height=601
[VS] {part} VdpOutputSurfaceCreate device=1, rgba_format=VDP_RGBA_FORMAT_B8G8R8A8, width=509, height=601
[VS] {full} VdpBitmapSurfaceCreate device=1, rgba_format=VDP_RGBA_FORMAT_B8G8R8A8, width=509, height=601,
frequently_accessed=1