ebertolazzi / Clothoids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Error: PolynomialRoots.hh No such file or directory

Magic-wei opened this issue · comments

The following error arose when I tried to build using cmake & make:

/xxxxxxx/Clothoids/src/G2lib.cc:21:30: fatal error: PolynomialRoots.hh: No such file or directory

@ebertolazzi I searched in your repositories and found that the file PolynomialRoots.hh comes from another repo named quarticRootsFlocke, it works by cloning the repo and copying quarticRootsFlocke/src/PolynomialRoots.hh to Clothoids/src/PolynomialRoots.hh. I think you can add an instruction for this.

@ebertolazzi Thank you. I didn't notice the submodules folder just now, and it's true that we should install with submodules because we can make a right installation with

Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /usr/local/libClothoids.a
-- Installing: /usr/local/include/BiarcList.hh
-- Installing: /usr/local/include/Circle.hh
-- Installing: /usr/local/include/Triangle2D.hh
-- Installing: /usr/local/include/ClothoidAsyPlot.hh
-- Installing: /usr/local/include/PolynomialRoots.hh
-- Installing: /usr/local/include/AABBtree.hh
-- Installing: /usr/local/include/Biarc.hh
-- Installing: /usr/local/include/Clothoid.hh
-- Installing: /usr/local/include/BaseCurve_using.hxx
-- Installing: /usr/local/include/G2lib.hh
-- Installing: /usr/local/include/Fresnel.hh
-- Installing: /usr/local/include/PolyLine.hh
-- Installing: /usr/local/include/ClothoidList.hh
-- Installing: /usr/local/include/Line.hh
-- Installing: /usr/local/include/PolynomialRoots.hh
-- Installing: /usr/local/include/PolynomialRoots-Utils.hh

Without the submodules, the PolynomialRoots.hh and PolynomialRoots-Utils.hh won't be copied to /usr/local/include folder.

Thank you for your great work!