Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I use 5.24 Strawberry Perl Portable Edition from http://strawberryperl.com/releases.html

I install OpenGL::Shader with cpan,it looks ok, but when I run test.pl, Perl say: #version directive missing.

D:\strawberryportable>cpan OpernGL::Shader Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.26) CPAN: Time::HiRes loaded ok (v1.9742) Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz CPAN: YAML::XS loaded ok (v0.65) Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Creating database file ... Done! D:\strawberryportable>perl test.pl Fragment shader: WARNING: 0:3: '' : #version directive missing
Then I download OpenGL::Shader from:

https://metacpan.org/pod/OpenGL::Shader

D:\strawberryportable\OpenGL-Shader-1.01>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for OpenGL::Shader Writing MYMETA.yml and MYMETA.json <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake cp Shader/Common.pm blib\lib\OpenGL\Shader\Common.pm cp Shader.pod blib\lib\OpenGL\Shader.pod cp Shader/Objects.pm blib\lib\OpenGL\Shader\Objects.pm cp Shader/GLSL.pm blib\lib\OpenGL\Shader\GLSL.pm cp Shader.pm blib\lib\OpenGL\Shader.pm cp Shader/ARB.pm blib\lib\OpenGL\Shader\ARB.pm cp shader-test.pl blib\lib\OpenGL\shader-test.pl cp Shader/CG.pm blib\lib\OpenGL\Shader\CG.pm <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake test "D:\strawberryportable\perl\bin\perl.exe" "-MExtUtils::Command::MM" "- +MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, + 'blib\lib', 'blib\arch')" t/*.t t/OpenGL-Shader.t .. <p> ________________________________________<p> Testing OpenGL::Shader<p> ----------------------------------------<p> * ok: Installed: OpenGL v0.7 * ok: OpenGL::Shader module loaded: v1.01 Available shader types: ARB v1.0 - ARBfp1.0 and ARBvp1.0 Assembly GLSL v4.40 - OpenGL Shader Language * ok: 2 shader type(s) reported Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated ARB v1.0 * ok: Loaded ARB shader from: fragment.arb, vertex.arb Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated GLSL v4.40 * fail: Unable to load GLSL shader: Fragment shader: WARNING: 0:2: '' +: #version directive missing * skip: CG shader test <p> ________________________________________ t/OpenGL-Shader.t .. Failed 1/6 subtests (less 1 skipped subtest: 4 okay) Test Summary Report ------------------- t/OpenGL-Shader.t (Wstat: 0 Tests: 6 Failed: 1) Failed test: 5 Files=1, Tests=6, 1 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU +) Result: FAIL Failed 1/1 test programs. 1/6 subtests failed. dmake: Error code 255, while making 'test_dynamic' <p> D:\strawberryportable\OpenGL-Shader-1.01>dmake test "D:\strawberryportable\perl\bin\perl.exe" "-MExtUtils::Command::MM" "- +MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, + 'blib\lib', 'blib\arch')" t/*.t t/OpenGL-Shader.t .. ________________________________________ Testing OpenGL::Shader ---------------------------------------- * ok: Installed: OpenGL v0.7 * ok: OpenGL::Shader module loaded: v1.01 Available shader types: ARB v1.0 - ARBfp1.0 and ARBvp1.0 Assembly GLSL v4.40 - OpenGL Shader Language * ok: 2 shader type(s) reported Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated ARB v1.0 * ok: Loaded ARB shader from: fragment.arb, vertex.arb Use of uninitialized value $type in uc at D:\strawberryportable\OpenGL +-Shader-1.01\blib\lib/OpenGL/Shader/Common.pm line 109. Instantiated GLSL v4.40 * fail: Unable to load GLSL shader: Fragment shader: WARNING: 0:2: '' +: #version directive missing * skip: CG shader test ________________________________________ t/OpenGL-Shader.t .. Failed 1/6 subtests (less 1 skipped subtest: 4 okay) Test Summary Report ------------------- t/OpenGL-Shader.t (Wstat: 0 Tests: 6 Failed: 1) Failed test: 5 Files=1, Tests=6, 0 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 CPU +) Result: FAIL Failed 1/1 test programs. 1/6 subtests failed. dmake: Error code 255, while making 'test_dynamic'
How can I solve the problem?

Thanks!


In reply to Unable to install OpenGL::Shader by SouthWind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (2)
    As of 2018-07-22 07:01 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















      Results (452 votes). Check out past polls.

      Notices?