145 views
in Getting started by
Hi,

I'm using the trial version of Embedded Wizard. I wanted to make a simple application to run on windows, just to try the workflow of the Embedded Wizard. I used the win32 and generated the code, but when I tried to compile I got the error "fatal error: ewrte.h: No such file or directory". So I tried to do the same with the example projects and got the same error.

What should I do to generate this ewrte.h?

1 Answer

+1 vote
by
 
Best answer

Hello,

the file ewrte.h is not generated, it is part of the Platform Package code (Embedded Wizard Runtime Environment RTE and Graphics Engine GFX) of a dedicated platform.

Let me refer to this article about creating a Win32 executable - does this help?

Btw: The installed examples contain already a MSVC project - are you able to rebuild these examples?

Best regards,

Manfred

by

Hi,

Thanks for the answer, I followed the steps and now all files were found by the compiler.

Problem is now I'm getting some compilation errors which I'm showing in the snippet. The complete list of errors is too big, so I'll leave just the beginning.

I'm currently on Ubuntu 18.04 trying to cross compile using the command i686-w64-mingw32-gcc with the -L and -I flags set to the Platform Packages directories as instructed by the previous answer.

Am I forgetting to do something?

Core.c:168:1: warning: ‘naked’ attribute directive ignored [-Wattributes]
 {
 ^
Core.c: In function ‘CoreView__initLayoutContext’:
Core.c:174:3: error: expected ‘(’ before ‘{’ token
   {
   ^
Core.c:176:5: error: unknown type name ‘mov’
     mov eax, DWORD PTR [ esp + 4 ]
     ^~~
Core.c:176:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PTR’
     mov eax, DWORD PTR [ esp + 4 ]
                    ^~~
Core.c:235:1: warning: ‘naked’ attribute directive ignored [-Wattributes]
 {
 ^
Core.c: In function ‘CoreView__GetRoot’:
Core.c:239:3: error: expected ‘(’ before ‘{’ token
   {
   ^
Core.c:241:5: error: unknown type name ‘mov’
     mov eax, DWORD PTR [ esp + 4 ]
     ^~~
Core.c:241:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PTR’
     mov eax, DWORD PTR [ esp + 4 ]
                    ^~~

...

 

by
Hi,

it seems that the compiler has some troubles with the inline assembler instructions. I never tried to cross compile a Win32 executable on a Ubuntu machine - which does not make too much sense from my point of view.

Did you try to use MSVC compiler? Maybe this is much easier as you can reuse the provided example projects.

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...