Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue - make #272

Open
9873-kun opened this issue Apr 26, 2024 · 2 comments
Open

build issue - make #272

9873-kun opened this issue Apr 26, 2024 · 2 comments

Comments

@9873-kun
Copy link

Hi there,

When I try to use "make -j8" to Build and install fmm, it has the error like that:

[ 73%] Built target STMATCH_OBJ
/home/essie-adm-jiang/fmm/src/network/network.cpp: In member function ‘void FMM::NETWORK::Network::read_ogr_file(const string&, const string&, const string&, const string&)’:
/home/essie-adm-jiang/fmm/src/network/network.cpp:113:76: error: invalid conversion from ‘const OGRSpatialReference*’ to ‘OGRSpatialReference*’ [-fpermissive]
113 | OGRSpatialReference ogrsr = ogrFDefn->GetGeomFieldDefn(0)->GetSpatialRef();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| |
| const OGRSpatialReference

make[2]: *** [CMakeFiles/NETWORK.dir/build.make:90: CMakeFiles/NETWORK.dir/src/network/network.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:260: CMakeFiles/NETWORK.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

So, what should I do for that? Thanks!

@lemmingless
Copy link

hello! do you know how to solve this now

@max-galetskiy
Copy link

Hi,

if you just change the line to
"const OGRSpatialReference ogrsr = ogrFDefn->GetGeomFieldDefn(0)->GetSpatialRef();",
then it should work correctly. This seems to be a problem stemming from a library update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants