Question #220027 on Yade changed:
https://answers.launchpad.net/yade/+question/220027
Status: Answered => Open
Mathan is still having a problem:
Hi,
Thanks Anton,
Disabling CGAL solved error message at 82% level but the same occurred at the
99%
Also I got the error with VTK and I have disabled it..
[ 89%] Building CXX object CMakeFiles/plugins.dir/pkg/dem/WirePM.cpp.o
:::::::::::::::::::::::::::::::
/usr/lib/gcc/ia64-suse-linux/4.3/../../../../ia64-suse-linux/bin/ld:
/usr/local/lib/vtk-5.10/libvtkFiltering.a(vtkAlgorithm.cxx.o): @gprel
relocation against dynamic symbol vtkAlgorithm::DefaultExecutivePrototype
/usr/lib/gcc/ia64-suse-linux/4.3/../../../../ia64-suse-linux/bin/ld:
/usr/local/lib/vtk-5.10/libvtkFiltering.a(vtkAlgorithm.cxx.o): @gprel
relocation against dynamic symbol vtkAlgorithm::DefaultExecutivePrototype
/usr/lib/gcc/ia64-suse-linux/4.3/../../../../ia64-suse-linux/bin/ld: final link
failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
after disabling VTK, these errors are solved
but I stuck with numpy again at 99%,
[ 99%] Building CXX object py/CMakeFiles/_utils.dir/_utils.cpp.o
cd /home2/mkr/ynew/py && /usr/bin/c++ -D_utils_EXPORTS
-DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -Wall -fPIC -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -s -DYADE_OPENMP -fopenmp -DYADE_GTS
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include
-DQGLVIEWER_FOUND -DYADE_OPENGL -DYADE_GL2PS -O3 -DNDEBUG -fPIC
-I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/QtDesigner -I/usr/include/QtAssistant
-I/usr/include/QtScriptTools -I/usr/include/QtDBus -I/usr/include/QtXml
-I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtMultimedia
-I/usr/include/QtNetwork -I/usr/include/QtHelp -I/usr/include/QtUiTools
-I/usr/include/QtTest -I/usr/include/QtScript -I/usr/include/QtSvg
-I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore
-I/usr/share/qt4/mkspecs/default -I/usr/include/python2.6
-I/home2/mkr/ynew/trunk-master/extra/floating_point_utilities_v3
-I/home2/mkr/ynew -o CMakeFiles/_utils.dir/_utils.cpp.o -c
/home2/mkr/ynew/trunk-master/py/_utils.cpp
/home2/mkr/ynew/trunk-master/py/_utils.cpp:16:32: error: numpy/ndarrayobject.h:
No such file or directory
/home2/mkr/ynew/trunk-master/py/_utils.cpp: In function ‘bool
pointInsidePolygon(boost::python::tuple, boost::python::api::object)’:
/home2/mkr/ynew/trunk-master/py/_utils.cpp:293: error: ‘PyArrayObject’ was not
declared in this scope
/home2/mkr/ynew/trunk-master/py/_utils.cpp:293: error: ‘vert’ was not declared
in this scope
/home2/mkr/ynew/trunk-master/py/_utils.cpp:293: error: expected
primary-expression before ‘)’ token
/home2/mkr/ynew/trunk-master/py/_utils.cpp:293: error: expected `;' before
‘vertices’
/home2/mkr/ynew/trunk-master/py/_utils.cpp:294: error: ‘PyArray_DOUBLE’ was not
declared in this scope
/home2/mkr/ynew/trunk-master/py/_utils.cpp:294: error: ‘PyArray_As2D’ was not
declared in this scope
/home2/mkr/ynew/trunk-master/py/_utils.cpp: In function ‘void
init_module__utils()’:
/home2/mkr/ynew/trunk-master/py/_utils.cpp:497: error: ‘import_array’ was not
declared in this scope
make[2]: *** [py/CMakeFiles/_utils.dir/_utils.cpp.o] Error 1
make[2]: Leaving directory `/home2/mkr/ynew'
make[1]: *** [py/CMakeFiles/_utils.dir/all] Error 2
make[1]: Leaving directory `/home2/mkr/ynew'
make: *** [all] Error 2
I tried to manually add the installation path of Numpy (using
-I/path/to/Numpy/) and compile the /home2/mkr/ynew/trunk-master/py/_utils.cpp
it works !
So I am trying to do this in the following way (compilation is running for last
4 hours)
set CCFLAG "Path/to/numpy"
Is there any other way to do it ?
MathanK Raja
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp