From: Konovalov, V. <vko...@sp...> - 2004-02-06 13:31:05
|
Actually compiler fails to load not "c1.exe" but probably "c1.dll" which *is* in your path. However, I still think this is likely to be a configuration problem. You MUST setup environment variables properly before compiling for WindowsCE. This is why MS provides special files like "WCEx86.BAT". Please search for it. Do you use it? Please beleive it is essential. Personally, I have a couple of tricks that ease setting up environment in my machine. I can share them with you afterwards. Besides, when you'll succeed it would be a good idea to share your experience and may be binaries with entire "perlce" project :) Best regards, Vadim. -----Original Message----- From: ayu...@tc... [mailto:ayu...@tc...] Sent: Friday, February 06, 2004 4:03 PM To: Konovalov, Vadim Cc: per...@li... Subject: RE: Perl on WinCE Hi , I have achieved some progress for implementing perl on Win CE 4.20. After specifying the correct paths (for Win CE library )in WCEROOT and CEPATH in compile.bat and Makefile.ce I'm now stuck at this problem : - During compilation of first c file av.c cl.exe gives this error " Command line error D2027 : cannot execute 'c1' " while running the compile.bat . But there is no c1.exe file ; I have the cl.exe file in proper path . Here is the output log : " Windows CE Version (Release) (Built on Jun 7 2002 17:04:51) Compiling for wince-x86em-pocket-wce300 LIB=C:\WINCE420\Platform\830M4\lib\X86\debug INCLUDE=C:\WINCE420\Platform\830M4\include PATH=C: cl.exe -c -nologo -Gf -W3 -I.\include -I..\win32\include -I. -I.. -DWIN32 -D_CONSOLE -DNO_STRICT -D_WINDOWS -D_WIN32_WCE=420 -DUNDER_CE=420 -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL -D_WIN32_WCE_EMULATION -DPALM_SIZE -DPOCKET_SIZE -I C:\perlCE\celib-3.11-dll-src.tar\celib-3.10-dll-src\celib-palm-3.0\inc -D PERL -Zi -Od -DPERLDLL -DPERL_CORE -D_WINDOWS -D_WIN32_WCE=420 -DUNDER_CE=420 -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL -D_WIN32_WCE_EMULATION -DPALM_SIZE -DPOCKET_SIZE -I C:\perlCE\celib-3.11-dll-src.tar\celib-3.10-dll-src\celib-palm-3.0\inc -D PERL -Zi -Od -DUSE_PERLIO -DPERL_EXTERNAL_GLOB -Fowince-x86em-pocket-wce300\dll\ ..\av.c av.c Command line error D2027 : cannot execute 'c1' " And the error log states : " Microsoft (R) Program Maintenance Utility Version Test Version Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. " I tried this to run the same from dos prompt also but it also gave the same error . Here is the log from dos prompt . " C:\PERLCE\perl-5.8.2\wince>cl.exe -c -nologo -Gf -W3 -I.\include -I..\win32\incl ude -I. -I.. -DWIN32 -D_CONSOLE -DNO_STRICT -D_WINDOWS -D_WIN32_WCE=420 -DUNDER _CE=420 -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL -D_WIN32_WCE_EMULATION -D PALM_SIZE -DPOCKET_SIZE -I C:\perlCE\celib-3.11-dll-src.tar\celib-3.10-dll-src\ celib-palm-3.0\inc -D PERL -Zi -Od -DPERLDLL -DPERL_CORE -D_WINDOWS -D_WIN32 _WCE=420 -DUNDER_CE=420 -DX86 -D_X86_ -DPROCESSOR_X86 -D _MT -D _DLL -D_WIN32_ WCE_EMULATION -DPALM_SIZE -DPOCKET_SIZE -I C:\perlCE\celib-3.11-dll-src.tar\cel ib-3.10-dll-src\celib-palm-3.0\inc -D PERL -Zi -Od -DUSE_PERLIO -DPERL_EXTERNAL_ GLOB -Fowince-x86em-pocket-wce300\dll\ ..\av.c av.c Command line error D2027 : cannot execute 'c1' " can you please help me how to get rid off the problem . Warm Regards, Ayushman Dutta "Konovalov, Vadim" <vko...@sp...> 02/05/2004 07:26 PM Toa...@tc... ccp...@li... SubjectRE: Perl on WinCE ^> I tried the following approach to install perl on Win CE .Net 4.2 ^> as per steps given in http://perlce.sourceforge.net . ^> ^> First I configured that compile.bat file. Here I have following queries : - ^> 1.Does INSTALL_ROOT ( refer to compile.bat ) mean the path on the CE device where the perl will be installed ? ^> With that assumption we tried " \windows\perl58 " . good ^> 2. I'm using Microsoft Embedded Visual C++4.0 After installing the Microsoft embedded VC++ in its default path I saw that ^> Microsoft embedded Visual C++ 4.0 is installed in "C:\Windows CE Tools" . ^> Will the WCEROOT path ? I tried "C:\Windows CE Tools" actually I intended to try compilers newer than 3.0 but did not managed this yet. Actually this could be the source of a problem. But in "ideal" case all should work. ^> 3. What will be the path for CEPATH ? ( the document says "path to embedded tools" ; Is it "C:\Windows CE Tools\eVC4\Htmlhelp\emtools" ?) ^> 4. What will be the MACHINE in our case ? ^> I found the following as the closest match. (because in our case it is WinCE 4.2 , X86 CEPC, there was no perfect match in list ) ^> "set ARG-10=MACHINE=wince-x86em-pocket-wce300" I can't clarify this, but did you tried just running existing binaries from "perlce" SF site? Just for probe, (not as the only way of getting binaries of course :) ^> To compile the perl for win CE the I copied the compile.bat file to the folder ^> C:\Program Files\Microsoft eMbedded C++ 4.0\Common\EVC\Bin and typed ^> "compile.bat dist " from the command prompt . ^> After running for some time it gave the following error during running and got aborted. ^> "NMAKE : fatal error U1077: '"C:\Program Files\Microsoft eMbedded C++ 4.0\Common\ ^> EVC\Bin\NMAKE.EXE"' : return code '0x2' ^> Stop. " Please give me full error log, not only last few lines. Also, did you used your "wce.bat". Actually EVC contains some ".bat" files after it is installed. Did you used them? Which one? Actually I probably will be able say more about building your configuration and even could try it if you'll find out which one of those should be used by your configuration... Best regards, Vadim. ForwardSourceID:NT00000EEE |