problem of installation Yade

Asked by TONG Anh Tuan

Hi all,
Hi Anton,

I have still problem of installation Yade on my PC.
For the Anton'answer, the package "python-dev" is installed, for the informations below:

Paquet : python-dev
État: installé
Automatiquement installé: non
Version : 2.7.2-9ubuntu4
Priorité : optionnel
Section : python
Responsable : Ubuntu Developers <email address hidden>
Taille décompressée : 33,8 k
Dépend: python (= 2.7.2-9ubuntu4), python2.7-dev (>= 2.7.2-3~)
Remplace: python2.7 (< 2.7.3)
Description : header files and a static library for Python (default)
 Header files, a static library and development tools for building
Python modules, extending the
 Python interpreter or embedding Python in applications.

 This package is a dependency package, which depends on Debian's default
Python version (currently
 v2.7).

Please help me for my problems !
Anh-Tuan

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
TONG Anh Tuan
Solved:
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Hi Anh-Tuan,

Did you install all required packages from the link below [1]?
Please, show your scons.profile-default and config.log files.

FYI, 12.04 is shipped with yade-0.70 in the main archive. If this
version is suitable for you, just:

sudo apt-get install yade

[1] https://yade-dem.org/doc/installation.html#prerequisities

Anton

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#2

Hi Anton,

Yes, all required packages are installled from [1].
And here are informations received:

FOR scons.profile-default :

PREFIX = 'attong@braves:~/YADE/'
features = 'cgal,log4cxx,opengl,openmp,qt4,vtk'
jobs = 1
chunkSize = 2
version = 'attong'
CPPPATH = '/usr/include/vtk-5.0:/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/vtk-5.6:/usr/include/vtk-5.8:/usr/include/vtk:/usr/include/eigen2'
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC']

FOR config.log :

file /home/3S-LAB/attong/YADE/yade/SConstruct,line 317:
 Configure(confdir = /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp)
scons: Configure: Checking whether c++ compiler "g++" works...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_0.cpp <-
  |#include<iostream>
  |int main(int argc, char**argv){std::cerr<<std::endl;return 0;}
  |
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_0.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_0.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_0 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_0.o
scons: Configure: yes

scons: Configure: Finding libstdc++ library...
scons: Configure: (cached) /usr/lib/i386-linux-gnu/libstdc++.so.6

scons: Configure: Checking for pthread_exit(NULL) in C library pthread...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_1.c <-
  |
  |
  |#include "pthread.h"
  |
  |int
  |main() {
  | pthread_exit(NULL);
  |return 0;
  |}
  |
gcc -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_1.o -c -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_1.c
gcc -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_1 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_1.o -lpthread
scons: Configure: yes

scons: Configure: Checking for Python development files...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2.cpp <-
  |#include<Python.h>
  |int main(int argc, char **argv){Py_Initialize(); Py_Finalize();}
  |
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2 -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L. -lpython2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2.o -lpthread -lpthread -ldl -lutil
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_2.o: In function `main':
conftest_2.cpp:(.text+0x7): undefined reference to `Py_Initialize'
conftest_2.cpp:(.text+0xc): undefined reference to `Py_Finalize'
collect2: ld returned 1 exit status
scons: Configure: error

scons: Configure: Checking for required python modules...
scons: Configure: (cached) all ok

scons: Configure: Checking boost libraries...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_3.cpp <-
  |#include<boost/system/error_code.hpp>
  |int main(void){boost::system::error_code();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_3.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_3.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_3 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_3.o -lpthread -lboost_system
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_4.cpp <-
  |#include<boost/thread/thread.hpp>
  |int main(void){boost::thread();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_4.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_4.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_4 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_4.o -lpthread -lboost_system -lboost_thread
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_5.cpp <-
  |#include<boost/date_time/posix_time/posix_time.hpp>
  |int main(void){boost::posix_time::time_duration();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_5.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_5.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_5 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_5.o -lpthread -lboost_system -lboost_thread -lboost_date_time
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_6.cpp <-
  |#include<boost/filesystem/path.hpp>
  |int main(void){boost::filesystem::path();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_6.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_6.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_6 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_6.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_7.cpp <-
  |#include<boost/iostreams/device/file.hpp>
  |int main(void){boost::iostreams::file_sink("");;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_7.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_7.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_7.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_8.cpp <-
  |#include<boost/regex.hpp>
  |int main(void){boost::regex("");;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_8.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_8.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_8 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_8.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_regex
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_9.cpp <-
  |#include<boost/archive/archive_exception.hpp>
  |int main(void){try{} catch (const boost::archive::archive_exception& e) {};;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_9.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_9.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_9 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_9.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_regex -lboost_serialization
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_10.cpp <-
  |#include<boost/program_options.hpp>
  |int main(void){boost::program_options::options_description o;;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_10.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_10.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_10 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_10.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_regex -lboost_serialization -lboost_program_options
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.cpp <-
  |#include<boost/python.hpp>
  |int main(void){boost::python::scope();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_regex -lboost_serialization -lboost_program_options -lboost_python
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.o: In function `boost::python::api::object::object()':
conftest_11.cpp:(.text._ZN5boost6python3api6objectC2Ev[_ZN5boost6python3api6objectC5Ev]+0x9): undefined reference to `_Py_NoneStruct'
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_11.o: In function `boost::python::scope::scope()':
conftest_11.cpp:(.text._ZN5boost6python5scopeC2Ev[_ZN5boost6python5scopeC5Ev]+0x18): undefined reference to `_Py_NoneStruct'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_Insert'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_ImportError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_InternFromString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyProperty_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_AsString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_StopIteration'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyUnicodeUCS4_FromEncodedObject'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyImport_Import'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyBool_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyClass_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceRshift'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_CallMethod'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyIter_Next'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Remainder'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_ValueError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyType_Ready'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `_PyEval_SliceIndex'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyFile_AsFile'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyLong_FromUnsignedLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyMem_Free'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceXor'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceOr'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyBool_FromLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Items'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceRemainder'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_NoMemory'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyComplex_ImagAsDouble'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_IsTrue'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `_Py_NotImplementedStruct'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_TypeError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Lshift'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceMultiply'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `_PyObject_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyInt_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyComplex_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_ReferenceError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_GetItem'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_FromStringAndSize'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyModule_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceLshift'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_Size'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Update'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyComplex_RealAsDouble'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_Format'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyBaseObject_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_And'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyUnicodeUCS4_AsWideChar'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceAdd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_GetAttr'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_ExceptionMatches'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_Occurred'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Copy'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyArg_ParseTupleAndKeywords'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Divide'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyEval_GetGlobals'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyFloat_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Keys'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_IndexError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_SetObject'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Multiply'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyRun_FileExFlags'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyUnicode_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_Size'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_FromString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_FromFormat'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceAnd'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyInt_FromLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyTuple_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Size'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_GetItem'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_SetItem'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyInt_AsLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_RichCompare'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyCFunction_NewEx'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Values'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_RuntimeError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Rshift'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyStaticMethod_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyType_IsSubtype'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyType_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Add'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_Sort'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PySequence_DelSlice'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_WarnEx'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyMethod_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyStaticMethod_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Xor'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_ClearWeakRefs'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Subtract'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PySlice_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_GetAttrString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_IsInstance'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyLong_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyRun_StringFlags'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_SetAttrString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_OverflowError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyWeakref_NewRef'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_NewException'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_Append'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_SetAttr'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_GetItemString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceDivide'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyLong_AsLongLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyExc_AttributeError'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyLong_AsUnsignedLongLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_Or'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_DelItem'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyNumber_InPlaceSubtract'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `Py_InitModule4'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyMethod_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyEval_CallFunction'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PySequence_GetSlice'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyTuple_Size'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyImport_ImportModule'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_Clear'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyTuple_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyCFunction_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyTuple_GetItem'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyErr_SetString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyObject_CallFunction'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_Reverse'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyString_Type'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyFile_FromString'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `_PyType_Lookup'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyList_New'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyType_GenericAlloc'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyMem_Malloc'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyCallable_Check'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_Clear'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PySequence_SetSlice'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyLong_AsUnsignedLong'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libboost_python.so: undefined reference to `PyDict_New'
collect2: ld returned 1 exit status
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_12.cpp <-
  |#include<boost/python.hpp>
  |int main(void){boost::python::scope();;}
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_12.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_12.cpp
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_12 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_12.o -lpthread -lboost_system -lboost_thread -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_regex -lboost_serialization -lboost_program_options -lboost_python-mt
/usr/bin/ld: cannot find -lboost_python-mt
collect2: ld returned 1 exit status
scons: Configure: Failures: boost_python

scons: Configure: Checking for C++ header file boost/foreach.hpp...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_13.cpp <-
  |
  |#include <boost/foreach.hpp>
  |
  |
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_13.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_13.cpp
scons: Configure: yes

scons: Configure: Checking for C++ header file Eigen/Core...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_14.cpp <-
  |
  |#include "Eigen/Core"
  |
  |
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_14.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_14.cpp
scons: Configure: yes

scons: Configure: Checking for C++ header file loki/NullType.h...
/home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_15.cpp <-
  |
  |#include "loki/NullType.h"
  |
  |
g++ -o /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_15.o -c -DFLOW_ENGINE -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/vtk-5.8 -I/usr/include/vtk -I/usr/include/eigen2 -I/home/3S-LAB/attong/YADE/build-attong-last/include -I/usr/include/python2.7 /home/3S-LAB/attong/YADE/build-attong-last/.sconf_temp/conftest_15.cpp
scons: Configure: yes

Revision history for this message
Christian Jakob (jakob-ifgt) said :
#3

Your problem is here:

/usr/bin/ld: cannot find -lboost_python-mt
collect2: ld returned 1 exit status
scons: Configure: Failures: boost_python

Another user had a similar problem with libboost and he was able to solve it, see here:

https://answers.launchpad.net/yade/+question/188032

Please try to install missing packages. You can compare your packages with my packages (see my last post on question 188032). Then you will find the one, that is missing.

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#4

Hi all,
Hi Anton,

I compile successfully the yade installation (with the command 'scons'). However, when starting Yade for running my script, I got the following error:

Welcome to Yade bzr3055
Traceback (most recent call last):
  File "./yade-trunk-erosion", line 118, in <module>
    import yade
  File "/home/3S-LAB/attong/YADE//lib/yade-trunk-erosion/py/yade/__init__.py", line 57, in <module>
    import boot
ImportError: /home/3S-LAB/attong/YADE//lib/yade-trunk-erosion/py/yade/../../lib/../lib/libyade-support.so: undefined symbol: __gmpq_init

And, in the config.log, the following error that I saw:

/home/3S-LAB/attong/YADE/build-trunk-erosion/.sconf_temp/conftest_17qrc <-
  |
pyrcc4
PyQt resource compiler
Usage: pyrcc4 [options] <inputs>

Options:
    -o file Write output to file rather than stdout
    -py2 Generate code for any Python v2.x version (default)
    -py3 Generate code for any Python v3.x version
    -name name Create an external initialization function with name
    -threshold level Threshold to consider compressing files
    -compress level Compress input files by level
    -root path Prefix resource access path with root path
    -no-compress Disable all compression
    -version Display version
    -help Display this information
/home/3S-LAB/attong/YADE/build-trunk-erosion/.sconf_temp/conftest_18ui <-
  |
pyuic4
Error: one input ui-file must be specified

what is my probleme ? Anybody could give me a solution for my problem?
Thanks !
Anh Tuan

Revision history for this message
Anton Gladky (gladky-anton) said :
#5
Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#6

Hi Anton,
Hi Bruno,
Hi all,

I tried do as the answer of Bruno for the Bug number of 968188; so in my profile (scons.profile-erosion) as noted below:

PREFIX = '/home/3S-LAB/attong/YADE/'
features = 'cgal,log4cxx,opengl,openmp,qt4,vtk'
hotPlugins = 'FlowEngine'
version = 'trunk'
CPPPATH = '/usr/include/vtk-5.0:/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/vtk-5.6:/usr/include/vtk-5.8:/usr/include/vtk:/usr/include/eigen2'
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC', '-lgmp']

but I still get the same error when starting to run Yade. I don't know what I have to do now.
Anybody having the same problem can give me a solution ?

Thanks.
Anh Tuan

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#7

Did you update your code Anh Tuan? What is your version?

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#8

Hi Bruno,

The command for update my code is: "bzr update", it'is right?

Anh Tuan

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#9

Hi Bruno,

I have still a problem bellow when running my script:

attong@braves:~/YADE_attong/bin$ ./yade-trunk-erosion ErosionInterneTongBatch_Test5_Test_Corr_Braves.py
Welcome to Yade bzr3076
TCP python prompt on localhost:9000, auth cookie `udcesa'
XMLRPC info provider on http://localhost:21000
Running script ErosionInterneTongBatch_Test5_Test_Corr_Braves.py
WARN /home/3S-LAB/attong/YADE_attong/yade/pkg/dem/SpherePack.cpp:209 makeCloud: Exceeded 1000 tries to insert non-overlapping sphere to packing. Only 23 spheres was added, although you requested 500. Trying again with porosity 0.73. The size distribution is being scaled down
WARN /home/3S-LAB/attong/YADE_attong/yade/pkg/dem/SpherePack.cpp:209 makeCloud: Exceeded 1000 tries to insert non-overlapping sphere to packing. Only 28 spheres was added, although you requested 500. Trying again with porosity 0.757. The size distribution is being scaled down
WARN /home/3S-LAB/attong/YADE_attong/yade/pkg/dem/SpherePack.cpp:216 makeCloud: The size distribution has been scaled down by a factor pack.appliedPsdScaling=0.0824488
Traceback (most recent call last):
  File "./yade-trunk-erosion", line 172, in runScript
    execfile(script,globals())
  File "ErosionInterneTongBatch_Test5_Test_Corr_Braves.py", line 130, in <module>
    flow=FlowEngine(
NameError: name 'FlowEngine' is not defined
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]

Yade [1]:

What does it means with my PC ?
Thanks alot,

Anh Tuan

Revision history for this message
Luc Scholtès (luc) said :
#10

Did you add the plugin FlowEngine to your scons.profile?

Like this: hotPlugins = 'FlowEngine'

Luc

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#11

Hi Luc,
Hi all,

Here is my scons.profile-erosion:

attong@braves:~/YADE_attong/yade$ cat scons.profile-erosion
PREFIX = '/home/3S-LAB/attong/YADE_attong/'
features = 'gts,opengl,openmp,qt4,vtk'
hotPlugins = 'FlowEngine'
version = 'trunk'
CPPPATH = '/usr/include/vtk-5.0:/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/vtk-5.6:/usr/include/vtk-5.8:/usr/include/vtk:/usr/include/eigen2'
CXXFLAGS = ['-DFLOW_ENGINE']
SHCCFLAGS = ['-fPIC']

What is my problem ?
Thanks alot,

Anh Tuan

Revision history for this message
Luc Scholtès (luc) said :
#12

Try to add cgal to your features (check if it is installed on t=your computer)

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#13

Hi Luc,

Here is an error after adding cgal to my features and compiling by the command scons:

scons: Reading SConscript files ...
@@@ Using profile erosion (scons.profile-erosion) @@@
Eigen 2 math library will be used
Yade version is `trunk' (bzr3076), installed files will be suffixed with `-trunk-erosion'.
All intermediary files will be in `/home/3S-LAB/attong/YADE_attong/build-trunk-erosion'.
Mkdir("/home/3S-LAB/attong/YADE_attong/build-trunk-erosion")
Checking whether c++ compiler "g++" works...yes
Finding libstdc++ library... (cached) /usr/lib/i386-linux-gnu/libstdc++.so.6
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for Python development files... ok
Checking for C++ header file numpy/ndarrayobject.h... yes
Checking for required python modules... (cached) all ok
Checking boost libraries... all ok
Checking for C++ header file boost/foreach.hpp... yes
Checking for C++ header file Eigen/Core... yes
Checking for C++ header file loki/NullType.h... yes
Checking for glutGetModifiers() in C++ library glut... yes
Checking for QGLViewer() in C++ library qglviewer-qt4... yes
Checking for vtkInstantiator::New() in C++ library vtkCommon... yes
Checking for gts_object_class() in C++ library gts... yes
log4cxx support was removed. Please, do not use this feature.
Checking for CGAL::Exact_predicates_inexact_constructions_kernel::Point_3() in C++ library CGAL... yes
Rebuilding combined files, since the md5 has changed.
scons: done reading SConscript files.
scons: Building targets ...
> /home/3S-LAB/attong/YADE_attong/bin/yade-trunk-erosion-batch
Chmod("/home/3S-LAB/attong/YADE_attong/bin/yade-trunk-erosion-batch", 0755)
> /home/3S-LAB/attong/YADE_attong/bin/yade-trunk-erosion
Chmod("/home/3S-LAB/attong/YADE_attong/bin/yade-trunk-erosion", 0755)
C py/3rd-party/pygts-0.3.1/cleanup.c
C py/3rd-party/pygts-0.3.1/object.c
C py/3rd-party/pygts-0.3.1/edge.c
C py/3rd-party/pygts-0.3.1/face.c
C py/3rd-party/pygts-0.3.1/point.c
C py/3rd-party/pygts-0.3.1/pygts.c
C py/3rd-party/pygts-0.3.1/segment.c
C py/3rd-party/pygts-0.3.1/surface.c
C py/3rd-party/pygts-0.3.1/triangle.c
C py/3rd-party/pygts-0.3.1/vertex.c
> /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/lib/yade-support.cpp
C /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/lib/yade-support.cpp
> /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/core/core.cpp
C /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/core/core.cpp
In file included from /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/lib/yade-support.cpp:11:0:
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/PeriodicFlow.cpp: In member function 'void CGT::PeriodicFlow::Average_Relative_Cell_Velocity()':
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/PeriodicFlow.cpp:490:9: warning: variable 'volume_facet_translation' set but not used [-Wunused-but-set-variable]
In file included from /home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/FlowBoundingSphere.hpp:148:0,
                 from /home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/FlowBoundingSphere.cpp:9,
                 from /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/lib/yade-support.cpp:10:
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/FlowBoundingSphere.ipp: In member function 'void CGT::FlowBoundingSphere<_Tesselation>::GaussSeidel(CGT::Real) [with _Tesselation = CGT::_Tesselation<CGT::TriangulationTypes<CGT::FlowVertexInfo, CGT::FlowCellInfo> >, CGT::Real = double]':
/home/3S-LAB/attong/YADE_attong/yade/lib/opengl/GLUtils.cpp:59:1: instantiated from here
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/FlowBoundingSphere.ipp:1058:44: warning: variable 'dp_moy' set but not used [-Wunused-but-set-variable]
In file included from /home/3S-LAB/attong/YADE_attong/build-trunk-erosion/lib/yade-support.cpp:13:0:
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/TriaxialState.cpp: In member function 'bool CGT::TriaxialState::from_file(const char*, bool)':
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/TriaxialState.cpp:215:41: warning: '*((void*)& pos +16)' may be used uninitialized in this function [-Wuninitialized]
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/TriaxialState.cpp:211:37: warning: '*((void*)& pos +8)' may be used uninitialized in this function [-Wuninitialized]
/home/3S-LAB/attong/YADE_attong/yade/lib/triangulation/TriaxialState.cpp:210:49: warning: 'pos' may be used uninitialized in this function [-Wuninitialized]
L libyade-support.so
> /home/3S-LAB/attong/YADE_attong/lib/yade-trunk-erosion/lib/libyade-support.so
L _gts.so
> /home/3S-LAB/attong/YADE_attong/lib/yade-trunk-erosion/py/gts/_gts.so
ln -s -f ../py/gts/_gts.so /home/3S-LAB/attong/YADE_attong/lib/yade-trunk-erosion/lib/lib_gts__python-module.so
C pkg/dem/FlowEngine.cpp
pkg/dem/FlowEngine.cpp: In member function 'virtual void PeriodicFlowEngine::action()':
pkg/dem/FlowEngine.cpp:615:31: error: no matching function for call to 'CGT::PeriodicFlow::GaussSeidel(Real&)'
pkg/dem/FlowEngine.cpp:615:31: note: candidate is:
/home/3S-LAB/attong/YADE_attong/build-trunk-erosion/include/yade/lib/triangulation/PeriodicFlow.hpp:37:8: note: void CGT::PeriodicFlow::GaussSeidel()
/home/3S-LAB/attong/YADE_attong/build-trunk-erosion/include/yade/lib/triangulation/PeriodicFlow.hpp:37:8: note: candidate expects 0 arguments, 1 provided
scons: *** [/home/3S-LAB/attong/YADE_attong/build-trunk-erosion/pkg/dem/FlowEngine.os] Error 1
scons: building terminated because of errors.

Thanks alot,
Anh Tuan

Revision history for this message
Luc Scholtès (luc) said :
#14

Strange... Did you try recompile from scratch by typing

scons -c

before compiling wit scons?

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#15

Yes, before compiling with scons, i tried to do by typing:

scons clean.

That's the same as:

scons -c

I don't know what is problem of function FlowEngine.

A.Tuan

Revision history for this message
Luc Scholtès (luc) said :
#16

OK, I think I get it.

You should add DLINSOLV to the CXXFLAGS in your scons.profile like this:

CXXFLAGS = ['-DFLOW_ENGINE', '-DLINSOLV']

So?

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#17

-DLINSOLV will not help. FlowEngine is supposed to work without it.
Anh Tuan, did your read my previous mail (private, days ago) about
getting new versions of flow lib from Emanuele's svn repository?
The current version compiles for everyone else, so I guess you missed
something.

Revision history for this message
Luc Scholtès (luc) said :
#18

-DLINSOLV was the quick and not proper way to make Anh Tuan's able to work with his code, assuming that he is using the associated updated linsolv files. I need to implement the compressibility to periodic flow related files so as to solve Anh Tuan's problem. I am working on it today.

Revision history for this message
TONG Anh Tuan (anh-tuan-tong) said :
#19

Thanks Luc, that solved my problem.

Anh Tuan