I follow that link to build C++ build
so I do common steps this
and
type in cmd
gn gen out/m94 --args="is_debug=false rtc_include_tests=false use_custom_libcxx=false treat_warnings_as_errors=false"
and then
ninja -C out/m94
there is nothing wrong
and I build this part
at make -C build/ there is wrong
here is error message
C:\Users\dongh\libmediasoupclient>make -C build/
make: Entering directory `C:/Users/dongh/libmediasoupclient/build'
make[1]: Entering directory `C:/Users/dongh/libmediasoupclient/build'
make[2]: Entering directory `C:/Users/dongh/libmediasoupclient/build'
make[2]: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
make[2]: Entering directory `C:/Users/dongh/libmediasoupclient/build'
[ 4%] Building CXX object libsdptransform/CMakeFiles/sdptransform.dir/src/grammar.cpp.obj
[ 8%] Building CXX object libsdptransform/CMakeFiles/sdptransform.dir/src/parser.cpp.obj
[ 12%] Building CXX object libsdptransform/CMakeFiles/sdptransform.dir/src/writer.cpp.obj
[ 16%] Linking CXX static library libsdptransform.a
make[2]: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
[ 16%] Built target sdptransform
make[2]: Entering directory `C:/Users/dongh/libmediasoupclient/build'
make[2]: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
make[2]: Entering directory `C:/Users/dongh/libmediasoupclient/build'
[ 20%] Building CXX object CMakeFiles/mediasoupclient.dir/src/Consumer.cpp.obj
[ 24%] Building CXX object CMakeFiles/mediasoupclient.dir/src/DataConsumer.cpp.obj
[ 28%] Building CXX object CMakeFiles/mediasoupclient.dir/src/DataProducer.cpp.obj
In file included from C:/Users/dongh/webrtc-checkout/src/api/stats/rtc_stats.h:25,
from C:/Users/dongh/webrtc-checkout/src/api/stats/rtc_stats_report.h:24,
from C:/Users/dongh/webrtc-checkout/src/api/stats/rtc_stats_collector_callback.h:15,
from C:/Users/dongh/webrtc-checkout/src/api/peer_connection_interface.h:111,
from C:/Users/dongh/libmediasoupclient/include/PeerConnection.hpp:5,
from C:/Users/dongh/libmediasoupclient/include/Handler.hpp:4,
from C:/Users/dongh/libmediasoupclient/include/DataProducer.hpp:4,
from C:\Users\dongh\libmediasoupclient\src\DataProducer.cpp:3:
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:188:37: error: expected primary-expression before '__attribute__'
RTC_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:41: note: in definition of macro 'RTC_EXPORT_TEMPLATE_INVOKE_2'
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:180:7: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_INVOKE'
RTC_EXPORT_TEMPLATE_INVOKE( \
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:188:1: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_TEST'
RTC_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:49: error: expected primary-expression before ')' token
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:101:3: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_INVOKE_2'
RTC_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:180:7: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_INVOKE'
RTC_EXPORT_TEMPLATE_INVOKE( \
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:188:1: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_TEST'
RTC_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:3: error: 'RTC_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:3: note: in definition of macro 'RTC_EXPORT_TEMPLATE_INVOKE_2'
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:180:7: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_INVOKE'
RTC_EXPORT_TEMPLATE_INVOKE( \
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:188:1: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_TEST'
RTC_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:3: note: suggested alternative: 'RTC_EXPORT_TEMPLATE_DECLARE_DEFAULT'
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:103:3: note: in definition of macro 'RTC_EXPORT_TEMPLATE_INVOKE_2'
RTC_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:180:7: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_INVOKE'
RTC_EXPORT_TEMPLATE_INVOKE( \
^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/dongh/webrtc-checkout/src/rtc_base/system/rtc_export_template.h:188:1: note: in expansion of macro 'RTC_EXPORT_TEMPLATE_TEST'
RTC_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/mediasoupclient.dir/src/DataProducer.cpp.obj] error 1
make[2]: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
make[1]: *** [CMakeFiles/mediasoupclient.dir/all] error 2
make[1]: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
make: *** [all] error 2
make: Leaving directory `C:/Users/dongh/libmediasoupclient/build'
what do I wrong at build?
here is Cmake build message
P.S : If I missed very easy thing… sry google search ability is fool…