BuildingCmake - absolute-freedom-nation-state/libretg-desktop GitHub Wiki
git clone --recursive [email protected]:absolute-freedom-nation-state/libretg-desktop.git tdesktop
Workaround for Breakpad's broken build:
pwd
/home/user/tbuild/Libraries/breakpad/out/Default
cd ../../src
mv testing testing.orig
git clone https://github.com/google/googletest testing
cd tools
../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools.gyp --format=cmake
cd ../../out/Default
cp ../../src/tools/mac/symupload/minidump_upload.m ../../src/tools/linux/symupload/minidump_upload.m
«[Add] -std=c++11
to the flags file Libraries/breakpad/out/Default/CMakeFiles/common.dir/flags.make
where …CXX_FLAGS looks like this:
CXX_FLAGS = -std=c++11
finally allowed me to bypass this issue.»
https://github.com/telegramdesktop/tdesktop/issues/4285 https://github.com/telegramdesktop/tdesktop/issues/4275
More:
pwd
/home/user/tbuild/tdesktop/out/Debug
pluma CMakeFiles/libtgvoip.dir/flags.make
and add: CXX_FLAGS = -std=c++11
Or better:
pluma CMakeLists.txt
and after project
line, add:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
(advice from https://stackoverflow.com/a/10087100/529442 )
More:
find ./ -type f -name CMakeLists.txt -exec sed -i 's/PULSE_LIBRARIES/PULSEAUDIO_LIBRARY/' {} \;
(advice from https://github.com/FreeRDP/FreeRDP/issues/418 )