LCD-show icon indicating copy to clipboard operation
LCD-show copied to clipboard

Wrong CMakeCache.txt directory

Open oceanlazy opened this issue 6 years ago • 6 comments

After it runs the sudo ./LCD5-show command, it throws an error: CMake Error: The current CMakeCache.txt directory /home/pi/downloads/LCD-show/rpi-fbcp/build/CMakeCache.txt is different than the directory /home/pi/LCD-show/rpi-fbcp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/pi/downloads/LCD-show/rpi-fbcp/CMakeLists.txt" does not match the source "/home/pi/LCD-show/rpi-fbcp/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. CMake Error: The source directory "/home/pi/LCD-show/rpi-fbcp" does not exist. Specify --help for usage, or press the help button on the CMake GUI. Makefile:176: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 LCD configrue 0

oceanlazy avatar May 12 '19 00:05 oceanlazy

nothing on this one? I'm getting this one too.

LongBeachHXC avatar Aug 18 '19 20:08 LongBeachHXC

You have the LCD-show folder in downloads folder /home/pi/downloads/LCD-show/ must be on /home/pi/LCD-show/ solved moving the directory to home path

0x5ca1ab1e avatar Oct 24 '19 17:10 0x5ca1ab1e

who the hell is using raspbian default user pi for doing anything else than booting the os creating an individual admin account?

For me it is best security practice to not use pi as user.

Ventusfahrer avatar Dec 08 '19 22:12 Ventusfahrer

I ran into this issue after running a c++ program on a new computer than the one I had originally ran it on.

The program used a CMakeLists.txt to do the build initially and then created a CMakeCache.txt file.

When I deleted the CMakeCache.txt and ran cmake again it worked as expected. 👍

JimLynchCodes avatar Feb 01 '21 02:02 JimLynchCodes

I ran into this issue after running a c++ program on a new computer than the one I had originally ran it on.

The program used a CMakeLists.txt to do the build initially and then created a CMakeCache.txt file.

When I deleted the CMakeCache.txt and ran cmake again it worked as expected. 👍

Thank you...THIS WORKED...... I have been stuck at this spot for 3 days now.

babatunde-ayoade avatar Dec 11 '22 21:12 babatunde-ayoade

who the hell is using raspbian default user pi for doing anything else than booting the os creating an individual admin account?

For me it is best security practice to not use pi as user.

This should definitely fixed by the team. Thank you

mcanvar avatar Jan 20 '24 04:01 mcanvar