I am trying to build OpenSSL 1.0.2 version using Visual Studio 2008 command prompt for Windows CE device. I am using Windows 7, 32 bit machine.
I am following the instructions that are mentioned in INSTALL.WCE file.
Below are the steps that I am following:
- I have set PATH,LIB and INCLUDE variables.
- Run “perl Configure VC-CE”
- Run “ms\do_ms”
- Run” nmake -f ms\ce.mak”
Below is the error that I am facing
lib /nologo /out:out32_ARMV4I\ssleay32.lib @C:\Users\AppData\Local\Temp\nmBC93.tmp cl/Fotmp32_ARMV4I\constant_time_test.obj -Iinc32 -Itmp32_ARMV4I /O1i /W3 /GF /Gy /nologo -D UNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD - DOPENSSL_SMALL_FOOTPRINT -D_WIN32_WCE=500 -DUNDER_CE=500 -DWCE_PLATFORM_VC-CE -DARM -D_ARM_ -DARMV4I
-QRarch4T -QRinterwork-return /MT -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_ JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE /Zi /Fdtmp32_ARMV4I/app -c .\crypto\constant_time_test.c constant_time_test.c link /nologo /opt:ref /subsystem:windowsce,5.00 /machine:ARM /debug /out:out32_ARMV4I\constant_time_test.exe
C:\Users\AppData\Local\Temp\nmBE87.tmp tmp32_ARMV4I\constant_time_test.obj
fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'ARM'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x458' Stop.
As per my understanding this is falling since I am on a x86 machine and trying to build the library for ARM platform. How do I overcome this issue since VS2008 does not have cross-compiler. Can I built this without using wcecomapt library?