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

can't compile the repository #12

Open
ardlc-1212 opened this issue Oct 18, 2024 · 2 comments
Open

can't compile the repository #12

ardlc-1212 opened this issue Oct 18, 2024 · 2 comments

Comments

@ardlc-1212
Copy link

ardlc-1212 commented Oct 18, 2024

Hi, I just cloned the repository using git and am unable to compile it.
Here is the output of my compiler:

`
Processing leocore (platform: [email protected]; board: genericSTM32F401RC; framework: stm32cube)

Verbose mode can be enabled via -v, --verbose option
Firmware Revision: 1.3.0
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F401RC.html
PLATFORM: ST STM32 (15.4.1) > STM32F401RC (64k RAM. 256k Flash)
HARDWARE: STM32F401RCT6 84MHz, 64KB RAM, 256KB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:

  • framework-stm32cubef4 @ 1.26.2
  • tool-ldscripts-ststm32 @ 0.2.0
  • toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ off
    Installing importlib-resources with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install importlib-resources
    Requirement already satisfied: importlib-resources in c:\users\arday.platformio\penv\lib\site-packages (6.4.5)
    Installing pyyaml with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install pyyaml
    Requirement already satisfied: pyyaml in c:\users\arday.platformio\penv\lib\site-packages (6.0.2)
    Installing markupsafe==2.0.1 with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install markupsafe==2.0.1
    Requirement already satisfied: markupsafe==2.0.1 in c:\users\arday.platformio\penv\lib\site-packages (2.0.1)
    Configuring genericSTM32F401RC with transport serial
    FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\Users\arday\OneDrive\Masaüstü\draft\leocore_firmware_ros2\.pio\libdeps\leocore\micro_ros_platformio/build/dev/src':
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 173:
    env.SConscript("$BUILD_SCRIPT")
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "C:\Users\arday.platformio\platforms\[email protected]\builder\main.py", line 120:
    target_elf = env.BuildProgram()
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Util\envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 62:
    env.ProcessProjectDeps()
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Util\envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 152:
    plb = env.ConfigureProjectLibBuilder()
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Util\envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 1202:
    project.install_dependencies()
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 987:
    if _is_builtin(spec):
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 979:
    for lb in self.env.GetLibBuilders():
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Util\envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 1115:
    lb = LibBuilderFactory.new(env, lib_dir)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 60:
    obj = globals()[clsname](env, path, verbose=verbose)
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 153:
    self.process_extra_options()
    File "C:\Users\arday.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 301:
    self.env.SConscript(
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
    File "C:\Users\arday.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Script\SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "C:\Users\arday\OneDrive\Masaüstü\draft\leocore_firmware_ros2.pio\libdeps\leocore\micro_ros_platformio\extra_script.py", line 158:
    build_microros()
    File "C:\Users\arday\OneDrive\Masaüstü\draft\leocore_firmware_ros2.pio\libdeps\leocore\micro_ros_platformio\extra_script.py", line 100:
    builder.run('{}/metas/{}'.format(main_path, selected_board_meta), cmake_toolchain.path, microros_user_meta)
    File "C:\Users\arday\OneDrive\Masaüstü\draft\leocore_firmware_ros2.pio\libdeps\leocore\micro_ros_platformio\microros_utils\library_builder.py", line 63:
    self.download_dev_environment()
    File "C:\Users\arday\OneDrive\Masaüstü\draft\leocore_firmware_ros2.pio\libdeps\leocore\micro_ros_platformio\microros_utils\library_builder.py", line 94:
    os.makedirs(self.dev_src_folder)
    File "", line 225:

================================================================ [FAILED] Took 5.83 seconds ================================================================

  • The terminal process "C:\Users\arday.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.
    `
@ardlc-1212
Copy link
Author

PS: I can't get it to convert into a code block, sorry for the mess.

@ardlc-1212
Copy link
Author

Ok, so after digging a while, I found the problem to be the python compiler program not checking if the file is preexisting. I deleted the folders but now it fails to create dev micro-ros environment.
I couldn't get any further.

Library Manager: [email protected]+sha.27585d4 has been installed! Verbose mode can be enabled via -v, --verbose` option
Firmware Revision: 1.3.0
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F401RC.html
PLATFORM: ST STM32 (15.4.1) > STM32F401RC (64k RAM. 256k Flash)
HARDWARE: STM32F401RCT6 84MHz, 64KB RAM, 256KB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:

  • framework-stm32cubef4 @ 1.26.2
  • tool-ldscripts-ststm32 @ 0.2.0
  • toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ off
    Installing importlib-resources with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install importlib-resources
    Requirement already satisfied: importlib-resources in c:\users\arday.platformio\penv\lib\site-packages (6.4.5)
    Installing pyyaml with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install pyyaml
    Requirement already satisfied: pyyaml in c:\users\arday.platformio\penv\lib\site-packages (6.0.2)
    Installing markupsafe==2.0.1 with pip at PlatformIO environment
    C:\Users\arday.platformio\penv\Scripts\python.exe -m pip install markupsafe==2.0.1
    Requirement already satisfied: markupsafe==2.0.1 in c:\users\arday.platformio\penv\lib\site-packages (2.0.1)
    Configuring genericSTM32F401RC with transport serial
    Downloading micro-ROS dev dependencies
    - Downloaded ament_cmake
    - Downloaded ament_package
    - Downloaded ament_cmake_ros
    Building micro-ROS dev dependencies
    Build dev micro-ROS environment failed:
    '.' is not recognized as an internal or external command,

operable program or batch file.`

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