Skip to content

Commit 05076a8

Browse files
committed
Fix Streamer/Recorder build errors
1 parent fd64c5d commit 05076a8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

tools/streamer_recorder/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ ADD_EXECUTABLE(ProtonectSR
9494
${ProtonectSR_src}
9595
)
9696

97+
SET_TARGET_PROPERTIES(ProtonectSR PROPERTIES
98+
CXX_STANDARD 14
99+
)
100+
97101
TARGET_LINK_LIBRARIES(ProtonectSR
98102
${ProtonectSR_LIBRARIES}
99103
)

tools/streamer_recorder/recorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void Recorder::initialize()
7878
/////////////////////////////////////////////////////////////////
7979

8080
// record image: define compression parameters and frame counter
81-
img_comp_param.push_back(CV_IMWRITE_JPEG_QUALITY); //specify the compression technique
81+
img_comp_param.push_back(cv::IMWRITE_JPEG_QUALITY); //specify the compression technique
8282
img_comp_param.push_back(100); //specify the compression quality
8383
frameID = 0;
8484

tools/streamer_recorder/streamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void Streamer::initialize()
3636
servAddress = SERVER_ADDRESS;
3737
servPort = Socket::resolveService(SERVER_PORT, "udp"); // Server port
3838

39-
compression_params.push_back(CV_IMWRITE_JPEG_QUALITY);
39+
compression_params.push_back(cv::IMWRITE_JPEG_QUALITY);
4040
compression_params.push_back(jpegqual);
4141
}
4242

0 commit comments

Comments
 (0)