SEGGER EMWIN LATEST RELEASE PROBLEM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SEGGER EMWIN LATEST RELEASE PROBLEM

ソリューションへジャンプ
1,750件の閲覧回数
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,482件の閲覧回数
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,483件の閲覧回数
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,482件の閲覧回数
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,482件の閲覧回数
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 件の賞賛
返信