From: Konovalov, V. <vko...@sp...> - 2004-03-30 13:51:13
|
All extensions should be cross-compiled during normal nmake process. That said, firstly miniperl on host machine is created, and then it is used to facilitate cross-compiling extensions. Below is an excerpt from your makefile.ce, $(HPERL) means perl on Win2000+. "Extension" target is normally builded Extensions: ..\win32\buildext.pl $(PERLDEP) $(CONFIGPM) $(HPERL) -I..\lib -I..\win32 -MCross=$(CROSS_NAME) ..\win32\buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) \ !POSIX $(NOT_COMPILE_EXT) > -----Original Message----- > From: dhiman chattopadhyay [mailto:cha...@ya...] > Sent: Tuesday, March 30, 2004 1:32 PM > To: Eruhim Watman; per...@li...; > an...@vs... > Cc: vko...@sp...; > per...@li...; cha...@ya... > Subject: Re: [perlce-user] Problems encountered while running > Perl Modules in PerlCE > > > Hi, > Thanks for your help. > we think that io.dll,socket.dll etc has to be rebuilt > for the wince4.20 x86 platform for running perl > modules on perlCE. > But it seems that the makefile.ce does not build those > files. > (Pls see our modified makefile attached below.) > We need the source file & makefile for cosscompiling > io.dll,socket.dll,cwd.dll etc for porting perlce to > WinCE 4.20 x86 platform to run perl modules. > Can anyone please help us on this ? > > We are stuck with the error message -- > "cann't load io.dll" > (126 -ERROR_MOD_NOT_FOUND) > although the specified dll is in specified path. > The other error is "cann't load cwd.dll" > (193 - ERROR_BAD_EXE_FORMAT). > > We also found from the debug log of platform builder > that > "DoImport Failed! Unable to import Library > 'WINSOCKM.dll' for 'IO.dll' " > but there is no file named winsockm.dll !! > Another error coming in platform builder debug log is > -- > " ERROR: function @ Ordinal 8934 missing in Module > 'coredll.dll' " > > Can you please tell us where we are going wrong. > > Thanks and Regards, > Anirban > Dhiman > > > --- Eruhim Watman <wa...@sp...> wrote: > DLL's are > not compatible between WinCE and WinXP. > > > > For example, font files (TTF) are compatible but > > executables are not. > > > > you must build them properly during common > > cross-compilation process > > and go. > > > > Could you please share your resulting makefile BTW? > > > > Best regards, > > Vadim. > > > > avn> Dear Sir, > > avn> We have built perl for windows CE .NET 4.20 on > > x86 . > > avn> and have ported the perl.exe and dll and > > executed simple > > avn> perl scripts successfully. > > avn> We have copied Perl library files(.pm,.pl, .dll > > etc) to Windows CE target since we need to run perl > > modules also. > > > > avn> However while running perl modules We are > > facing the following problems . > > > > avn> On executing our perl module code in the target > > we are getting the following error. > > > > avn> "Can't load './auto/IO/IO.dll' for module IO: > > TCS1 load_file:Error at DynaLoader.pm line 72. > > avn> at IO/Handle.pm line 260 > > > > avn> Compilation failed in require at IO/Handle.pm > > line 260. > > avn> BEGIN failed--compilation aborted at > > IO/Handle.pm line 260. > > avn> Compilation failed in require at IO/Socket.pm > > line 11. > > avn> BEGIN failed--compilation aborted at > > IO/Socket.pm line 11. > > avn> Compilation failed in require at HTTP/Daemon.pm > > line 10. > > avn> BEGIN failed--compilation aborted at > > HTTP/Daemon.pm line 10. > > avn> Compilation failed in require at > > SOAP/Transport/HTTP.pm line 360." > > > > avn> We copied IO.dll from perl library of winXP to > > the specified > > avn> path in target CE but it did not work out. > > avn> We also tried the io.dll fom the precompiled > > avn> distribution available in perlCE souceforge > > site but ended up with the same error > > > > avn> We found the root cause : in cewin32.c (source > > file for celib.dll ) > > avn> LoadLibraryW call inside XCELoadLibraryA > > returns null. > > avn> we think windows CE fails to recognise the dll > > copied from winXP perl. > > avn> But from the readme.ce it seems that the same > > xs dlls like cwd.dll,IO.dll, > > avn> socket.dll are to be copied from perl library > > of winXP to the specified > > avn> path in target CE. > > avn> are we going wrong ? or are we to build the > > IO.dll etc for target platform ? > > avn> We did not find the source from which we can > > build these dlls for target platform. > > > > avn> We are stuck at this problem for quite some > > time now . Can you pls help us in this ? > > > > avn> Thank you for giving your precious time. > > > > avn> Regards > > avn> Anirban Gomes > > > > > > ______________________________________________________________ > __________ > Yahoo! India Insurance Special: Be informed on the best > policies, services, tools and more. > Go to: http://in.insurance.yahoo.com/licspecial/index.html > |