Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling examples with debug option #64

Open
svanimisetti opened this issue Aug 16, 2023 · 1 comment
Open

Issue compiling examples with debug option #64

svanimisetti opened this issue Aug 16, 2023 · 1 comment

Comments

@svanimisetti
Copy link

svanimisetti commented Aug 16, 2023

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.

@namespacew
Copy link

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.

Thank you for your notes that allowed me to successfully build DCBlib on windows. I am now experiencing the same problem as you. terminate called after throwing an instance of 'std::invalid_argument'
what(): Unable to open primary document entity 'C: \ DCPLib \ example \ master/slaveDescription XSD' at the column line 0 0, could you tell me your problem is how to solve, I would appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants