Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

/opt/cmake/bin/cmake no file in the directory

I am installing Qt6 using this guide on my fresh raspberry pi 4 running the latest official 32bit OS

https://www.tal.org/tutorials/building-qt-62-raspberry-pi

and i am stuck in the Configure the Qt 6.2 build portion where it asks me to execute this line

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

/opt/cmake/bin/cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/opt/Qt/6.2.3-armv7l \
-DQT_FEATURE_opengles2=ON \
-DQT_FEATURE_opengles3=ON \
-DCMAKE_TOOLCHAIN_FILE=tc.cmake \
-DQT_AVOID_CMAKE_ARCHIVING_API=ON ../qtbase-everywhere-src-6.2.3

but i am getting an error

bash: /opt/cmake/bin/cmake: No such file or directory

I followed every step behore hand and there were no problems, everthing went smoothly exempt this part. Can anybody help me with this problem ?

>Solution :

If you have installed Cmake through apt, the default path should be

/usr/bin/cmake

Try to see if is there. If yes, you might want to replace

/opt/cmake/bin/cmake

with

/usr/bin/cmake

Another way to find if you have cmake installed somewhere else would be to run the command:

whereis cmake
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading