llancet has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a module with XS and C++. After tried XSPP, I found it lack some important functions such as "PPCODE", so I decided to write XS code by my hand.
Though that, the Module::Build::WithXSpp is still very handful, as it automatically find and set C++ flags to compilers, and it calls TypeMap modules automatically. However, when I masked my .xsp files and set up my .xs files, the builder failed to build them into a single .so file. Instead, it compiles the code generated from my .xs files into blib/arch/auto/xs/XXX, and the code automatically generated by M::B::WithXSpp into blib/arch/auto/XXX.
...... cc -shared -L/usr/local/lib -fstack-protector -o blib/arch/auto/xs/Gen +oEye_Page/GenoEye_Page.so xs/GenoEye_Page.o -lcairo -lstdc++ -lGenoEy +e -lboost_regex ...... cc -shared -L/usr/local/lib -fstack-protector -o blib/arch/auto/GenoEy +e/GenoEye.so buildtmp/GenoEye.o -lcairo -lstdc++ -lGenoEye -lboost_re +gex
As a result, the generated .so file under the correct location is a null one. how could this happen?
This is the layout of my project:Thanks!!Build Build.PL Changes ignore.txt MANIFEST MANIFEST.skip MYMETA.json MYMETA.yml README lib: GenoEye.pm src: ppport.h t: 00-load.t 01-page.t boilerplate.t manifest.t pod-coverage.t pod.t xs: GenoEye_Page.c GenoEye_Page.o GenoEye_Page.xs typemap.map
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module::Build::WithXSpp does not correctly handle XS files correctly?
by Anonymous Monk on Jan 09, 2014 at 16:18 UTC | |
by llancet (Friar) on Jan 10, 2014 at 09:26 UTC | |
by Anonymous Monk on Jan 10, 2014 at 09:59 UTC | |
|
Re: Module::Build::WithXSpp does not correctly handle XS files correctly? ( module_name.xs )
by Anonymous Monk on Jan 10, 2014 at 11:13 UTC | |
by llancet (Friar) on Jan 11, 2014 at 02:16 UTC | |
by Anonymous Monk on Jan 11, 2014 at 08:11 UTC | |
|
Re: Module::Build::WithXSpp does not correctly handle XS files correctly?
by bulk88 (Priest) on Jan 09, 2014 at 23:48 UTC |