SEGGER EMWIN LATEST RELEASE PROBLEM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SEGGER EMWIN LATEST RELEASE PROBLEM

跳至解决方案
1,769 次查看
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 解答
1,501 次查看
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);

}

在原帖中查看解决方案

3 回复数
1,502 次查看
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,501 次查看
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 项奖励
回复
1,501 次查看
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 项奖励
回复