How to solve black tft in simulator?

I decide to run PC simulator on windows but it took me a lot of time and it was failure due to different error . the error came from fbdev.c and some more if you want i will explain it here

so I installed a virtual ubuntu on vmware and i did compile project without error although it is showing a compelete black LCD

I followed a guideline posted in get started page and used a pre configured version that are recommended by site.
I did not change any thing in this zip file . in this file a demo create function is running in main file it can’t even run that black tft and program terminated just after it runs so i commented this line and ran “switch example” and “line example” instead but there is just a black tft screen

my C compiler is
i instaled build-essentials
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
my os is ubuntu 14.04 lts
my IDE is eclipse 12-2018
libsdl2-2.0-0
void lv_ex_line_1(void)
{
/Create an array for the points of the line/
static lv_point_t line_points = { {0, 0}, {240, 0}, {320, 10}, {180, 60}, {240, 10} };

    /*Create new style (thick dark blue)*/
    static lv_style_t style_line;
    lv_style_copy(&style_line, &lv_style_plain);
    style_line.line.color = LV_COLOR_MAKE(0x00, 0x3b, 0x75);
    style_line.line.width = 3;
    style_line.line.rounded = 1;

    /*Copy the previous line and apply the new style*/
    lv_obj_t * line1;
    line1 = lv_line_create(lv_scr_act(), NULL);
    lv_line_set_points(line1, line_points, 5);     /*Set the points*/
    lv_line_set_style(line1, LV_LINE_STYLE_MAIN, &style_line);
    lv_obj_align(line1, NULL, LV_ALIGN_CENTER, 0, 0);
}

I need this simulator to deisign my gui faster and to find out if some error in my actual hardware is either by low ram or not?

I edited this post to follow template . I could not find lvgl version in zip file

You need to fill out the template. Starting today, questions that ignore the template will not be answered.

Here’s a copy of the template if you need it:

Important: posts that do not use this template will be ignored or closed.

Before posting

  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Environment

  • What MCU/Processor/Board are you using?
  • What compiler are you using?

Description

  • What version of LittlevGL are you using?
  • What do you want to achieve?
  • What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:
```c
your code here
```

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

1 Like

I’ve just created a an Announcement about the Topic templates Please read it, and edit your first post according to the template.

Thank you!

@kisvegabor There is enough information in the first post now.

@AhmadBan Does it work if you clone a fresh pc_simulator from GitHub? Also, I don’t think anyone has tried running it in a VM before, so that could be part of the issue.

Actually, I’ve already tried it in a VM.
You should enable MONITOR_VIRTUAL_MACHINE in lv_drv_conf.h

1 Like

thank you It worked