Have problem with RTOS

I try RTOS in PlatformIO. here the code
#include “mbed.h”
#include “KS0108.h”
#include “Arial12.h”
#include “Arial14.h”
#include “vivaldi16.h”
#include “rtos/rtos.h”

DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalInOut af(PC_10);
DigitalInOut ad(PC_1);
KS0108 display(PA_0,PA_1, PA_2, PA_3, PA_4, PA_5, PA_6, PA_7, PA_8, PA_9, PA_10, PA_11, PA_12, PA_13);

void testLCD(){
display.ClearScreen();

    display.GotoXY(5,0);
    display.SelectFont(Arial12,BLACK,ReadData);
    display.PrintNumber(1);
    display.PrintChar('m');

    display.GotoXY(5,16);
    display.PrintString("arial Font test");
    wait(3);

    display.GotoXY(2,32);
    display.SelectFont(vivaldi16,BLACK,ReadData);
    display.PrintString("Vivaldi font");
    wait(3);

}
void testLCDR(){
display.ClearScreen();
display.RoundRectangle(0,0,127,63,3,BLACK);

    while(1){

          display.HLine(20,70,30,BLACK);
          display.HLineShort(30,20,50,BLACK);
          display.VLine(20,40,30,BLACK);
          display.VLineShort(70,5,50,BLACK);
          display.SlantyLine(5,8,20,30,BLACK);
          display.DegreeLine(15,30,30,6,20,BLACK);
          display.FullRectangle(10,30,15,34,BLACK);
          display.EmptyRectangle(5,5,50,59,BLACK);
          display.RoundRectangle(30,20,80,35,7,BLACK);
          wait(2);
        display.ClearScreen();
    }

}
int main() {

while (1) {

	led1 = !led1;
	led2 = !led1;
	testLCD();
}

}

And produce this error

Description Resource Path Location Type
fatal error: mbed_rtx_conf.h: No such file or directory platformioTest line 29, external location: /home/hanif/.platformio/packages/framework-mbed/rtos/rtos.h C/C++ Problem

can some one help me?

thanks

Could you share platformio.ini file?

i’m so sorry for late respon. this is my platformio.ini. i’m new in platformio
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; Redirecting...

[env:disco_f407vg]
platform = ststm32
board = disco_f407vg
framework = mbed

[env:nucleo_f767zi]
platform = ststm32
board = nucleo_f767zi
framework = mbed

[env:debug]
platform = ststm32
framework = mbed
board = disco_f407vg
debug_tool = custom
debug_port = :4242
debug_server = $PLATFORMIO_HOME_DIR/packages/tool-stlink/st-util

Try to add

build_flags = -DPIO_FRAMEWORK_MBED_PRESENT

to the platformio.ini file

I try add
build_flags = -DPIO_FRAMEWORK_MBED_PRESENT

and then yhe results is present some error like this:
cannot convert ‘Managedmbed::Dir’ to 'mbed::Dir’ in initialization
cannot convert ‘Managedmbed::File’ to 'mbed::File’ in initialization
cannot convert ‘mbed::Dir*’ to ‘mbed::DirHandle*’ in assignment
cannot convert ‘mbed::File*’ to ‘mbed::FileHandle*’ in assignment
incomplete type ‘mbed::Dir’ used in nested name specifier
incomplete type ‘mbed::File’ used in nested name specifier
invalid use of incomplete type 'class mbed::Dir’
invalid use of incomplete type 'class mbed::Dir’
invalid use of incomplete type ‘class mbed::File’
invalid use of incomplete type ‘class mbed::File’
‘d’ has incomplete type
’f’ has incomplete type
"__packed" redefined

It seems that the file system feature is needed, add also

build_flags = -D PIO_FRAMEWORK_MBED_FILESYSTEM_PRESENT

have a look to http://docs.platformio.org/en/latest/frameworks/mbed.html#configuration
It seems that the handling of the mbedos5 features is buggy.

oke…its works…
thanks for @sstaub and @ivankravets for your help…
PlatformIO is great…