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

non-trivial designated initializers not supported error building on NVDIA Jetpack 4.6 (aarch640 #14

Open
rvanderwerf opened this issue Oct 9, 2024 · 1 comment

Comments

@rvanderwerf
Copy link

rvanderwerf commented Oct 9, 2024

I had to manually install a newer cmake and catch1 and pybind11. I get all the way to the make command (using 0.10.0 version of lib of libfranka) Any workaround here?

:~/github/franky/build$ make
[ 11%] Built target ruckig
[ 13%] Building CXX object CMakeFiles/franky.dir/src/motion/cartesian_motion.cpp.o
/home/github/franky/src/motion/cartesian_motion.cpp: In constructor ‘franky::CartesianMotion::CartesianMotion(const franky::CartesianState&, franky::ReferenceType, const Affine&, franky::RelativeDynamicsFactor, bool)’:
/home/github/franky/src/motion/cartesian_motion.cpp:27:6: sorry, unimplemented: non-trivial designated initializers not supported
     }) {}
      ^
CMakeFiles/franky.dir/build.make:117: recipe for target 'CMakeFiles/franky.dir/src/motion/cartesian_motion.cpp.o' failed
make[2]: *** [CMakeFiles/franky.dir/src/motion/cartesian_motion.cpp.o] Error 1
CMakeFiles/Makefile2:125: recipe for target 'CMakeFiles/franky.dir/all' failed
make[1]: *** [CMakeFiles/franky.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
 g++ version
:~/github/Catch2$ g++ --version
g++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0

This is on a Jetson Nano with JP 4.6 with 4.9 RT kernel.

Also on the github page, the link to dependencies is broken.

@TimSchneider42
Copy link
Owner

Hey,

You could try to replace any occurrence of keyword initializer lists with regular initializer lists. E.g., change

CartesianWaypointMotion(
    {
        {
            .target = target,
            .reference_type = reference_type,
            .relative_dynamics_factor = relative_dynamics_factor
        }
    }, {
        {
            .return_when_finished = return_when_finished
        },
        frame
    }) 

to

CartesianWaypointMotion(
    {
        {
            target,
            reference_type,
            relative_dynamics_factor,
            str::nullopt
        }
    }, {
        {
            1.0,
            return_when_finished
        },
        frame
    }) 

I don't know whether this solves your problem, though. If that does not help, try researching how to initialize inherited fields in structs with your compiler.

Regarding the links, I am not sure why they are broken. It might be a limitation Doxygen's markdown support.

Best,
Tim

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