sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

iOS build with webrtc on mac #274

Open Lpkepka opened 5 years ago

Lpkepka commented 5 years ago

I am having trouble building for ios with webrtc. This is my cmake config:

cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SHARED_LIBS=OFF -DBUILD_MODULES=OFF -DBUILD_APPLICATIONS=OFF -DBUILD_SAMPLES=OFF -DBUILD_TESTS=OFF -DWITH_WEBRTC=ON -DWITH_FFMPEG=ON -DBUILD_MODULE_base=ON -DBUILD_MODULE_crypto=ON -DBUILD_MODULE_http=ON -DBUILD_MODULE_json=ON -DBUILD_MODULE_av=ON -DBUILD_MODULE_net=ON -DBUILD_MODULE_socketio=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL="1" -DBUILD_MODULE_symple=ON -DBUILD_MODULE_util=ON -DBUILD_MODULE_uv=ON -GXcode -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -DWEBRTC_ROOT_DIR=/path/to/rtc -DWEBRTC_INCLUDE_DIR=/path/to/include

The xcode project file is created correctly and all of the modules build successfully except for the webrtc module. I am getting a lot of errors in the byteorder.h file, Unsupported platform errors, PlatformThreadRef and PlatformThreadId errors. Is there anything wrong with my cmake? What should be the config for an iOS build with webrtc?