Compile For WinCE problem...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile For WinCE problem...

OpenSSLGRT

I tried to compile OpenSSL 0.9.8a for Windows CE but I get errors saying many include files are missing.

Can someone say if the below steps are correct or help solve errors – thank you!:

 

I used Pervasive Computing’s OpenSSL files

 

-downloaded src from http://www.it.uc3m.es/pervasive/wce_lite_compat/openssl-0.9.8a.zip

-downloaded http://www.it.uc3m.es/pervasive/wce_lite_compat/wce_lite_compat.zip and extracted to c:\wce_lite_compat

-C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin\WCEARMV4.BAT

-set WCECOMPAT=C:\wce_lite_compat

 

-cd C:\myprojects\opensslpda\openssl-0.9.8a

--perl Configure VC-CE

(this worked ok)

 

C:\myprojects\opensslpda\openssl-0.9.8a>perl Configure VC-CE

(this worked OK -- said “Configured for VC-CE.”)

 

C:\myprojects\opensslpda\openssl-0.9.8a>ms\do_ms

(this worked OK)

 

To setup my command line environment I copied the wce420 dir from C:\Program Files\Windows CE Tools\ to C:\Windows CE Tools

From DOS window I see that my INCLUDE vars point to:

INCLUDE=

C:\Windows CE Tools\WCE420\POCKET PC 2003\include\ARMV4;

C:\Windows CE Tools\WCE420\POCKET PC 2003\MFC\include;

C:\Windows CE Tools\WCE420\POCKET PC 2003\ATL\include;

 

C:\myprojects\opensslpda\openssl-0.9.8a>nmake -f ms\cedll.mak

 

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

 

Building OpenSSL

clarm.exe /Fotmp32dll\cryptlib.obj  -Iinc32 -Itmp32dll /MC /O1i /W3 /WX

/GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_ME

AN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -IC:\wce_lite_compat/include -DOPENSSL_SMAL

L_FOOTPRINT -D_WIN32_WCE=420 -DUNDER_CE=420 -DWCE_PLATFORM_POCKET_PC_2003 -DARM

-D_ARM_ -DARMV4 /Fdout32dll -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_KRB5

 -D_WINDLL -D_DLL  -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\cryptlib.c

cryptlib.c

c:\myprojects\opensslpda\openssl-0.9.8a\tmp32dll\e_os.h(267) : fatal error C1083

: Cannot open include file: 'errno.h': No such file or directory

NMAKE : fatal error U1077: 'clarm.exe' : return code '0x2'

Stop.

 

Reply | Threaded
Open this post in threaded view
|

RE: Compile For WinCE problem...

OpenSSLGRT

OK I figured out what I did wrong and now it works OK:

 

To fix…

-I downloaded http://www.essemer.com.au/windowsce/wcecompat-1.2.zip

-I cd to C:\wcecompat and run nmake

I  set WCECOMPAT=C:\wcecompat

 

Many thanks to the people at Pervasive Computing (http://karajan.it.uc3m.es/~pervasive/wce_lite_compat/) where I got the info and Portable OpenSSL src to use here!

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of OpenSSLGRT
Sent:
Wednesday, February 08, 2006 10:43 AM
To: [hidden email]
Subject: Compile For WinCE problem...

 

I tried to compile OpenSSL 0.9.8a for Windows CE but I get errors saying many include files are missing.

Can someone say if the below steps are correct or help solve errors – thank you!:

 

I used Pervasive Computing’s OpenSSL files

 

-downloaded src from http://www.it.uc3m.es/pervasive/wce_lite_compat/openssl-0.9.8a.zip

-downloaded http://www.it.uc3m.es/pervasive/wce_lite_compat/wce_lite_compat.zip and extracted to c:\wce_lite_compat

-C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin\WCEARMV4.BAT

-set WCECOMPAT=C:\wce_lite_compat

 

-cd C:\myprojects\opensslpda\openssl-0.9.8a

--perl Configure VC-CE

(this worked ok)

 

C:\myprojects\opensslpda\openssl-0.9.8a>perl Configure VC-CE

(this worked OK -- said “Configured for VC-CE.”)

 

C:\myprojects\opensslpda\openssl-0.9.8a>ms\do_ms

(this worked OK)

 

To setup my command line environment I copied the wce420 dir from C:\Program Files\Windows CE Tools\ to C:\Windows CE Tools

From DOS window I see that my INCLUDE vars point to:

INCLUDE=

C:\Windows CE Tools\WCE420\POCKET PC 2003\include\ARMV4;

C:\Windows CE Tools\WCE420\POCKET PC 2003\MFC\include;

C:\Windows CE Tools\WCE420\POCKET PC 2003\ATL\include;

 

C:\myprojects\opensslpda\openssl-0.9.8a>nmake -f ms\cedll.mak

 

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

 

Building OpenSSL

clarm.exe /Fotmp32dll\cryptlib.obj  -Iinc32 -Itmp32dll /MC /O1i /W3 /WX

/GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_ME

AN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -IC:\wce_lite_compat/include -DOPENSSL_SMAL

L_FOOTPRINT -D_WIN32_WCE=420 -DUNDER_CE=420 -DWCE_PLATFORM_POCKET_PC_2003 -DARM

-D_ARM_ -DARMV4 /Fdout32dll -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_KRB5

 -D_WINDLL -D_DLL  -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\cryptlib.c

cryptlib.c

c:\myprojects\opensslpda\openssl-0.9.8a\tmp32dll\e_os.h(267) : fatal error C1083

: Cannot open include file: 'errno.h': No such file or directory

NMAKE : fatal error U1077: 'clarm.exe' : return code '0x2'

Stop.