Problems? Is your data what you think it is? | |
PerlMonks |
Re: anyone try to install cdk from source (invisible-island)?by sbrickles (Novice) |
on Feb 01, 2018 at 22:03 UTC ( [id://1208291]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|