Hello,
I'm using laspy on WinPython-64bit-2.7 + MinGW and would like to install the CSF python module, but the install is failing during build (see below).
I'm not familiar with building and installing from sources so if someone can point me to the right direction it would be great !
Thanks for your help.
Alex
running build
running build_py
running build_ext
building '_CSF' extension
C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\WinPython\WinPython-64bit-2.7.12.3Zero
python-2.7.12.amd64\include -IC:\WinPython\WinPython-64bit-2.7.12.3Zero\scripts
..\python-2.7.12.amd64\PC -c csf_wrap.cxx -o build\temp.win-amd64-2.7\Release\cs
f_wrap.o
C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\WinPython\WinPython-64bit-2.7.12.3Zero
python-2.7.12.amd64\include -IC:\WinPython\WinPython-64bit-2.7.12.3Zero\scripts
..\python-2.7.12.amd64\PC -c ../CSFDLL/c2cdist.cpp -o build\temp.win-amd64-2.7\R
elease..\csfdll\c2cdist.o
In file included from ../CSFDLL/Cloth.h:46:0,
from ../CSFDLL/c2cdist.h:5,
from ../CSFDLL/c2cdist.cpp:1:
../CSFDLL/Particle.h: In constructor 'Particle::Particle(Vec3, double)':
../CSFDLL/Particle.h:31:7: warning: 'Particle::old_pos' will be initialized afte
r [-Wreorder]
Vec3 old_pos; // the position of the particle in the previous time step, used
as part of the verlet numerical integration scheme
^
../CSFDLL/Particle.h:25:7: warning: 'Vec3 Particle::acceleration' [-Wreorder]
Vec3 acceleration; // a vector representing the current acceleration of the pa
rticle
^
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
../CSFDLL/Particle.h:25:7: warning: 'Particle::acceleration' will be initialized
after [-Wreorder]
Vec3 acceleration; // a vector representing the current acceleration of the pa
rticle
^
../CSFDLL/Particle.h:23:9: warning: 'double Particle::mass' [-Wreorder]
double mass; // the mass of the particle (is always 1 in this example)
^
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
../CSFDLL/Particle.h:23:9: warning: 'Particle::mass' will be initialized after [
-Wreorder]
double mass; // the mass of the particle (is always 1 in this example)
^
../CSFDLL/Particle.h:21:7: warning: 'bool Particle::movable' [-Wreorder]
bool movable; // can the particle move or not ? used to pin parts of the cloth
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
../CSFDLL/c2cdist.cpp: In member function 'void c2cdist::calCloud2CloudDist(Clot
h&, csf::PointCloud&, std::vector&, std::vector&)':
../CSFDLL/c2cdist.cpp:11:20: warning: comparison between signed and unsigned int
eger expressions [-Wsign-compare]
for (int i = 0; i < pc.size(); i++)
^
C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\WinPython\WinPython-64bit-2.7.12.3Zero
python-2.7.12.amd64\include -IC:\WinPython\WinPython-64bit-2.7.12.3Zero\scripts
..\python-2.7.12.amd64\PC -c ../CSFDLL/Cloth.cpp -o build\temp.win-amd64-2.7\Rel
ease..\csfdll\cloth.o
../CSFDLL/Cloth.cpp:75:0: warning: ignoring #pragma omp parallel [-Wunknown-prag
mas]
#pragma omp parallel for
^
../CSFDLL/Cloth.cpp:82:0: warning: ignoring #pragma omp parallel [-Wunknown-prag
mas]
#pragma omp parallel for
^
../CSFDLL/Cloth.cpp:89:0: warning: ignoring #pragma omp parallel [-Wunknown-prag
mas]
#pragma omp parallel for
^
../CSFDLL/Cloth.cpp:116:0: warning: ignoring #pragma omp parallel [-Wunknown-pra
gmas]
#pragma omp parallel for
^
In file included from ../CSFDLL/Cloth.h:46:0,
from ../CSFDLL/Cloth.cpp:1:
../CSFDLL/Particle.h: In constructor 'Particle::Particle(Vec3, double)':
../CSFDLL/Particle.h:31:7: warning: 'Particle::old_pos' will be initialized afte
r [-Wreorder]
Vec3 old_pos; // the position of the particle in the previous time step, used
as part of the verlet numerical integration scheme
^
../CSFDLL/Particle.h:25:7: warning: 'Vec3 Particle::acceleration' [-Wreorder]
Vec3 acceleration; // a vector representing the current acceleration of the pa
rticle
^
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
../CSFDLL/Particle.h:25:7: warning: 'Particle::acceleration' will be initialized
after [-Wreorder]
Vec3 acceleration; // a vector representing the current acceleration of the pa
rticle
^
../CSFDLL/Particle.h:23:9: warning: 'double Particle::mass' [-Wreorder]
double mass; // the mass of the particle (is always 1 in this example)
^
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
../CSFDLL/Particle.h:23:9: warning: 'Particle::mass' will be initialized after [
-Wreorder]
double mass; // the mass of the particle (is always 1 in this example)
^
../CSFDLL/Particle.h:21:7: warning: 'bool Particle::movable' [-Wreorder]
bool movable; // can the particle move or not ? used to pin parts of the cloth
../CSFDLL/Particle.h:49:2: warning: when initialized here [-Wreorder]
Particle(Vec3 pos, double time_step) : pos(pos), old_pos(pos), acceleration(Ve
c3(0, 0, 0)), mass(1), movable(true), accumulated_normal(Vec3(0, 0, 0)), time_st
ep2(time_step)
^
In file included from ../CSFDLL/Cloth.cpp:1:0:
../CSFDLL/Cloth.h: In constructor 'Cloth::Cloth(const Vec3&, int, int, double, d
ouble, double, double, int, double)':
../CSFDLL/Cloth.h:81:6: warning: 'Cloth::num_particles_height' will be initializ
ed after [-Wreorder]
int num_particles_height; // number of particles in "height" direction
^
../CSFDLL/Cloth.h:77:7: warning: 'Vec3 Cloth::origin_pos' [-Wreorder]
Vec3 origin_pos;
^
../CSFDLL/Cloth.cpp:5:1: warning: when initialized here [-Wreorder]
Cloth::Cloth(const Vec3& _origin_pos,
^
../CSFDLL/Cloth.cpp: In member function 'void Cloth::addForce(Vec3)':
../CSFDLL/Cloth.cpp:105:20: warning: comparison between signed and unsigned inte
ger expressions [-Wsign-compare]
for (int i = 0; i < particles.size(); i++)
^
../CSFDLL/Cloth.cpp: In member function 'void Cloth::terrCollision()':
../CSFDLL/Cloth.cpp:117:20: warning: comparison between signed and unsigned inte
ger expressions [-Wsign-compare]
for (int i = 0; i < particles.size(); i++)
^
../CSFDLL/Cloth.cpp: In member function 'void Cloth::saveToFile(std::_cxx11::st
ring)':
../CSFDLL/Cloth.cpp:383:22: error: no matching function for call to 'std::basic
ofstream::basic_ofstream(std::__cxx11::string&)'
ofstream f1(filepath);
^
In file included from ../CSFDLL/Cloth.cpp:2:0:
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:697:7: note: candidate: std::
basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::open
mode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::open
mode = std::_Ios_Openmode]
basic_ofstream(const char* __s,
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:697:7: note: no known conve
rsion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<
char>}' to 'const char*'
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:682:7: note: candidate: std::
basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits =
std::char_traits]
basic_ofstream(): __ostream_type(), _M_filebuf()
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:682:7: note: candidate expe
cts 0 arguments, 1 provided
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:656:11: note: candidate: std:
:basic_ofstream::basic_ofstream(const std::basic_ofstream&)
class basic_ofstream : public basic_ostream<_CharT,_Traits>
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:656:11: note: no known conv
ersion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string
}' to 'const std::basic_ofstream&'
../CSFDLL/Cloth.cpp: In member function 'void Cloth::saveMovableToFile(std::_cx
x11::string)':
../CSFDLL/Cloth.cpp:404:22: error: no matching function for call to 'std::basic
ofstream::basic_ofstream(std::__cxx11::string&)'
ofstream f1(filepath);
^
In file included from ../CSFDLL/Cloth.cpp:2:0:
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:697:7: note: candidate: std::
basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::open
mode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::open
mode = std::_Ios_Openmode]
basic_ofstream(const char* __s,
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:697:7: note: no known conve
rsion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<
char>}' to 'const char*'
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:682:7: note: candidate: std::
basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits =
std::char_traits]
basic_ofstream(): __ostream_type(), _M_filebuf()
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:682:7: note: candidate expe
cts 0 arguments, 1 provided
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:656:11: note: candidate: std:
:basic_ofstream::basic_ofstream(const std::basic_ofstream&)
class basic_ofstream : public basic_ostream<_CharT,_Traits>
^
c:\mingw\lib\gcc\mingw32\5.3.0\include\c++\fstream:656:11: note: no known conv
ersion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string
}' to 'const std::basic_ofstream&'
error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1