I just spent a whole afternoon battling with these two tarballs...

The first error with this particular CDK is that it's not set up for 64-bit. So you need to set CFLAGS to " -fPIC " and LDFLAGS to " -fPIC " when building the CDK library itself. I was only able to create either static or shared libraries by running configure once with no arguments except "prefix", make, make install and then again with "--with-shared", make, make install to create the shared library.

OK - now you have your 64-bit compatible static and shared libraries in <prefix>. Now in the cdk-perl install, you need to set both CPPFLAGS & CFLAGS to " -fPIC -I<prefix>/include " and LDFLAGS to " -fPIC -L<prefix>/lib -lcdk -lncurses " This will eventually give you a Makefile.PL from which you can create your module. It took a bit of probing into the "configure" script to figure out what was going on, but I was able to finally create a working perl module.

It would be nice if the configure script had an optional argument to specify the prefix of the CDK installation - but I have no clue about the auto tools so I'll leave that up to someone else !!

Stephen

In reply to Re: anyone try to install cdk from source (invisible-island)? by sbrickles
in thread anyone try to install cdk from source (invisible-island)? by butchie3980

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, details, 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, summary, 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.