| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | Before you're doing something: | 
					
						
							| 
									
										
										
										
											2018-08-01 20:53:41 +02:00
										 |  |  | First time: git submodule update --init --recursive --remote | 
					
						
							|  |  |  | Afterworks: git submodule update --remote -f --merge --recursive | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:46:15 +02:00
										 |  |  | #IMPORTANT: | 
					
						
							|  |  |  | Build everything with -static-libgcc -static-libstdc++ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-28 20:22:45 +01:00
										 |  |  | Build everythink with C++ ABI = 0 | 
					
						
							|  |  |  | (yaml-cpp needs CMakeLists.txt entry) | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | make -j 12 CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:46:15 +02:00
										 |  |  | For libevent: | 
					
						
							|  |  |  | cmake .. -DCMAKE_C_FLAGS="-fPIC" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | For jsoncpp: | 
					
						
							| 
									
										
										
										
											2018-08-07 20:46:15 +02:00
										 |  |  | make -j 12 CXX_FLAGS="-std=c++11 -fPIC" | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | NOTE: May was CXXFLAGS (without the underscore) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For yaml: | 
					
						
							|  |  |  | cmake .. -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=Release | 
					
						
							|  |  |  | make -j 12 CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -fPIC" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For breakpad: | 
					
						
							|  |  |  | git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss | 
					
						
							|  |  |  | ../configure | 
					
						
							| 
									
										
										
										
											2018-08-07 20:46:15 +02:00
										 |  |  | make CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11" | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | For MySQL: | 
					
						
							| 
									
										
										
										
											2018-08-08 22:08:56 +02:00
										 |  |  | ATTENTION: Its important to use the latest mysql version (5.7) | 
					
						
							|  |  |  | 	   You may have to ling <...>_r.a | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | git submodule update --init | 
					
						
							|  |  |  | mkdir build && cd build | 
					
						
							| 
									
										
										
										
											2018-08-08 22:08:56 +02:00
										 |  |  | cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++" -DWITH_JDBC=ON  | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | make -j 12 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For boringssl: | 
					
						
							| 
									
										
										
										
											2018-08-01 20:53:41 +02:00
										 |  |  | cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE="Release" | 
					
						
							| 
									
										
										
										
											2018-07-12 21:13:30 +01:00
										 |  |  | make -j 8 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Instal protobuf: | 
					
						
							|  |  |  | sudo apt-get install -y git autoconf automake libtool curl make g++ unzip | 
					
						
							|  |  |  | git clone https://github.com/google/protobuf.git | 
					
						
							|  |  |  | cd protobuf/ | 
					
						
							|  |  |  | ./autogen.sh | 
					
						
							|  |  |  | ./configure | 
					
						
							|  |  |  | make | 
					
						
							|  |  |  | make check | 
					
						
							|  |  |  | sudo make install | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:46:15 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | WebRTC: | 
					
						
							|  |  |  | 	Build: | 
					
						
							|  |  |  | 		edit file: webrtc/BUILD.gn and add  | 
					
						
							|  |  |  | 		gn gen out/release --args="enable_iterator_debugging=false is_debug=false is_desktop_linux=false use_ozone=true use_custom_libcxx=false" | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find . -name '*.a' -exec nm -A -C {} \; | grep "rtc::FatalMessage" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ar -rcs libraries/libboringssl_asm.a src/out/release/obj/third_party/boringssl/boringssl_asm/aes-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/aesni-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/bsaes-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/vpaes-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/rsaz-avx2.o src/out/release/obj/third_party/boringssl/boringssl_asm/x86_64-mont.o src/out/release/obj/third_party/boringssl/boringssl_asm/x86_64-mont5.o src/out/release/obj/third_party/boringssl/boringssl_asm/chacha-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/p256-x86_64-asm.o src/out/release/obj/third_party/boringssl/boringssl_asm/md5-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/aesni-gcm-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/ghash-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/rdrand-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/sha1-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/sha256-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/sha512-x86_64.o src/out/release/obj/third_party/boringssl/boringssl_asm/x25519-asm-x86_64.o | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ar -rcs libraries/libjsoncpp.a src/out/release/obj/third_party/jsoncpp/jsoncpp/json_reader.o src/out/release/obj/third_party/jsoncpp/jsoncpp/json_value.o src/out/release/obj/third_party/jsoncpp/jsoncpp/json_writer.o | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ln -s src/out/release/obj/third_party/boringssl/libboringssl.a libraries/ | 
					
						
							|  |  |  | ln -s src/out/release/obj/webrtc/system_wrappers/libfield_trial_default.a libraries/ | 
					
						
							|  |  |  | ln -s src/out/release/obj/webrtc/base/librtc_base.a libraries/ | 
					
						
							|  |  |  | ln -s src/out/release/obj/webrtc/base/librtc_base_approved.a libraries/ | 
					
						
							|  |  |  | ln -s src/out/release/obj/webrtc/p2p/librtc_p2p.a libraries/ | 
					
						
							|  |  |  | ln -s src/out/release/obj/third_party/protobuf/libprotobuf_lite.a libraries/ |