Questions and Answers

0 Like 0 Dislike

Sidi Mohammed Daoud

Buildin new extension doesn't work
I want to add extension to the software, so I downloaded the extension models and followed the different stages to define "the general nonlinear elasticity example" without changing any parameters in the ".C" file, just to see how it add new properties.
however when I launch the build I have the following message.
 
 
user@user-Inspiron-23-Model-5348:~/Bureau/MOH/newprop2$ python setup.py build install
cd /home/user/Bureau/MOH/newprop2/newmod2/; swig -shadow -dnone -python -c++ -c -I/home/user/Téléchargements/oof2-2.1.16/SRC -I/home/user/Bureau/MOH/newprop2/newmod2 -I/home/user/Bureau/MOH/newprop2/newmod2/ -module newmod2 -o /home/user/Bureau/MOH/newprop2/newmod2_SWIG/newmod2_wrap.C /home/user/Bureau/MOH/newprop2/newmod2/newmod2.swg
sh: 1: swig: not found
running build
running build_shlib
building 'oofextension_newmod2' library
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-3hk45v/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/user/Téléchargements/oof2-2.1.16/SRC -I/usr/include/oof2 -I/usr/include/python2.7 -c newmod2/newmod2.C -o build/temp.linux-x86_64-2.7/newmod2/newmod2.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
newmod2/newmod2.C:226:10: fatal error: oofconfig.h: Aucun fichier ou dossier de ce type
 #include
          ^~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
user@user-Inspiron-23-Model-5348:~/Bureau/MOH/newprop2$
 
 
 
Thanks for giving me some help

Report abuse

0 Responses

No other responses made.