Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Windows since 50318b6 #493

Closed
shawnlaffan opened this issue Aug 22, 2024 · 1 comment
Closed

Unable to build on Windows since 50318b6 #493

shawnlaffan opened this issue Aug 22, 2024 · 1 comment

Comments

@shawnlaffan
Copy link
Contributor

PDL cannot be built on Windows (Strawberry Perl) since commit 50318b6

Running perl Makefile.PL at the top of the distribution results in the error below.

Probably $header in L72 needs to be quoted, or have its backslashes escaped or converted to forward slashes:

my $h = do { open my $fh, "<", $header or die "$header: $!"; local $/ = undef; <$fh> };
ERROR from evaluation of C:\user\git\pdl_repos\pdl\Libtmp/Makefile.PL: ERROR from evaluation of C:\user\git\pdl_repos\pdl\Libtmp\GSL/Makefile.PL: ERROR from evaluation of C:\user\git\pdl_repos\pdl\Libtmp\GSL\CDF/Makefile.PL: C:perls5.40.0.1_PDLcbin..include/gsl/gsl_cdf.h: No such file or directory at C:\user\git\pdl_repos\pdl\Libtmp\GSL\CDF\gsl_cdf.pd line 72.
@mohawk2
Copy link
Member

mohawk2 commented Aug 22, 2024

Ah, quite right - thank you for the report! A local test on Windows shows that gsl-config --cflags returns something like:

"-IC:\perls\5.40.0.1_PDL\c\bin\..\include/gsl/gsl_cdf.h"

which gets turned by shellwords into what you see. I'll fix it shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants