Skip to content

build issue - make #272

@skjiang07

Description

@skjiang07

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions