Skip to content

Attempts to run the simulator in WIN10 #4

Description

@brightproject

I run the repository code in platformio + vscode.
platformio.ini settings

[platformio]
default_envs = emulator_Core
[env]
build_flags =
-std=c++17
-I include
-I src/utility

; LVGL
-D LV_CONF_INCLUDE_SIMPLE
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LVGL_USE_V8=0 ; lvgl v8
-D LVGL_USE_V9=1 ; lvgl v9

Build errors are:

Processing emulator_Core (platform: native@^1.2.1)
Verbose mode can be enabled via -v, --verbose option
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- M5GFX @ 0.2.9+sha.30f9232
|-- lvgl @ 8.3.0
Building in debug mode
Compiling .pio\build\emulator_Core\lib427\M5GFX\M5GFX.o
In file included from .pio\libdeps\emulator_Core\M5GFX\src\M5GFX.h:48,
from .pio\libdeps\emulator_Core\M5GFX\src\M5GFX.cpp:4:
.pio\libdeps\emulator_Core\M5GFX\src\lgfx/v1/platforms/common.hpp:66:2: error: #error unknown platform...
66 | #error unknown platform...
| ^~~~~
Compiling .pio\build\emulator_Core\lib427\M5GFX\lgfx\Fonts\IPA\lgfx_font_japan.o
Compiling .pio\build\emulator_Core\lib427\M5GFX\lgfx\Fonts\efont\lgfx_efont_cn.o
Compiling .pio\build\emulator_Core\lib427\M5GFX\lgfx\Fonts\efont\lgfx_efont_ja.o
Compiling .pio\build\emulator_Core\lib427\M5GFX\lgfx\Fonts\efont\lgfx_efont_kr.o
Compiling .pio\build\emulator_Core\lib427\M5GFX\lgfx\Fonts\efont\lgfx_efont_tw.o
.pio\libdeps\emulator_Core\M5GFX\src\lgfx/v1/platforms/common.hpp: In member function 'void lgfx::v1::SimpleBuffer::deleteBuffer()':
.pio\libdeps\emulator_Core\M5GFX\src\lgfx/v1/platforms/common.hpp:92:9: error: 'heap_free' was not declared in this scope
92 | heap_free(_buffer);
| ^~~~~~~~~
.pio\libdeps\emulator_Core\M5GFX\src\lgfx/v1/platforms/common.hpp: In member function 'uint8_t* lgfx::v1::SimpleBuffer::getBuffer(size_t)':
.pio\libdeps\emulator_Core\M5GFX\src\lgfx/v1/platforms/common.hpp:103:22: error: 'heap_free' was not declared in this scope
103 | if (_buffer) heap_free(_buffer);

How to specify the required platform when compiling code?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions