Code Monkey home page Code Monkey logo

Comments (10)

Ryanf55 avatar Ryanf55 commented on June 18, 2024 1

Can you please contribute a docs PR?
I'm lost on how you skipped that step. We've had a bunch of people skip it, and I am not sure how to improve it.

from ardupilot_gz.

rmackay9 avatar rmackay9 commented on June 18, 2024

This is probably for @srmainwaring or @Ryanf55 to answer.

I'm sure you've seen it but hopefully you've got the ArduPilot build environment installed on the PC as well. https://ardupilot.org/dev/docs/building-the-code.html

from ardupilot_gz.

Ryanf55 avatar Ryanf55 commented on June 18, 2024

Are you sure there isn't more log data? Normally, in a failure, you get messages on what failed.

from ardupilot_gz.

Ryanf55 avatar Ryanf55 commented on June 18, 2024

Please delete the build, log, and install folder. Then rebuild.
Finally, zip up the entire contents of your log folder and attach it here. I want to look at everything.
https://colcon.readthedocs.io/en/released/user/log-files.html#log-files

from ardupilot_gz.

srmainwaring avatar srmainwaring commented on June 18, 2024

@aarsht7 the top level colcon messages are not that helpful - basically telling you a package failed to build and not much else. There are flags you can set to provide more detail --event-handlers console_direct+.

In this case the problem is the core ardupilot library as a colcon package. You can build this directly using ./waf as follows:

  • Change to ~/ros_ws/src/ardupilot
  • Configure: ./waf configure --board sitl --debug --enable-dds
  • Build: ./waf build

I suspect you may be missing a dependency, possibly the path to the microxrceddsgen binary.

from ardupilot_gz.

aarsht7 avatar aarsht7 commented on June 18, 2024

Are you sure there isn't more log data? Normally, in a failure, you get messages on what failed.

On the colcon build logs, there is no log data of ardupilot_sitl as pkg is not built
But there is config.log inside src/ardupilot/build
After analyzing it, I realized that the $PATH variable it is not the same as the one in the current env. Maybe it is catching the old one and not updating when I rebuild without removing the ardupilot build directory.

So I tried rm -rf src/ardupilot/build build/ install/ log/ and rebuild
This time it does update to the correct path to the microxrcedds_gen, But the error remains the same.

Also, I forgot to mention one more error, so I have updated the issue.

There are flags you can set to provide more detail --event-handlers console_direct+.

@srmainwaring
Here is the output of the build using the flag. (I have only put the error output and not the entire build log here)

you need to install pexpect with 'python -m pip install pexpect'
gmake[2]: *** [CMakeFiles/ardupilot_build.dir/build.make:70: CMakeFiles/ardupilot_build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:168: CMakeFiles/ardupilot_build.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

So I installed pexpect and tried again. This time, it was missing the future module. So I repeat the procedure after installing it and now I can see big red blocks across the screen.

Here is a pastebin link of the log
Error starts from L82
And build fail logs from L418

from ardupilot_gz.

srmainwaring avatar srmainwaring commented on June 18, 2024

@aarsht7 did you install microxrceddsgen from the ArduPilot fork (https://github.com/ArduPilot/Micro-XRCE-DDS-Gen)? The error you are seeing is because the eProsima version does not support the additional flag reported in the errors.

from ardupilot_gz.

aarsht7 avatar aarsht7 commented on June 18, 2024

did you install microxrceddsgen from the ArduPilot fork

No, I did not. I used the docs from eProsima when I faced the error the first time.
I tried with the fork, and ardupilot_sitl builds without error.

Error with pkg microxrcedds_agent persist

It seems pkg is not required as I run colcon build --packages-up-to ardupilot_gz_bringup, that pkg is not build.
Closing the issue from my side.
Thank you pointing to the fork 🙌🏼

from ardupilot_gz.

Ryanf55 avatar Ryanf55 commented on June 18, 2024

Also, please review this change too:
ArduPilot/ardupilot_wiki#5887

from ardupilot_gz.

aarsht7 avatar aarsht7 commented on June 18, 2024

Can you please contribute a docs PR?

ArduPilot/ardupilot_wiki#5888

from ardupilot_gz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.