FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 FasterCap and FastCap2
 Compilation of FasterCap
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andrew22

United Kingdom
1 Posts

Posted - Feb 29 2020 :  18:35:29  Show Profile  Reply with Quote
Trying to compile on Ubuntu 18.04 64-bit.

Get errors which suggest that Operation3D.cpp and Operation3D.h (in Geometry package) are incompatible. The "PlaneFromThreePoints" function is commented out in this header file. I took Geometry from Github today.

I added the line #include <wx/debug.h> to GeoGlobal.h as otherwise wxAssert is not found.

Andrew.

Scanning dependencies of target Geometry
[ 3%] Building CXX object Geometry/CMakeFiles/Geometry.dir/Geometry2D.cpp.o
[ 7%] Building CXX object Geometry/CMakeFiles/Geometry.dir/Operation3D.cpp.o
/home/andrew/FasterCap/Geometry/Operation3D.cpp:68:49: error: no ‘int C3DOperation::PlaneFromThreePoints(C3DPlane&, C3DVector&, C3DVector&, C3DVector&)’ member function declared in class ‘C3DOperation’
C3DVector &point2, C3DVector &point3)
^
/home/andrew/FasterCap/Geometry/Operation3D.cpp:111:49: error: no ‘int C3DOperation::PlaneFromTwoVectorsAndPoint(C3DPlane&, C3DVector&, C3DVector&, C3DVector&)’ member function declared in class ‘C3DOperation’
C3DVector &vector2, C3DVector &point)
^
/home/andrew/FasterCap/Geometry/Operation3D.cpp:142:43: error: no ‘int C3DOperation::LineToLineClosestPoints(C3DVector&, C3DVector&, C3DLine&, C3DLine&)’ member function declared in class ‘C3DOperation’
C3DLine &line1, C3DLine &line2)
^
/home/andrew/FasterCap/Geometry/Operation3D.cpp:185:65: error: no ‘char C3DOperation::IsPointInFace(C3DVector&, C3DFace*)’ member function declared in class ‘C3DOperation’
char C3DOperation::IsPointInFace(C3DVector &point, C3DFace *face)

Enrico

425 Posts

Posted - Mar 09 2020 :  11:30:09  Show Profile  Reply with Quote
Hi Andrew,

thanks for the heads up. Actually Geometry for some reason was not updated in line with the latest version of FasterCap.

I have pushed to GitHub the right version, so #includes should be ok now.

However, you are right about the header for Operation3D.h, however on our chain this causes no issue - may depend on the version of the compiler and, more than that, the level of warnings you have activated.
Still, this is a mistake, and we'll correct it as well; the simple way to handle it for the time being is ignoring the warning (if a warning) or commenting out the function in the .cpp implementation file as well.

Thanks,
Enrico
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06