prusa3d / Prusa-Firmware

Firmware for Original Prusa i3 3D printer by PrusaResearch
GNU General Public License v3.0
2k stars 1.05k forks source link

this srkypt does not install anything, so the next steps do not work (missing cmake/ninja) #4538

Closed Garomek closed 5 months ago

Garomek commented 7 months ago

automatically setup dependencies

./utils/bootstrap.py

configure and build

mkdir build cd build cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/AvrGcc.cmake ninja zsh: command not found: # Klonowanie do „Prusa-Firmware”... remote: Enumerating objects: 49291, done. remote: Counting objects: 100% (1814/1814), done. remote: Compressing objects: 100% (570/570), done. remote: Total 49291 (delta 1335), reused 1602 (delta 1244), pack-reused 47477 Pobieranie obiektów: 100% (49291/49291), 51.32 MiB | 2.18 MiB/s, gotowe. Rozwiązywanie delt: 100% (37422/37422), gotowe. zsh: command not found: # Downloading ninja-1.10.2 Extracting ninja-1.10.2 Downloading cmake-3.22.5 Extracting cmake-3.22.5 Downloading avr-gcc-7.3.0 Extracting avr-gcc-7.3.0 Downloading prusa3dboards-1.0.6 Extracting prusa3dboards-1.0.6 zsh: command not found: # zsh: command not found: cmake zsh: command not found: ninja romek@macbook-pro-1 build % 'cd..' zsh: command not found: cd.. romek@macbook-pro-1 build % gettext gettext: brakujące argumenty

3d-gussner commented 7 months ago

Did you follow the steps one by one? Do you have a macbook? Which OS do you have installed?

clone the repository

  1. git clone https://github.com/prusa3d/Prusa-Firmware
  2. cd Prusa-Firmware

automatically setup dependencies

  1. ./utils/bootstrap.py

configure and build

  1. mkdir build
  2. cd build
  3. cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/AvrGcc.cmake
  4. ninja
Garomek commented 7 months ago

Hi. I did it step by step. No cmake no ninja

 Pozdrawiam / Best Regards

Roman Gaik @.***

Wiadomość napisana przez 3d-gussner @.***> w dniu 12.12.2023, o godz. 17:26:

Did you follow the steps one by one? Do you have a macbook? Which OS do you have installed?

clone the repository

git clone https://github.com/prusa3d/Prusa-Firmware cd Prusa-Firmware automatically setup dependencies

./utils/bootstrap.py configure and build

mkdir build

  1. cd build cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/AvrGcc.cmake ninja — Reply to this email directly, view it on GitHub https://github.com/prusa3d/Prusa-Firmware/issues/4538#issuecomment-1852380085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXT6KMDZMOIP47D6HXNCIYDYJCASVAVCNFSM6AAAAABARSVX6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSGM4DAMBYGU. You are receiving this because you authored the thread.
Garomek commented 7 months ago

Yes. I have MacBook Pro with Sonoma 14.2. My steps You can watch on the top.

3d-gussner commented 7 months ago

I may have found the issue. We as developers have cmake, ninja installed on our computers and OS and you probably not so it has not been found.

Please try this. I am not sure if it will work/compile on your MacBook Pro with Sonoma 14.2 as we don't have any Macs to test this.

Also ensure: Python >= 3.6 is also required with the following modules:

pyelftools (package python3-pyelftools)
polib (package python3-polib)
regex (package python3-regex)

Additionally gettext is required for translators.

clone the repository

  1. git clone https://github.com/prusa3d/Prusa-Firmware
  2. cd Prusa-Firmware

automatically setup dependencies

  1. ./utils/bootstrap.py

check if dependecies are working

  1. ../.dependencies/cmake-3.22.5/bin/cmake --version should show cmake version 3.22.5 or similar
  2. ../.dependencies/ninja-1.10.2/ninja --version should show 1.10.2 or similar

configure and build

  1. mkdir build
  2. cd build
  3. ../.dependencies/cmake-3.22.5/bin/cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/AvrGcc.cmake
  4. ../.dependencies/ninja-1.10.2/ninja
Garomek commented 7 months ago

Hi. Thank You for Your information. Unfortunately after uploading lines 1-3, line 4 shows the following error: zsh: no such file or directory: ../.dependencies/cmake-3.22.5/bin/cmake—version Unfortunately your idea didn’t work on my computer. Please find a screenshot attached.

Pozdrawiam / Best Regards

Roman Gaik @.***

Wiadomość napisana przez 3d-gussner @.***> w dniu 13.12.2023, o godz. 09:22:

Please try this. I am not sure if it will work/compile on your MacBook Pro with Sonoma 14.2 as we don't have any Macs to test this.

Also ensure: Python >= 3.6 is also required with the following modules:

pyelftools (package python3-pyelftools) polib (package python3-polib) regex (package python3-regex) Additionally gettext is required for translators.

3d-gussner commented 7 months ago

can you change to the folder Prusa-Firmware/.dependecies/cmake-3.22.5/bin and is there a cmake executable? in this folder try cmake --version to see if that works. which folders do you see under Prusa-Firmware? BTW your screenshot has not been added

Garomek commented 7 months ago

Please find a screenshot attached. Zrzut ekranu 2023-12-13 o 19 42 26

Garomek commented 7 months ago

Please write me step by step lines to enter in the console of my MacBook. I'm not a programmer so maybe I'm typing something wrong

3d-gussner commented 7 months ago

@Garomek I don't know MacOS and can't write exact step by step guide except I have done above. Try to change to the .dependencies/cmake-3.22.5/bin/cmake folder with multiple cd commands and run cmake --version

github-actions[bot] commented 5 months ago

This issue has been flagged as stale because it has been open for 60 days with no activity. The issue will be closed in 7 days unless someone removes the "stale" label or adds a comment.

github-actions[bot] commented 5 months ago

This issue has been closed due to lack of recent activity. Please consider opening a new one if needed.