laoniaokkk / PX4-AT32

BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

build PX4 error #3

Open svs072477 opened 8 months ago

svs072477 commented 8 months ago

Hi, An error is generated during compilation

make px4_fmu-at32 CMake Error at CMakeLists.txt:129 (list): list index: 1 out of range (-1, 0) CMake Error at CMakeLists.txt:131 (list): list index: 2 out of range (-1, 0) CMake Error at CMakeLists.txt:132 (string): string sub-command REPLACE requires at least four arguments. -- PX4 version: bca3a431 (bca3a431..NOTFOUND) -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3") -- PX4 config file: /home/user/PX4-AT32/boards/px4/fmu-at32/default.px4board -- PLATFORM nuttx -- TOOLCHAIN arm-none-eabi -- ARCHITECTURE cortex-m4 -- ROMFSROOT px4fmu_common -- CONSTRAINED_FLASH y -- NO_HELP y -- CONSTRAINED_MEMORY y -- SERIAL_URT6 /dev/ttyS2 -- SERIAL_TEL2 /dev/ttyS1 -- PX4 config: px4_fmu-at32_default -- PX4 platform: nuttx -- The CXX compiler identification is GNU 10.3.1 -- The C compiler identification is GNU 10.3.1 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/arm-none-eabi-gcc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/arm-none-eabi-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- cmake build type: MinSizeRel -- ROMFS: ROMFS/px4fmu_common -- ROMFS: Adding boards/px4/fmu-at32/init/rc.board_defaults -> /etc/init.d/rc.board_defaults -- ROMFS: Adding boards/px4/fmu-at32/init/rc.board_sensors -> /etc/init.d/rc.board_sensors -- ROMFS: Adding boards/px4/fmu-at32/init/rc.board_extras -> /etc/init.d/rc.board_extras -- ROMFS: Adding boards/px4/fmu-at32/extras/at32f435_bootloader(40000).hex -> /etc/extras/at32f435_bootloader(40000).hex -- Configuring incomplete, errors occurred! See also "/home/user/PX4-AT32/build/px4_fmu-at32_default/CMakeFiles/CMakeOutput.log". See also "/home/user/PX4-AT32/build/px4_fmu-at32_default/CMakeFiles/CMakeError.log". Error: /home/user/PX4-AT32/build/px4_fmu-at32_default is not a directory make: *** [Makefile:233: px4_fmu-at32] Error 1

I have done such operations; git clone https://github.com/laoniaokkk/PX4-AT32.git --recursive cd ./PX4-AT32 make px4_fmu-at32

What am I doing wrong?

TompsonTan commented 8 months ago

its a git tag issue, the build process need to detect the git tag, but the author not use fork but recreate a repository. @svs072477

svs072477 commented 8 months ago

its a git tag issue, the build process need to detect the git tag, but the author not use fork but recreate a repository. @svs072477

Thank you, can I fix it myself? or only the author will be able to do this

TompsonTan commented 8 months ago

i have try but no success, it's not only one error @svs072477

svs072477 commented 8 months ago

i have try but no success, it's not only one error @svs072477

I understood you. thanks

laoniaokkk commented 8 months ago

I'll try to fix this next update。At present, the AT32 driver part of the PR to the PX4 mainline, if it is successful, it will be updated in the form of submodules, I don't know why the official has not agreed to the PR

svs072477 commented 8 months ago

I'll try to fix this next update。At present, the AT32 driver part of the PR to the PX4 mainline, if it is successful, it will be updated in the form of submodules, I don't know why the official has not agreed to the PR

Ok, Thanks