SEGGER EMWIN LATEST RELEASE PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SEGGER EMWIN LATEST RELEASE PROBLEM

Jump to solution
1,751 Views
J_Borge
Contributor I

I am using the LPC1788 with EMWIN, and use VidualStudio to prototype some of the GUI code.  Moving from the 522 EMWIN library to 536 is giving some compiler problems In Microsoft Visual Studio 10.

To troubleshoot I downloaded the last complete lpc1788 BSP project version 522 from NXP.  

emWin Graphics Library|NXP 

I compiled and ran the EMWIN demo with no changes.  All works well as expected.

I then downloaded version  536 from NXP which supplied the file emwin_x86.lib.  No project, just the library.   I replaced the   GUIx86.lib (522) with emwin_x86.lib (536).   

When compiling I get the following errors:

1>emWin_x86.lib(FRAMEWIN_Get.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUIDEV_32.OBJ) : error LNK2019: unresolved external symbol _emWin_memcpy referenced in function __DrawBitLine1BPP
1>emWin_x86.lib(GUI_SetAlpha.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUI_Realloc.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUI_ALLOC_AllocInit.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(WM_UserData.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUI__SetText.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUIDEV_8.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUIDEV_16.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GRAPH_DATA_XY.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUI_Alloc.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUIDEV_StaticDevices.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>emWin_x86.lib(GUI_ARRAY.OBJ) : error LNK2001: unresolved external symbol _emWin_memcpy
1>.\Output\WIN32_MSVC60\Debug/Simulation.exe : fatal error LNK1120: 1 unresolved externals

I also updated header files and copied over the config folder.  No change.

I then worked backwards downloading older versions.

I tested 524 and it works

I tested 530 and it works

The new 536 version that came after 530 is looking for the external "emWin_memcpy".

Please let me know what has to be done to make 536 compile.

Thank you.

1 Solution
1,483 Views
SundarapandianA
NXP Employee
NXP Employee

You can add the following function to any of your source files (like the file in which you have main)

void * _emWin_memcpy(void *dst, const void *src, int size)

{

        return memcpy(dst, src, size);

}

View solution in original post

3 Replies
1,484 Views
SundarapandianA
NXP Employee
NXP Employee

You can add the following function to any of your source files (like the file in which you have main)

void * _emWin_memcpy(void *dst, const void *src, int size)

{

        return memcpy(dst, src, size);

}

1,483 Views
J_Borge
Contributor I

Thank you for your help. I needed 5.36 after all, and your suggestion helped me.

void * emWin_memcpy(void *dst, const void *src, int size)

{

        return memcpy(dst, src, size);

}

0 Kudos
Reply
1,483 Views
ckphua
NXP Employee
NXP Employee

The emWin 536 release library build is broken, we are looking into the cause. The 536 release has been removed from nxp site for now. Will repost when it is fixed. 

0 Kudos
Reply