Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. #################
  2. ### FILE voxels.h
  3.  
  4. #ifndef _VOXELS_H_
  5. #define _VOXELS_H_
  6.  
  7. #include "pandabase.h"
  8. #include "dtoolbase.h"
  9. #include "lvecBase3.h"
  10.  
  11. #include <string>
  12.  
  13. class A
  14. {
  15. private:
  16. int c;
  17. LVecBase3 p;
  18. //string m;
  19.  
  20. PUBLISHED:
  21. A() {}
  22. ~A() {}
  23.  
  24. int sumar(int a, int b) {return a+b;}
  25. string saludar(string texto) {return texto;}
  26. string punto(int punto) {return saludar("punto");}
  27.  
  28. };
  29.  
  30. #endif
  31.  
  32. ########################
  33. ### INTERROGATE COMMANDS
  34.  
  35. echo "interrogate"
  36. interrogate -Dvolatile -Dmutable -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -D__const=const -D__attribute__\(x\)= -D_LP64 -D__cplusplus=201103L \
  37. -fnames -string -refcount -assert -noangles \
  38. -srcdir=. -I. -S/usr/include/panda3d/parser-inc -S/usr/include/panda3d -I/usr/include/panda3d \
  39. -DEIGEN_MPL2_ONLY= -DEIGEN_NO_DEBUG= \
  40. -oc libvoxels_igate.cxx -od libvoxels.in -python-native -module voxels -library voxels voxels.h
  41. echo "interrogate_module"
  42. interrogate_module -oc voxels_module.cxx -library voxels -module voxels -python-native libvoxels.in
  43. echo "libvoxels_igate"
  44. g++ -fPIC -shared -I/home/flaco/build/panda3d-1.9.4/built/include -I/usr/include/python2.7 -I/usr/include/eigen3 -c -o libvoxels_igate.o libvoxels_igate.cxx
  45. echo "voxels_module"
  46. g++ -fPIC -shared -I/home/flaco/build/panda3d-1.9.4/built/include -I/usr/include/python2.7 -I/usr/include/eigen3 -c -o voxels_module.o voxels_module.cxx
  47. echo "voxels.so!"
  48. g++ -fPIC -shared -o voxels.so -L/usr/lib/python2.7/site-packages/panda3d -I/home/flaco/build/panda3d-1.9.4/built/include -I/usr/include/python2.7 -lpython2.7 libvoxels_igate.o voxels_module.o /usr/lib/python2.7/site-packages/panda3d/libpanda.so.1.9 /usr/lib/python2.7/site-packages/panda3d/libpandaexpress.so.1.9 /usr/lib/python2.7/site-packages/panda3d/libp3dtool.so.1.9 /usr/lib/python2.7/site-packages/panda3d/libp3dtoolconfig.so.1.9 /usr/lib/python2.7/site-packages/panda3d/core.so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement