CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
911 stars 268 forks source link

Build under Ubuntu 16 failure. #877

Closed maceyldn closed 6 years ago

maceyldn commented 6 years ago

Hi All,

Been away from the project for a while i apologise! Work got in the way.

I thought i would have a go at building under Ubuntu Xenial. (2.2.0 / master)

After apt-get installing a lot of dependencies and installing CEF and boost 1.66.

On 'make -j8' I receive the following..

[ 60%] Built target libcef_dll_wrapper [ 66%] Built target common [ 66%] Building CXX object core/CMakeFiles/core.dir/mixer/image/blend_modes.cpp.o [ 66%] Building CXX object core/CMakeFiles/core.dir/frame/draw_frame.cpp.o [ 67%] Building CXX object core/CMakeFiles/core.dir/frame/frame_transform.cpp.o [ 67%] Building CXX object core/CMakeFiles/core.dir/frame/geometry.cpp.o [ 67%] Building CXX object core/CMakeFiles/core.dir/mixer/mixer.cpp.o [ 68%] Building CXX object core/CMakeFiles/core.dir/mixer/audio/audio_mixer.cpp.o [ 69%] Building CXX object core/CMakeFiles/core.dir/producer/color/color_producer.cpp.o [ 69%] Building CXX object core/CMakeFiles/core.dir/producer/separated/separated_producer.cpp.o In file included from /root/casparcg-server-master/src/core/frame/frame_transform.cpp:21:0: /root/casparcg-server-master/src/core/frame/frame_transform.h:67:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:67:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:68:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ur = {1.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:68:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:69:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:69:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:70:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ll = {0.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:70:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:75:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:75:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:76:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:76:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:86:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> anchor = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:86:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:87:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:87:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:88:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:88:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:89:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:89:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:90:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:90:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:99:36: error: ‘blend_mode’ is not a class, namespace, or enumeration core::blend_mode blend_mode = blend_mode::normal; ^ In file included from /root/casparcg-server-master/src/core/frame/draw_frame.cpp:24:0: /root/casparcg-server-master/src/core/frame/frame_transform.h:67:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:67:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:68:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ur = {1.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:68:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:69:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:69:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:70:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ll = {0.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:70:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:75:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:75:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:76:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:76:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:86:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> anchor = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:86:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:87:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:87:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:88:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:88:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:89:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:89:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:90:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/frame/frame_transform.h:90:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/frame/frame_transform.h:99:36: error: ‘blend_mode’ is not a class, namespace, or enumeration core::blend_mode blend_mode = blend_mode::normal; ^ In file included from /root/casparcg-server-master/src/core/mixer/audio/audio_mixer.cpp:27:0: /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:67:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:67:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:68:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ur = {1.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:68:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:69:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:69:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:70:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ll = {0.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:70:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:75:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:75:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:76:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:76:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:86:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> anchor = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:86:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:87:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:87:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:88:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:88:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:89:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:89:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:90:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:90:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:99:36: error: ‘blend_mode’ is not a class, namespace, or enumeration core::blend_mode blend_mode = blend_mode::normal; ^ In file included from /root/casparcg-server-master/src/core/mixer/mixer.cpp:40:0: /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:67:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:67:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:68:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ur = {1.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:68:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:69:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:69:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:70:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ll = {0.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:70:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:75:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> ul = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:75:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:76:41: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> lr = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:76:41: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:86:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> anchor = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:86:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:87:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:87:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:88:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> fill_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:88:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:89:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_translation = {0.0, 0.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:89:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:90:55: error: array must be initialized with a brace-enclosed initializer std::array<double, 2> clip_scale = {1.0, 1.0}; ^ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:90:55: error: too many initializers for ‘std::array<double, 2ul>’ /root/casparcg-server-master/src/core/../core/frame/frame_transform.h:99:36: error: ‘blend_mode’ is not a class, namespace, or enumeration core::blend_mode blend_mode = blend_mode::normal; ^ cc1plus: warning: unrecognized command line option ‘-Wno-terminate’ core/CMakeFiles/core.dir/build.make:229: recipe for target 'core/CMakeFiles/core.dir/frame/frame_transform.cpp.o' failed make[2]: [core/CMakeFiles/core.dir/frame/frame_transform.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... cc1plus: warning: unrecognized command line option ‘-Wno-terminate’ core/CMakeFiles/core.dir/build.make:177: recipe for target 'core/CMakeFiles/core.dir/frame/draw_frame.cpp.o' failed make[2]: [core/CMakeFiles/core.dir/frame/draw_frame.cpp.o] Error 1 cc1plus: warning: unrecognized command line option ‘-Wno-terminate’ core/CMakeFiles/core.dir/build.make:281: recipe for target 'core/CMakeFiles/core.dir/mixer/audio/audio_mixer.cpp.o' failed make[2]: [core/CMakeFiles/core.dir/mixer/audio/audio_mixer.cpp.o] Error 1 cc1plus: warning: unrecognized command line option ‘-Wno-terminate’ core/CMakeFiles/core.dir/build.make:333: recipe for target 'core/CMakeFiles/core.dir/mixer/mixer.cpp.o' failed make[2]: [core/CMakeFiles/core.dir/mixer/mixer.cpp.o] Error 1 CMakeFiles/Makefile2:197: recipe for target 'core/CMakeFiles/core.dir/all' failed make[1]: [core/CMakeFiles/core.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Is this me? or is src/core/frame/frame_transform.h broken?

Thanks Andy

CMake Output

root@xxx:~/casparcg-server-master/build# cmake ../src/ -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Setting build type to 'Release' as none was specified. -- Found Git: /usr/bin/git (found version "2.7.4") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.66.0 -- Found the following Boost libraries: -- system -- thread -- chrono -- filesystem -- log -- locale -- regex -- date_time -- coroutine -- atomic -- log_setup -- context -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'libavcodec' -- Found libavcodec, version 58.11.101 -- Checking for module 'libavformat' -- Found libavformat, version 58.9.100 -- Checking for module 'libavdevice' -- Found libavdevice, version 58.1.100 -- Checking for module 'libavutil' -- Found libavutil, version 56.7.101 -- Checking for module 'libavfilter' -- Found libavfilter, version 7.12.100 -- Checking for module 'libswscale' -- Found libswscale, version 5.0.101 -- Checking for module 'libpostproc' -- Found libpostproc, version 55.0.100 -- Checking for module 'libswresample' -- Found libswresample, version 3.0.101 -- Found FFmpeg: avcodec;vpx;m;vpx;m;vpx;m;vpx;m;lzma;z;fdk-aac;mp3lame;m;opus;t heoraenc;theoradec;ogg;vorbis;vorbisenc;webp;x264;x265;dl;swresample;m;avutil;m; dl;avformat;m;bz2;z;ssl;crypto;rtmp;z;gmp;avcodec;vpx;m;vpx;m;vpx;m;vpx;m;lzma;z ;fdk-aac;mp3lame;m;opus;theoraenc;theoradec;ogg;vorbis;vorbisenc;webp;x264;x265; dl;swresample;m;avutil;m;dl;avutil;m;dl;avdevice;Xv;X11;Xext;m;xcb;xcb-shm;xcb;x cb-shape;xcb;xcb-xfixes;xcb-render;xcb-shape;xcb;asound;SDL2;sndio;avfilter;m;as s;freetype;dl;avresample;m;swscale;m;postproc;m;avformat;m;bz2;z;ssl;crypto;rtmp ;z;gmp;avcodec;vpx;m;vpx;m;vpx;m;vpx;m;lzma;z;fdk-aac;mp3lame;m;opus;theoraenc;t heoradec;ogg;vorbis;vorbisenc;webp;x264;x265;dl;swresample;m;avutil;m;dl;avfilte r;m;ass;freetype;dl;avresample;m;swscale;m;postproc;m;avformat;m;bz2;z;ssl;crypt o;rtmp;z;gmp;avcodec;vpx;m;vpx;m;vpx;m;vpx;m;lzma;z;fdk-aac;mp3lame;m;opus;theor aenc;theoradec;ogg;vorbis;vorbisenc;webp;x264;x265;dl;swresample;m;avutil;m;dl;p ostproc;m;avutil;m;dl;swscale;m;avutil;m;dl;swresample;m;avutil;m;dl -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so -- Looking for FreeImage -- libraries : /usr/lib/x86_64-linux-gnu/libfreeimage.so from -- includes : /usr/include -- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so -- Found GLEW: /usr/include -- Found libsndfile: /usr/lib/x86_64-linux-gnu/libsndfile.so -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so -- Looking for XOpenDisplay in /usr/lib/x8664-linux-gnu/libX11.so;/usr/lib/x86 64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x8664-linux-gnu/libX11.so;/usr/lib/x86 64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so -- Found GLFW: /usr/include (found version "2.7.9") -- Found SFML 2.3.2 in /usr/include -- Supported target platform: ubuntu16.04 -- Target platform: ubuntu16.04 -- Target architecture: x86_64 -- CPU Count: 2 -- Target build type: Release -- Build Version: 2.2.0 Beta 1 (Revision: 3300-fc8b06b) ogl/image/image_kernel.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mast er/build/accelerator/accelerator_pch/StdAfx.h" ogl/image/image_mixer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/accelerator/accelerator_pch/StdAfx.h" ogl/image/image_shader.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mast er/build/accelerator/accelerator_pch/StdAfx.h" ogl/util/buffer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/buil d/accelerator/accelerator_pch/StdAfx.h" ogl/util/device.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/buil d/accelerator/accelerator_pch/StdAfx.h" ogl/util/shader.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/buil d/accelerator/accelerator_pch/StdAfx.h" ogl/util/texture.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bui ld/accelerator/accelerator_pch/StdAfx.h" accelerator.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/ac celerator/accelerator_pch/StdAfx.h" StdAfx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/acceler ator/accelerator_pch/StdAfx.h" diagnostics/graph.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bu ild/common/common_pch/stdafx.h" gl/gl_check.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/co mmon/common_pch/stdafx.h" base64.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common/ common_pch/stdafx.h" env.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common/com mon_pch/stdafx.h" filesystem.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/com mon/common_pch/stdafx.h" log.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common/com mon_pch/stdafx.h" stdafx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common/ common_pch/stdafx.h" tweener.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common /common_pch/stdafx.h" utf.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/common/com mon_pch/stdafx.h" os/linux/filesystem.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/ build/common/common_pch/stdafx.h" os/linux/prec_timer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/ build/common/common_pch/stdafx.h" os/linux/thread.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/buil d/common/common_pch/stdafx.h" consumer/frame_consumer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/core/core_pch/StdAfx.h" consumer/output.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/buil d/core/core_pch/StdAfx.h" diagnostics/call_context.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-ma ster/build/core/core_pch/StdAfx.h" diagnostics/osd_graph.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/core/core_pch/StdAfx.h" frame/draw_frame.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bui ld/core/core_pch/StdAfx.h" frame/frame.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/co re/core_pch/StdAfx.h" frame/frame_transform.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/core/core_pch/StdAfx.h" frame/geometry.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build /core/core_pch/StdAfx.h" mixer/audio/audio_mixer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/core/core_pch/StdAfx.h" mixer/image/blend_modes.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/core/core_pch/StdAfx.h" mixer/mixer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/co re/core_pch/StdAfx.h" producer/color/color_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-serv er-master/build/core/core_pch/StdAfx.h" producer/separated/separated_producer.cpp"-Winvalid-pch" "-include" "/root/caspa rcg-server-master/build/core/core_pch/StdAfx.h" producer/transition/transition_producer.cpp"-Winvalid-pch" "-include" "/root/cas parcg-server-master/build/core/core_pch/StdAfx.h" producer/route/route_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-serv er-master/build/core/core_pch/StdAfx.h" producer/cg_proxy.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bu ild/core/core_pch/StdAfx.h" producer/frame_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/core/core_pch/StdAfx.h" producer/layer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build /core/core_pch/StdAfx.h" producer/stage.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build /core/core_pch/StdAfx.h" StdAfx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/core/co re_pch/StdAfx.h" video_channel.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/ core/core_pch/StdAfx.h" video_format.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/c ore/core_pch/StdAfx.h" producer/av_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master /build/modules/ffmpeg/ffmpeg_pch/StdAfx.h" producer/av_input.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bu ild/modules/ffmpeg/ffmpeg_pch/StdAfx.h" util/av_util.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/m odules/ffmpeg/ffmpeg_pch/StdAfx.h" producer/ffmpeg_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-ma ster/build/modules/ffmpeg/ffmpeg_pch/StdAfx.h" consumer/ffmpeg_consumer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-ma ster/build/modules/ffmpeg/ffmpeg_pch/StdAfx.h" ffmpeg.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/modules /ffmpeg/ffmpeg_pch/StdAfx.h" StdAfx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/modules /ffmpeg/ffmpeg_pch/StdAfx.h" consumer/decklink_consumer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server- master/build/modules/decklink/decklink_pch/StdAfx.h" producer/decklink_producer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server- master/build/modules/decklink/decklink_pch/StdAfx.h" decklink.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/modul es/decklink/decklink_pch/StdAfx.h" StdAfx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/modules /decklink/decklink_pch/StdAfx.h" linux_interop/DeckLinkAPIDispatch.cpp"-Winvalid-pch" "-include" "/root/casparcg- server-master/build/modules/decklink/decklink_pch/StdAfx.h" -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS -- Performing Test COMPILER_SUPPORTS_NO_UNUSED_LOCAL_TYPEDEFS - Success -- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX -- Performing Test COMPILER_SUPPORTS_NO_LITERAL_SUFFIX - Success -- Performing Test COMPILER_SUPPORTS_NO_NARROWING -- Performing Test COMPILER_SUPPORTS_NO_NARROWING - Success amcp/AMCPCommandQueue.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/protocol/protocol_pch/StdAfx.h" amcp/AMCPCommandsImpl.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/protocol/protocol_pch/StdAfx.h" amcp/AMCPProtocolStrategy.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-m aster/build/protocol/protocol_pch/StdAfx.h" amcp/amcp_command_repository.cpp"-Winvalid-pch" "-include" "/root/casparcg-serve r-master/build/protocol/protocol_pch/StdAfx.h" cii/CIICommandsImpl.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/ build/protocol/protocol_pch/StdAfx.h" cii/CIIProtocolStrategy.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/protocol/protocol_pch/StdAfx.h" clk/CLKProtocolStrategy.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mas ter/build/protocol/protocol_pch/StdAfx.h" clk/clk_commands.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bui ld/protocol/protocol_pch/StdAfx.h" clk/clk_command_processor.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-m aster/build/protocol/protocol_pch/StdAfx.h" osc/oscpack/OscOutboundPacketStream.cpp"-Winvalid-pch" "-include" "/root/casparc g-server-master/build/protocol/protocol_pch/StdAfx.h" osc/oscpack/OscPrintReceivedElements.cpp"-Winvalid-pch" "-include" "/root/caspar cg-server-master/build/protocol/protocol_pch/StdAfx.h" osc/oscpack/OscReceivedElements.cpp"-Winvalid-pch" "-include" "/root/casparcg-se rver-master/build/protocol/protocol_pch/StdAfx.h" osc/oscpack/OscTypes.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master /build/protocol/protocol_pch/StdAfx.h" osc/client.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/pro tocol/protocol_pch/StdAfx.h" util/AsyncEventServer.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-maste r/build/protocol/protocol_pch/StdAfx.h" util/lock_container.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/ build/protocol/protocol_pch/StdAfx.h" util/strategy_adapters.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-mast er/build/protocol/protocol_pch/StdAfx.h" util/http_request.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/bu ild/protocol/protocol_pch/StdAfx.h" StdAfx.cpp"-Winvalid-pch" "-include" "/root/casparcg-server-master/build/protoco l/protocol_pch/StdAfx.h" -- Configuring done -- Generating done -- Build files have been written to: /root/casparcg-server-master

Julusian commented 6 years ago

What version of GCC are you using? It looks like it could be too old

maceyldn commented 6 years ago

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0

Julusian commented 6 years ago

Yes, so I know that GCC7.3 works but not 6.3 or newer. not really sure where the cutoff lies between those. You could try with a newer GCC via backports, if the version provided is new enough, or you could try using clang as the compiler instead as it may work better

maceyldn commented 6 years ago

I'll report back. thanks Julusian

ronag commented 6 years ago

@maceyldn why not just the docker files for building?

Julusian commented 6 years ago

The docker files build for artful (17.10) not xenial (16.04). As we now use system libraries a lot, it is unlikely to run as the system libraries will be all different versions. The only way to use the docker version would be to run it in docker, which then adds some complication to figure out what to pass in

maceyldn commented 6 years ago

@ronag

root@xxx:~/casparcg-server-master# tools/linux/build-in-docker Sending build context to Docker daemon 1.085 GB Step 1/15 : FROM casparcg/base:1.1.0 as build-casparcg Error parsing reference: "casparcg/base:1.1.0 as build-casparcg" is not a valid repository/tag: invalid reference format

I'll spin up a artful ubuntu vm tommorow and try it.

Julusian commented 6 years ago

as you are on xenial, I suspect your docker is too old to be able to run those docker files. they use features added in docker 17.05. I think following the steps on https://docs.docker.com/install/linux/docker-ce/ubuntu/ will install a new enough version, but then you will still need to figure out how to run it

maceyldn commented 6 years ago

ok, upgraded to artful, installed docker-ce package from the docker repo. and successfully built.

Happy to write out a full list of instructions in the BUILDING.md Will start with a fresh OS install tommorow

dotarmin commented 6 years ago

The docker files build for artful (17.10) not xenial (16.04)

As far as I know we should support 16.04 LTS, have I missed something? Just curious 😄 ping @k0d @ronag

ronag commented 6 years ago

@dotarmin it runs on 16.04. I just doesn't build on 16:04 out of the box. Need proper docker version (should be documented).

BesedinSasha commented 6 years ago

Build doesn't work on Ubuntu 16.04

bin/casparcg: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by lib/libudev.so.1)
bin/casparcg: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by lib/libsystemd.so.0)
mint-dewit commented 6 years ago

Can confirm docker builds don't run on Ubuntu 16.04, you need to install the build dependencies, compile ffmpeg outside of docker and compile casparcg outside of docker with gcc 7.3

Perhaps this could be done with some modifications to the docker scripts as well.

Although, technically (by installing the right version of libc, which is a rather complicated thing) it should be possible to run on 16.04, I would not call it a supported platform ;-)

ronag commented 6 years ago

Ah, I see. It should probably be changed to a static compile. Feel free to PR. Yes, it seems we support Ubuntu 17.04 at the moment.

maceyldn commented 6 years ago

Working on the PR, just re-testing to ensure all works ok.

dotarmin commented 6 years ago

Working on the PR, just re-testing to ensure all works ok.

Thanks!

Best regards, Armin

BesedinSasha commented 6 years ago

Maybe we should support LTS versions of Ubuntu? Also will be fine support latest Debian. Thanks

dotarmin commented 6 years ago

Maybe we should support LTS versions of Ubuntu? Also will be fine support latest Debian. Thanks

@Besedin86, the goal is to target only LTS version of Ubuntu but we are not their just yet. Thanks for feedback.

k0d commented 6 years ago

I suggest to use 17.10 for now as CasparCG for Linux is still kind of beta. Then when 18.04 LTS is released...any effort is focussed on supporting that.

dotarmin commented 6 years ago

I suggest to use 17.10 for now as CasparCG for Linux is still kind of beta.

Well, both yes and no @k0d, CapsarCG Server for Linux has been working okey (alright, some glitches here and there) but for the most part it has been working okey on 14.04 LTS.

Why is 17.10 better over 16.04 LTS (except going over to gnome). We could absolutely wait for 18.04 LTS but being able to go right away to 18.04 LTS when it's released won't be the case (I guess??) and we have to wait 3-4 months for the major bugs to be fixed in 18.04.

For me it's okey to wait that time and put effort on supporting 18.04 LTS instead and future LTS versions. I do not depend on the Linux version for the moment.

Best regards, Armin

Julusian commented 6 years ago

Personally, I am not going to use Caspar on linux for anything other than experimentation until I can do so on an LTS release of Ubuntu (or Debian stable). I currently see the linux support in 2.2 as a beta, rather than a fully supported platform, but I have no problem with that just yet, I am hoping that it can get some more attention in 2.3.

One thing I would like to see done with the linux support, is to make the server variants be the recommended ones to use. I ran some tests with 2.1 on Ubuntu 14 back in June, and I'm pretty sure that Unity was using 15-20% of the GTX960 just idle. I ended up swapping Unity out for Openbox, which cut that down to <5%. I think this is something worth looking into more, as I see no reason why a racked server even needs to run a UI, especially if it is using a substantial portion of the available GPU power. On a related note, it isnt possible to remove the UI completely currently, as CEF relies on it (or did when I checked in June), but we could definitely recommend a lightweight one instead.

dotarmin commented 6 years ago

currently see the linux support in 2.2 as a beta

@Julusian I think I was a but unclear in my previous post, just as @k0d said, the CasparCG Server on Linux has never been released as stable and neither has CasparCG Server 2.1. I just wanna be clear about that! :)

18.04 LTS works for me. I dare to say that the direction to only support LTS versions is the way the project should strive for and where the effort should be put at, regarding the Linux version, just as @k0d says! :)

/Armin

maceyldn commented 6 years ago

PR created https://github.com/CasparCG/server/pull/886

Works under fresh builds of 16.04 and 17.10

ronag commented 6 years ago

I think we're going for 18. Closing.