Dmitry,

Here's the email sent by kmx, with the file attached.

David
---------- Forwarded message ----------
From: kmx <k...@atlas.cz>
Date: Tue, Jun 9, 2015 at 3:48 AM
Subject: Re: [Pdl-devel] Unable to build PDL::Drawing::Prima on Windows
To: sisyph...@optusnet.com.au, pdl-devel@lists.sourceforge.net


 Rob,

see enclosed Prima/Config.pm patched with my "dirname(__FILE__)" hack which
might be a possible solution.

Anyway, we should perhaps move this discussion to Prima's bugtracker.

--
kmx
package Prima::Config;
use vars qw(%Config %Config_inst);
use File::Basename qw(dirname);

%Config_inst = (
	incpaths              => [ '$(lib)\Prima\CORE','$(lib)\Prima\CORE\generic' ],
	gencls                => '$(bin)\gencls.bat',
	tmlink                => '$(bin)\tmlink.bat',
	libname               => '$(lib)\auto\Prima\libPrima.a',
	dlname                => '$(lib)\auto\Prima\Prima.xs.dll',
	ldpaths               => [],
	inc                   => '-I$(lib)\Prima\CORE -I$(lib)\Prima\CORE\generic',
	libs                  => '$(lib)\auto\Prima\libPrima.a',
);

%Config = (
	ifs                   => '\\',
	quote                 => '\"',
	platform              => 'win32',
	incpaths              => [ dirname(__FILE__).'\CORE', dirname(__FILE__).'\CORE\generic' ],
	gencls                => dirname(__FILE__) . '\..\..\bin\gencls.bat',
	tmlink                => dirname(__FILE__) . '\..\..\bin\tmlink.bat',
	scriptext             => '.bat',
	genclsoptions         => '--tml --h --inc',
	cobjflag              => '-o ',
	coutexecflag          => '-o ',
	clinkprefix           => '',
	clibpathflag          => '-L',
	cdefs                 => [],
	libext                => '.a',
	libprefix             => 'lib',
	libname               => dirname(__FILE__) . '\..\auto\Prima\libPrima.a',
	dlname                => dirname(__FILE__) . '\..\auto\Prima\Prima.xs.dll',
	ldoutflag             => '-o ',
	ldlibflag             => '-l',
	ldlibpathflag         => '-L',
	ldpaths               => [],
	ldlibs                => ['Xpm','gif','tiff','png','jpeg','gdi32','mpr','winspool','comdlg32'],
	ldlibext              => '',
	inline                => 'inline',
	dl_load_flags         => 0,
	inc                   => '-I'.dirname(__FILE__).'\CORE -I'.dirname(__FILE__).'\CORE\generic',
	define                => '',
	libs                  => dirname(__FILE__) . '\..\auto\Prima\libPrima.a',
);

1;
------------------------------------------------------------------------------
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to