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

in requirment.text file #1

Open
omarbo4k4 opened this issue Nov 21, 2024 · 3 comments
Open

in requirment.text file #1

omarbo4k4 opened this issue Nov 21, 2024 · 3 comments

Comments

@omarbo4k4
Copy link

matplotlib>=3.10.* is giving an error after resolving it by deleting everything after the > sign it gives me that issues

Relogin or reboot computer before attempting to build NuttX targets [1/296] Building CXX object src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZBridge.cpp.o FAILED: src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZBridge.cpp.o /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME=\"gz_bridge\" -DPROTOBUF_USE_DLLS -DPX4_MAIN=gz_bridge_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function="__attribute__((noreturn))" -I/home/bo4k4/PX4-Autopilot/boards/px4/sitl/src -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/bo4k4/PX4-Autopilot/platforms/common -I/home/bo4k4/PX4-Autopilot/platforms/common/include -I/home/bo4k4/PX4-Autopilot/src -I/home/bo4k4/PX4-Autopilot/src/include -I/home/bo4k4/PX4-Autopilot/src/lib -I/home/bo4k4/PX4-Autopilot/src/lib/matrix -I/home/bo4k4/PX4-Autopilot/src/modules -I/home/bo4k4/PX4-Autopilot/platforms/posix/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/external/Install/include -isystem /usr/include/gz/transport13 -isystem /home/bo4k4/anaconda3/include -isystem /usr/include/gz/utils2 -isystem /usr/include/gz/msgs10 -isystem /usr/include/gz/math7 -isystem /usr/include/uuid -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -frtti -fexceptions -O2 -I/usr/include/uuid -std=gnu++17 -MD -MT src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZBridge.cpp.o -MF src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZBridge.cpp.o.d -o src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZBridge.cpp.o -c /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZBridge.cpp In file included from /usr/include/gz/msgs10/gz/msgs/vector3d.pb.h:12, from /usr/include/gz/msgs10/gz/msgs/convert/Vector3.hh:21, from /usr/include/gz/msgs10/gz/msgs/convert/AxisAlignedBox.hh:20, from /usr/include/gz/msgs10/gz/msgs.hh:23, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.hpp:38, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZBridge.hpp:36, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZBridge.cpp:34: /usr/include/gz/msgs10/gz/msgs/details/vector3d.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. [2/296] Building CXX object src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o FAILED: src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME=\"gz_bridge\" -DPROTOBUF_USE_DLLS -DPX4_MAIN=gz_bridge_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function="__attribute__((noreturn))" -I/home/bo4k4/PX4-Autopilot/boards/px4/sitl/src -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/bo4k4/PX4-Autopilot/platforms/common -I/home/bo4k4/PX4-Autopilot/platforms/common/include -I/home/bo4k4/PX4-Autopilot/src -I/home/bo4k4/PX4-Autopilot/src/include -I/home/bo4k4/PX4-Autopilot/src/lib -I/home/bo4k4/PX4-Autopilot/src/lib/matrix -I/home/bo4k4/PX4-Autopilot/src/modules -I/home/bo4k4/PX4-Autopilot/platforms/posix/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/external/Install/include -isystem /usr/include/gz/transport13 -isystem /home/bo4k4/anaconda3/include -isystem /usr/include/gz/utils2 -isystem /usr/include/gz/msgs10 -isystem /usr/include/gz/math7 -isystem /usr/include/uuid -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -frtti -fexceptions -O2 -I/usr/include/uuid -std=gnu++17 -MD -MT src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o -MF src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o.d -o src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o -c /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.cpp In file included from /usr/include/gz/msgs10/gz/msgs/vector3d.pb.h:12, from /usr/include/gz/msgs10/gz/msgs/convert/Vector3.hh:21, from /usr/include/gz/msgs10/gz/msgs/convert/AxisAlignedBox.hh:20, from /usr/include/gz/msgs10/gz/msgs.hh:23, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.hpp:38, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.cpp:34: /usr/include/gz/msgs10/gz/msgs/details/vector3d.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. [3/296] Building CXX object src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceWheel.cpp.o FAILED: src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceWheel.cpp.o /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME=\"gz_bridge\" -DPROTOBUF_USE_DLLS -DPX4_MAIN=gz_bridge_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function="__attribute__((noreturn))" -I/home/bo4k4/PX4-Autopilot/boards/px4/sitl/src -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/bo4k4/PX4-Autopilot/platforms/common -I/home/bo4k4/PX4-Autopilot/platforms/common/include -I/home/bo4k4/PX4-Autopilot/src -I/home/bo4k4/PX4-Autopilot/src/include -I/home/bo4k4/PX4-Autopilot/src/lib -I/home/bo4k4/PX4-Autopilot/src/lib/matrix -I/home/bo4k4/PX4-Autopilot/src/modules -I/home/bo4k4/PX4-Autopilot/platforms/posix/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/external/Install/include -isystem /usr/include/gz/transport13 -isystem /home/bo4k4/anaconda3/include -isystem /usr/include/gz/utils2 -isystem /usr/include/gz/msgs10 -isystem /usr/include/gz/math7 -isystem /usr/include/uuid -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -frtti -fexceptions -O2 -I/usr/include/uuid -std=gnu++17 -MD -MT src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceWheel.cpp.o -MF src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceWheel.cpp.o.d -o src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceWheel.cpp.o -c /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp In file included from /usr/include/gz/msgs10/gz/msgs/vector3d.pb.h:12, from /usr/include/gz/msgs10/gz/msgs/convert/Vector3.hh:21, from /usr/include/gz/msgs10/gz/msgs/convert/AxisAlignedBox.hh:20, from /usr/include/gz/msgs10/gz/msgs.hh:23, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.hpp:38, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp:34: /usr/include/gz/msgs10/gz/msgs/details/vector3d.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. [4/296] Building CXX object src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceServo.cpp.o FAILED: src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceServo.cpp.o /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME=\"gz_bridge\" -DPROTOBUF_USE_DLLS -DPX4_MAIN=gz_bridge_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function="__attribute__((noreturn))" -I/home/bo4k4/PX4-Autopilot/boards/px4/sitl/src -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/bo4k4/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/bo4k4/PX4-Autopilot/platforms/common -I/home/bo4k4/PX4-Autopilot/platforms/common/include -I/home/bo4k4/PX4-Autopilot/src -I/home/bo4k4/PX4-Autopilot/src/include -I/home/bo4k4/PX4-Autopilot/src/lib -I/home/bo4k4/PX4-Autopilot/src/lib/matrix -I/home/bo4k4/PX4-Autopilot/src/modules -I/home/bo4k4/PX4-Autopilot/platforms/posix/include -I/home/bo4k4/PX4-Autopilot/build/px4_sitl_default/external/Install/include -isystem /usr/include/gz/transport13 -isystem /home/bo4k4/anaconda3/include -isystem /usr/include/gz/utils2 -isystem /usr/include/gz/msgs10 -isystem /usr/include/gz/math7 -isystem /usr/include/uuid -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -frtti -fexceptions -O2 -I/usr/include/uuid -std=gnu++17 -MD -MT src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceServo.cpp.o -MF src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceServo.cpp.o.d -o src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceServo.cpp.o -c /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp In file included from /usr/include/gz/msgs10/gz/msgs/discovery.pb.h:12, from /usr/include/gz/transport13/gz/transport/Discovery.hh:59, from /usr/include/gz/transport13/gz/transport.hh:26, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.hpp:38, from /home/bo4k4/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp:34: /usr/include/gz/msgs10/gz/msgs/details/discovery.pb.h:17:2: error: #error This file was generated by an older version of protoc which is 17 | #error This file was generated by an older version of protoc which is | ^~~~~ compilation terminated due to -Wfatal-errors. [10/296] Building CXX object src/modules/temperature_compensation/CMakeFiles/modules__temperature_compensation.dir/TemperatureCompensationModule.cpp.o ninja: build stopped: subcommand failed. make: *** [Makefile:232: px4_sitl] Error 1

@SathanBERNARD
Copy link
Owner

SathanBERNARD commented Nov 23, 2024

What is the version of ubuntu you are using ?
Is it a fresh install of ubuntu ?
What is the error with matplotlib>=3.10.* ?
There is no "requirment.text" file in this repo. Where is stored the requirment.text file you modified ?

@omarbo4k4
Copy link
Author

I am using Ubuntu 22.04
And the problem appears in the line of installing from the .sh after debugging the installation stops at the line of “ make px4_sitl” this line gets an error

also yes this repo doesn’t have requirements.text however the get clone of the px4 autopilot have a requirement.text and it have a problem in it and i modified the file then re ran the .SH file on your repo again in order to complete my installation however i got an error in the line mentioned above
I hope my explanation was clear this time.

@SathanBERNARD
Copy link
Owner

SathanBERNARD commented Nov 30, 2024

Are you using Ubuntu in wsl2 ?
I'm asking because of this issue I found : PX4/PX4-Autopilot#22695
In the end it is a protoc error so check your protoc version: protoc --version,
maybe upgrade it

sudo apt-get remove --purge protobuf-compiler
sudo apt-get autoremove
sudo apt-get install protobuf-compiler

Sometimes, multiple conflicting Protobuf versions might be installed (e.g., through Conda), so make sure to check for that as well.
Because this issue has to do with the PX4 part maybe try to ask in the PX4 forum / gihub.
It is not an error I encountered myself and I'm not able to reproduce it in a fresh Ubuntu virtual machine.

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