Code Monkey home page Code Monkey logo

Comments (4)

xsawyerx avatar xsawyerx commented on June 25, 2024

I have no idea what the differences with clang is. I'm not familiar with it... I'll try to take a look at it.

from xs-fun.

wsdookadr avatar wsdookadr commented on June 25, 2024

@Peter-Murphy According to this blogpost and the mailing list perl Makefile.PL CC=/usr/bin/clang should be used to generate the Makefile.

I also had to install the libchromaprint-dev package since it was a required dependency, and the Test::MemoryGrowth CPAN module in order to run the tests.

Compiling the module went well:

user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ perl Makefile.PL CC=/usr/bin/clang
[..]
Looks good
Generating a Unix-style Makefile
[..]

user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ make
[..]
/usr/bin/clang -c  -I. -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.001\" -DXS_VERSION=\"0.001\" -fPIC "-I/home/user/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux/CORE"   Chromaprint.c
rm -f blib/arch/auto/Audio/Chromaprint/Chromaprint.so
LD_RUN_PATH="/usr/lib/x86_64-linux-gnu" cc  -shared -O2 -L/usr/local/lib -fstack-protector Chromaprint.o  -o blib/arch/auto/Audio/Chromaprint/Chromaprint.so    \
           -lchromaprint        \
[..]
user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ make test
[..]
Result: PASS
user@testing:/tmp/xs-fun/chapter_07/Audio-Chromaprint$ 

from xs-fun.

wsdookadr avatar wsdookadr commented on June 25, 2024

@xsawyerx should this issue be closed ?

from xs-fun.

xsawyerx avatar xsawyerx commented on June 25, 2024

@wsdookadr I missed your responses. Thank you for taking the time to write this information down. Also, feel free to throw a PR to document it in the tutorial as well.

Thanks.

from xs-fun.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.