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

cubepilot_cubeorange does not configure & build properly in VSCode GUI #17745

Closed
Ionstream opened this issue Jun 10, 2021 · 4 comments · Fixed by #21042
Closed

cubepilot_cubeorange does not configure & build properly in VSCode GUI #17745

Ionstream opened this issue Jun 10, 2021 · 4 comments · Fixed by #21042
Assignees
Labels
Tools Sub-tools used within PX4 ecosystem (scripts, etc)

Comments

@Ionstream
Copy link

Ionstream commented Jun 10, 2021

When selecting build targets in VSCode GUI, cubepilot_cubeorange target points to cubepilot_cubeorange_test. Current workaround is to call make cubepilot_cubeorange directly in terminal.

@hamishwillee hamishwillee added the Tools Sub-tools used within PX4 ecosystem (scripts, etc) label Jun 16, 2021
@hamishwillee
Copy link
Contributor

FYI, when this get fixed we can remove the note I put in for tracking in PX4/PX4-user_guide@9775c2c

@dagar
Copy link
Member

dagar commented Jun 16, 2021

This is because cubepilot_cubeorange_test includes the serial console which many people use while debugging.

You can change this to cubepilot_cubeorange_default if that's what you prefer.

cubepilot_cubeorange_test = cubepilot_cubeorange_default + serial console + test material

@Ionstream
Copy link
Author

Ah, that explains it. The orange cube does not expose it's debug port without some disassembly and a special cable, so I guess that's where my efforts went wrong. Thanks for the clarification!

That said, I do have trouble with the build configuration when attempting to build cubepilot_cubeorange_test. Is there anything I'm missing here?

[cmake] Configuring incomplete, errors occurred!
[cms-driver] Error during CMake configure: 
	Error: Configuration failed.
	at CMakeServerClient._onMessage (/home/ionstream/.vscode/extensions/ms-vscode.cmake-tools-1.7.3/dist/main.js:44271:33)
	at CMakeServerClient._onMoreData (/home/ionstream/.vscode/extensions/ms-vscode.cmake-tools-1.7.3/dist/main.js:44244:18)
	at Socket.emit (events.js:315:20)
	at addChunk (internal/streams/readable.js:309:12)
	at readableAddChunk (internal/streams/readable.js:284:9)
	at Socket.Readable.push (internal/streams/readable.js:223:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

@dagar
Copy link
Member

dagar commented Jun 16, 2021

I don't think that error means much. Try wiping the build directory (or make distclean), then freshly open vscode and click on the cubepilot variant (on the blue bar) to initiate the cmake configure.

dagar pushed a commit that referenced this issue Feb 1, 2023
- Fixes typo in Cube Orange build target config

Fixes issue #17745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools Sub-tools used within PX4 ecosystem (scripts, etc)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants