Re: Multiple entry points (MS Windows)
Oliver Betz <[email protected]> Sun, 26 Apr 2020 23:16:57 +0200
| Newsgroups | gmane.comp.lang.perl.par |
|---|---|
| Message-ID | <[email protected]> |
Hi Johan, > I unpacked the zip and tried to run. > > First problem: the .exe files are not executable: Are you running under real Windows or Wine? This doesn't sound like a Windows issue. [...] > While looking at the (modified) source: what is the purpose of > > unshift @INC, 'C:\temp\Coordpro_temp\x\inc\lib'; sorry, I packed the wrong file into the archive. Delete the whole BEGIN block, Perl automatically adds the lib subdirectory to @INC (if it exists). Just for the case this doesn't work anymore some day, use something like this in a BEGIN block: unshift @INC, ($0 =~ /(.*)[\\\/]/) ? "$1/lib" : './lib'; [...] > Can you pass me the wrapper source and innosetup file? There is no InnoSetup file. The wrapper code is on my web site *) in ppl.zip but configured for ExifTool. Change pathreplace[] and dllsearch[] to your needs and "#define ARGS_ADDED 1". My "standard makefile" is too weird (complex and specific) to be published. I compiled with -Wall -Wstrict-prototypes -O2 -s -mms-bitfields -fwrapv $(UNICODE) -mwindows http://www.mingw.org/wiki/ms_resource_compiler might help to get the resources built and linked. Contact me off-list if you need support. Oliver *) https://oliverbetz.de/pages/Artikel/Portable-Perl-Applications