-
Notifications
You must be signed in to change notification settings - Fork 265
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
cmake error #64
Comments
The error here is that there is no C/C++ compiler installed on the system you are running on. You will need to install one, e.g. with apt-get or whatever package manager your distro is using? ( |
Hi, |
I am not familiar with OSMC enough to say. See this thread about bcm_host.h not existing in another Linux distribution: #43 . Some of that may apply here. If OSMC does not use DispmanX, then it will be hard to get fbcp-ili9341 working there. If it does use DispmanX, but just does not supply the development headers, then you can try compiling fbcp-ili9341 on e.g. a Raspberry Pi 3B with Raspbian, and copy the resulting binary fbcp-ili9341 executable over to OSMC. That is how I was able to get fbcp-ili9341 run on Kodi some months back when testing. |
I'm back, |
The main loop is where the driver should be running and outputting an image to the display. If the display is not reacting, something is wrong. Try debugging through different options and double check the configuration. It could also be some kind of incompatibility with OSMC. |
After running "sudo ./fbcp-ili9341", the display does work and ends up being fully usable within OSMC. Despite this, the command never finishes running from the view of SSH. As a result, I am unable to apply necessary changes to rc.local. I have also tried to alter the "DSPI_BUS_CLOCK_DIVISOR" to lower as well as higher values. Are there any other potential solutions? |
Oh, you mean it does not give back control to the terminal window? Try starting it in background mode with sudo ./fbcp-ili9341 & The & sign at the end makes the process run in background |
Worked like a charm! Assuming the development headers are manually added, the fbcp-ili9341 driver works perfectly on OSMC. Thanks again! |
hello, I get the other cmake error, pi@raspberrypi:~/fbcp-ili9341/build $ sudo cmake -DILI9341=ON .. |
please tell me what's wrong |
Hi DRAgon, |
hello, I have tried that. Now no error . But just HDMI disply , the spi LCD can not enter the os desktop. just disply to stop at " _ " |
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 |
then the LCD go to show "_" and can not go to the os desktop |
What do you mean by |
the command seems do not to work |
The good bit is that it looks like fbcp-ili9341 is working properly, and it is outputting first TTY output to the SPI display. That TTY seems to have a command line terminal active on it, without an active login to Linux, so it is showing an empty caret. You may be able to physically connect keyboard and mouse to the Pi, and then switch to TTY1, see https://unix.stackexchange.com/questions/167386/how-to-switch-between-tty-and-xorg-session , perhaps Most likely X is rendering to another TTY output. You'll need to configure the X rendering output to occur to the first TTY, I think. See this section, https://github.com/juj/fbcp-ili9341#does-fbcp-ili9341-work-with-linux-command-line-terminal-or-x-windowing-system , perhaps that can be of help. TTY configuration is not super-familiar to me in Linux, so I am not 100% sure if the above is correct, but that is a bit of guess about the scenario. |
hello , I have tried Ctrl-Alt-F1 or F2 , which do not work this is my config.txt add code this my /etc/rc.lcaol add code con2fbmap 1 0 |
this my/boot/cmdline.txt code |
I think you shouldn't have any framebuffer, and SPI driver enabled, as it is on the installation instructions in the main page, before thecompilation process:
So,.. I would try removing the lines: dtparam=spi=on from your /boot/config.txt and: sudo modprobe fbtft_device name=flexfb gpios=dc:22,reset:27 speed=32000000 con2fbmap 1 0 from your /etc/rc.local keeping the: sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 & make a backup copy of your files if you want to use later. but I would try without to make sure that it will work, this line is only for starting the driver during the boot process, fbcp-ili9341 doesn't need any SPI/fbcpdriver loaded to work. |
I use waveshare 3.2inch LCD if I do as your methion, remove my code form /boot/config.txt and /etc/rc.local The LCD can not be driver . the LCD is always keep black |
When you ran the comand:
what you have? Also, can you run the command |
hello , I have find my error . it is caused by my error cmake code. I lost some parameter Now it can display, but come new problem.
see picture please help me |
This is due to Raspberry Pi desktop resolution not matching the display resolution. Try setting in /boot/config.txt the display resolution to 320x240, 480x320, 640x480, or some other size that is in the aspect ratio of the display (4:3).
See https://github.com/juj/fbcp-ili9341/#statistics-overlay , the option is |
thank you , all OK can you update the software to use touchsreen ? Do you have the plan ? |
Closing resolved issues. Kpisphere has been working on touch support recently, available at https://github.com/kpishere/fbcp-ili9341. |
Hello,
After running
"cmake -DCMAKE_BUILD_TYPE=Release -DSPI_BUS_CLOCK_DIVISOR=8 -DADAFRUIT_ILI9341_PITFT=ON .."
I am given:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/osmc/fbcp-ili9341/build/CMakeFiles/CMakeOutput.log".
See also "/home/osmc/fbcp-ili9341/build/CMakeFiles/CMakeError.log".
osmc@osmc:~/fbcp-ili9341/build$
What does this mean, and how can it be fixed? Thank you!
The text was updated successfully, but these errors were encountered: