no message

master
zcy 2021-10-13 00:44:49 +08:00
parent 253d8b22d3
commit 32d3185cbd
2 changed files with 13 additions and 15 deletions

View File

@ -1,24 +1,21 @@
cmake_minimum_required(VERSION 3.12)
project(test_algorithm)
project(test)
project(webrtcdemo)
add_definitions(-std=c++11 "/DWIN32_LEAN_AND_MEAN")
add_definitions(-std=c++11 "/DWIN32_LEAN_AND_MEAN" "/Mdd")
message("current dir" ${CMAKE_CURRENT_SOURCE_DIR})
# set(CMAKE_CXX_FLAGS "-fno-elide-constructors")
aux_source_directory(. SOURCE)
message(info ${SOURCE})
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/xlnt/lib/Debug")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/xlnt/lib/Release")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/lib")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/lib")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/staticlib")
link_libraries(xlntd libwebrtc.lib ws2_32.lib winmm.lib DXGI.lib)
link_libraries( libwebrtc.lib ws2_32.lib winmm.lib DXGI.lib
)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}third/xlnt/include")
message(${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/include)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/include")
message(${CMAKE_CURRENT_SOURCE_DIR}/third/include)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/staticlib")
add_executable(test_algorithm ./JudgeFault.cpp ./main.cpp )
add_executable(test test.cpp JudgeFault.cpp)
add_executable(webrtcdemo webrtcdemo.cpp)

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-11 10:01:51
* @LastEditTime: 2021-10-12 15:29:19
* @LastEditTime: 2021-10-13 00:29:44
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \test_algorithm\webrtcdemo.cpp
@ -28,8 +28,9 @@ class CaptureCallBack :public webrtc::DesktopCapturer::Callback{
virtual void OnCaptureResult(webrtc::DesktopCapturer::Result ret,
std::unique_ptr<webrtc::DesktopFrame> frame){
if(ret == webrtc::DesktopCapturer::Result::SUCCESS){
std::cout << "capture frame "<< frame.get()->size().width() << " "
<< frame.get()->size().height()<<"\r\n";
std::cout << "capture frame "
<< frame.get()->size().width() << " "
<< frame.get()->size().height() << "\r\n";
}
}
};