Use /usr/lib64 instead of /usr/lib, which makes it compatible with gentoo
This commit is contained in:
parent
97e0a6ad1b
commit
f81bdfb29e
@ -38,4 +38,4 @@ FFMPEG only uses the GPU with CUDA when doing transcoding from an input video to
|
|||||||
libraries at compile-time.
|
libraries at compile-time.
|
||||||
* Clean up the code!
|
* Clean up the code!
|
||||||
* Fix segfault in debug mode (happens because audio codec becomes NULL?)
|
* Fix segfault in debug mode (happens because audio codec becomes NULL?)
|
||||||
* Dynamically change bitrate to match desired fps. This would be helpful when streaming for example, where the encode output speed also depends on upload speed to the stream service.
|
* Dynamically change bitrate/resolution to match desired fps. This would be helpful when streaming for example, where the encode output speed also depends on upload speed to the streaming service.
|
||||||
|
2
build.sh
2
build.sh
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
dependencies="glew libavcodec libavformat libavutil x11 xcomposite glfw3 libpulse-simple libswresample"
|
dependencies="glew libavcodec libavformat libavutil x11 xcomposite glfw3 libpulse-simple libswresample"
|
||||||
includes="$(pkg-config --cflags $dependencies) -I/opt/cuda/targets/x86_64-linux/include"
|
includes="$(pkg-config --cflags $dependencies) -I/opt/cuda/targets/x86_64-linux/include"
|
||||||
libs="$(pkg-config --libs $dependencies) /usr/lib/libcuda.so -ldl -pthread -lm"
|
libs="$(pkg-config --libs $dependencies) /usr/lib64/libcuda.so -ldl -pthread -lm"
|
||||||
g++ -c src/sound.cpp -O2 $includes -DPULSEAUDIO=1
|
g++ -c src/sound.cpp -O2 $includes -DPULSEAUDIO=1
|
||||||
g++ -c src/main.cpp -O2 $includes -DPULSEAUDIO=1
|
g++ -c src/main.cpp -O2 $includes -DPULSEAUDIO=1
|
||||||
g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs
|
g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs
|
||||||
|
@ -33,7 +33,7 @@ int sound_device_get_by_name(SoundDevice *device, const char *name, unsigned int
|
|||||||
|
|
||||||
pa_simple *pa_handle = pa_simple_new(nullptr, "gpu-screen-recorder", PA_STREAM_RECORD, name, "record", &ss, nullptr, nullptr, &error);
|
pa_simple *pa_handle = pa_simple_new(nullptr, "gpu-screen-recorder", PA_STREAM_RECORD, name, "record", &ss, nullptr, nullptr, &error);
|
||||||
if(!pa_handle) {
|
if(!pa_handle) {
|
||||||
fprintf(stderr, "pa_simple_new() failed: %s\n", pa_strerror(error));
|
fprintf(stderr, "pa_simple_new() failed: %s. Audio input device %s might not be valid\n", pa_strerror(error), name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user