lv_port_pc_eclipse icon indicating copy to clipboard operation
lv_port_pc_eclipse copied to clipboard

lv_port_pc_eclipse V9 build failure[windows]

Open Bendikos opened this issue 1 year ago • 8 comments

Snipaste_2024-02-02_16-07-01

function 'Tvg_Result tvg_engine_init(Tvg_Engine, unsigned int)' definition is marked dllimportGCC
'Tvg_Result tvg_engine_init(Tvg_Engine, unsigned int)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]GCC
Tvg_Result tvg_engine_init(Tvg_Engine engine_method, unsigned int threads)
Engine API
Initializes TVG engines. TVG requires the running-engine environment. TVG runs its own task-scheduler for parallelizing rendering tasks efficiently. You can indicate the number of threads, the count of which is designated threads. In the initialization step, TVG will generate/spawn the threads as set by threads count. tvg_engine_init(TVG_ENGINE_SW, 0); //Initialize software renderer and use the main thread only

Parameters:
engine_method – The engine types to initialize. This is relative to the Canvas types, in which it will be used. For multiple backends bitwise operation is allowed. - TVG_ENGINE_SW: CPU rasterizer - TVG_ENGINE_GL: OpenGL rasterizer (not supported yet)
threads – The number of additional threads used to perform rendering. Zero indicates only the main thread is to be used.

Returns:
Tvg_Result enumeration.

Return values:
TVG_RESULT_SUCCESS Succeed.
TVG_RESULT_FAILED_ALLOCATION An internal error possibly with memory allocation.
TVG_RESULT_INVALID_ARGUMENT Unknown engine type.
TVG_RESULT_NOT_SUPPORTED Unsupported engine type.
TVG_RESULT_UNKNOWN Other error.

Note:
The Initializer keeps track of the number of times it was called. Threads count is fixed at the first init() call.

I am using the version in the folder, Snipaste_2024-02-02_15-54-16 Low version (requires lv_drivers folder) can successfully build Snipaste_2024-02-02_16-11-42 Please tell me what I should do?

Bendikos avatar Feb 02 '24 08:02 Bendikos

I also encountered this problem image

wxlinus avatar Feb 04 '24 07:02 wxlinus

Does it help if you add #define TVG_BUILD 1 here?

kisvegabor avatar Feb 05 '24 09:02 kisvegabor

Snipaste_2024-02-05_19-32-51 Still unable to run.

Bendikos avatar Feb 05 '24 11:02 Bendikos

image

I solved this problem by changing mingw64 to cygwin, and then I compiled and installed SDL2, but I couldn't use debug because gcc under win is missing ASAN related libraries

wxlinus avatar Feb 07 '24 01:02 wxlinus

Feel free to disable ASAN. It's just optional.

kisvegabor avatar Feb 07 '24 08:02 kisvegabor

Thank you!

wxlinus avatar Feb 08 '24 00:02 wxlinus

I had the same problem, what's the meaning of changing mingw64 to cygwin @wxlinus . I worded in windows platform and use mingw and vscode, I am not get used to use codeblock even thoug it's recommended in windows platfrom

wendaoyifei avatar Jun 28 '24 09:06 wendaoyifei

Should we ask questions in this project?

Bendikos avatar Jun 29 '24 03:06 Bendikos

Should we ask questions in this project?

Oh yes, as it's VS code please open a new issue in https://github.com/lvgl/lv_port_pc_vscode

kisvegabor avatar Jul 09 '24 12:07 kisvegabor

6592fdd99848cbd0e7b216c096996e7 Adding a sentence with a red line may solve your problem

yaoxuexill avatar Jul 15 '24 14:07 yaoxuexill