Hi list, I'm trying to compile cw_binaural~ external for android but I get this error:
g++ /home/husk/src/pd/pure-data/src/ -o "src/cw_binaural~.o" -c "src/cw_binaural~.cpp" src/cw_binaural~.cpp: In function ‘void cw_binaural_set_listen_db(t_cw_binaural_tilde*, t_symbol*)’: src/cw_binaural~.cpp:78:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_set_cipic_db(t_cw_binaural_tilde*, t_symbol*)’: src/cw_binaural~.cpp:89:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_set_hrtf_db(t_cw_binaural_tilde*, t_symbol*, t_symbol*, t_symbol*, t_symbol*)’: src/cw_binaural~.cpp:132:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_tilde_free(t_cw_binaural_tilde*)’: src/cw_binaural~.cpp:141:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void* cw_binaural_tilde_new(t_symbol*, int, t_atom*)’: src/cw_binaural~.cpp:178:24: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp:192:20: error: ‘logstring2pdterm’ was not declared in this scope make: *** [src/cw_binaural~.o] Error 1
The external seems to use TemplateLibrary, so it should compile, rights? what the problem here?
thanks in advance husk
hi,
the Makefile is from template version 1.0.7 whereas the actual template is 1.0.14 as cw_binaural~ library is written in C++ (at least have .cpp file, I didn't look at the code) the template needs some tweak to work
also I just tried this and I got : make: *** Pas de règle pour fabriquer la cible « cw_binaural~.so », nécessaire pour « all ». Arrêt.
a
-- do it yourself http://antoine.villeret.free.fr
2013/10/15 Husk 00 husk00@gmail.com
Hi list, I'm trying to compile cw_binaural~ external for android but I get this error:
g++ /home/husk/src/pd/pure-data/src/ -o "src/cw_binaural~.o" -c "src/cw_binaural~.cpp" src/cw_binaural~.cpp: In function ‘void cw_binaural_set_listen_db(t_cw_binaural_tilde*, t_symbol*)’: src/cw_binaural~.cpp:78:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_set_cipic_db(t_cw_binaural_tilde*, t_symbol*)’: src/cw_binaural~.cpp:89:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_set_hrtf_db(t_cw_binaural_tilde*, t_symbol*, t_symbol*, t_symbol*, t_symbol*)’: src/cw_binaural~.cpp:132:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void cw_binaural_tilde_free(t_cw_binaural_tilde*)’: src/cw_binaural~.cpp:141:20: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp: In function ‘void* cw_binaural_tilde_new(t_symbol*, int, t_atom*)’: src/cw_binaural~.cpp:178:24: error: ‘logstring2pdterm’ was not declared in this scope src/cw_binaural~.cpp:192:20: error: ‘logstring2pdterm’ was not declared in this scope make: *** [src/cw_binaural~.o] Error 1
The external seems to use TemplateLibrary, so it should compile, rights? what the problem here?
thanks in advance husk
-- "l'importante nella vita é avere pregiudizi a priori su tutto" Jean-Paul-Sartre
www.estereotips.net
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue, Oct 15, 2013 at 1:06 PM, Antoine Villeret < antoine.villeret@gmail.com> wrote:
hi,
the Makefile is from template version 1.0.7 whereas the actual template is 1.0.14 as cw_binaural~ library is written in C++ (at least have .cpp file, I didn't look at the code) the template needs some tweak to work
what kind of tweak it needs? I'm not a C coder but I can try to mess a little bit around....can you explain me a bit more please?
also I just tried this and I got : make: *** Pas de règle pour fabriquer la cible « cw_binaural~.so », nécessaire pour « all ». Arrêt.
I'm not sure to get it
thanks
husk
2013/10/15 Husk 00 husk00@gmail.com
On Tue, Oct 15, 2013 at 1:06 PM, Antoine Villeret < antoine.villeret@gmail.com> wrote:
hi,
the Makefile is from template version 1.0.7 whereas the actual template is 1.0.14 as cw_binaural~ library is written in C++ (at least have .cpp file, I didn't look at the code) the template needs some tweak to work
what kind of tweak it needs? I'm not a C coder but I can try to mess a little bit around....can you explain me a bit more please?
default makefile is looking to *.c files instead of *.cpp all the build rules are made to deal with .c and not .cpp this lead to weird behavior like the "make clean" rule would delete all your .cpp sources files listed in the Makefile...
also I just tried this and I got : make: *** Pas de règle pour fabriquer la cible « cw_binaural~.so », nécessaire pour « all ». Arrêt.
I'm not sure to get it
I mean I was trying to build with a tweaked Makefile, but it failed and I don't know why now...
btw, I used to include the sources of externals for android directly into my Eclipse project small changes in Android.mk and Application.mk make it very easy to work with external in libpd (it can be built and updated automatically when running the app) see the example in libpd and moreover the ScenePlayer source to get started
I could post here an example on how to build C++ external in Eclipse if you need
cheers
a
thanks
husk