I built the DCPLib examples using steps I documented in #62. However, when I try to build the examples with debug options using CMake, I get errors for both master and slave examples.
Using CMake command-line arguments -DCMAKE_BUILD_TYPE=Debug or -DCMAKE_BUILD_TYPE=RelWithDebInfo results in the following compile-time or run-time errors.
- Compile-time error for both
master and slave examples when using the CMake command-line option -DCMAKE_BUILD_TYPE=Debug
[build] .../as.exe: CMakeFiles/dcpmaster.dir/src/Main.cpp.obj: too many sections (35151)
[build] C:\Users\user\AppData\Local\Temp\ccJ1LSjs.s: Fatal error: can't write 97 bytes to section .text of CMakeFiles/dcpmaster.dir/src/Main.cpp.obj because: 'File too big'
- Run-time error only with
master example when using the CMake command-line option -DCMAKE_BUILD_TYPE=RelWithDebInfo
terminate called after throwing an instance of 'std::invalid_argument'
what(): unable to open primary document entity 'C:\GIT\DCPLib\example\master/slaveDescription.xsd' at line 0 column 0
How can I compile DCPLib with the ability debug, set breakpoints and step through code during development? Just using Wireshark to review UDP packets is not ideal for debugging DCP applications. Any pointers will be greatly appreciated.
I built the DCPLib examples using steps I documented in #62. However, when I try to build the examples with debug options using CMake, I get errors for both master and slave examples.
Using CMake command-line arguments
-DCMAKE_BUILD_TYPE=Debugor-DCMAKE_BUILD_TYPE=RelWithDebInforesults in the following compile-time or run-time errors.masterandslaveexamples when using the CMake command-line option-DCMAKE_BUILD_TYPE=Debugmasterexample when using the CMake command-line option-DCMAKE_BUILD_TYPE=RelWithDebInfoHow can I compile DCPLib with the ability debug, set breakpoints and step through code during development? Just using Wireshark to review UDP packets is not ideal for debugging DCP applications. Any pointers will be greatly appreciated.