Comments (4)
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.
@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.
@xsawyerx should this issue be closed ?
from xs-fun.
@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)
- "sv_bless( self, gv_stashpv( class, 0 ) )" issue HOT 6
- `PADTMP` doesn't appear in `sv_dump()` output in Chapter 04 HOT 5
- Does it work with C++ too? HOT 5
- Audio::Chromaprint support
- chapter_08 HOT 7
- chapter_05 HOT 6
- Cover typemaps HOT 2
- Chapter 01: I needed to do an extra `perl Makefile.PL` to get `make test` working. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xs-fun.