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

Installation problem Xubuntu 22.04 - problem with cmake #294

Open
psenicniktomaz opened this issue Oct 7, 2023 · 0 comments
Open

Installation problem Xubuntu 22.04 - problem with cmake #294

psenicniktomaz opened this issue Oct 7, 2023 · 0 comments

Comments

@psenicniktomaz
Copy link

I was using openambit on Xubuntu 18.04 and 20.04 without problems. Currently I installed Xubuntu 22.04 and also tried to install openambit suite, but the installation is not going as planned...

Trying to build using the command $ sudo ./build.sh returns erros:

/usr/bin/ld: CMakeFiles/ambit.dir/device_driver_ambit_navigation.c.o:(.rodata+0x0): multiple definition of ambit_waypoint_types_from_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x0): first defined here /usr/bin/ld: CMakeFiles/ambit.dir/device_driver_ambit_navigation.c.o:(.rodata+0x30): multiple definition of ambit_waypoint_types_to_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x30): first defined here
/usr/bin/ld: CMakeFiles/ambit.dir/device_driver_ambit3.c.o:(.rodata+0x0): multiple definition of ambit_waypoint_types_from_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x0): first defined here /usr/bin/ld: CMakeFiles/ambit.dir/device_driver_ambit3.c.o:(.rodata+0x30): multiple definition of ambit_waypoint_types_to_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x30): first defined here
/usr/bin/ld: CMakeFiles/ambit.dir/device_support.c.o:(.rodata+0x0): multiple definition of ambit_waypoint_types_from_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x0): first defined here /usr/bin/ld: CMakeFiles/ambit.dir/device_support.c.o:(.rodata+0x30): multiple definition of ambit_waypoint_types_to_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x30): first defined here
/usr/bin/ld: CMakeFiles/ambit.dir/libambit.c.o:(.rodata+0x0): multiple definition of ambit_waypoint_types_from_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x0): first defined here /usr/bin/ld: CMakeFiles/ambit.dir/libambit.c.o:(.rodata+0x30): multiple definition of ambit_waypoint_types_to_movescount'; CMakeFiles/ambit.dir/device_driver_ambit.c.o:(.rodata+0x30): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ambit.dir/build.make:354: libambit.so.0.4.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ambit.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

The problem probably arises from cmake (current version: 3.22.1) - the problem might lie in the sequence of defining header files .h and programe files .c, but I do not posses the knowledge to solve the problem.

Using OS 18.04 and 20.04 the upper mention problems are not present.

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

1 participant