ebertolazzi / Clothoids

Other
109 stars 50 forks source link

Build Error: PolynomialRoots.hh No such file or directory #15

Closed Magic-wei closed 4 years ago

Magic-wei commented 4 years ago

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 commented 4 years ago

Its true, when you clone you must do

git clone git@github.com:ebertolazzi/Clothoids.git —recurse-submodules

I add this information soon,

thanks,

On 14 Oct 2019, at 18:08, Wei Wang notifications@github.com wrote:

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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Enrico Bertolazzi


Dipartimento di Ingegneria Industriale
Università degli Studi di Trento http://www.ing.unitn.it/~bertolaz

Magic-wei commented 4 years ago

@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!