Totoro97 / f2-nerf

Fast neural radiance field training with free camera trajectories
https://totoro97.github.io/projects/f2-nerf/
Apache License 2.0
921 stars 68 forks source link

#error C++17 or later compatible compiler is required to ~~~~ #119

Open calf321 opened 10 months ago

calf321 commented 10 months ago

When I run that code cmake --build build --target main --config RelWithDebInfo -j

The following error occurs:

error C++17 or later compatible compiler is required to ~~~~

My g++ version looks like this:

g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How can I solve this??

calf321 commented 9 months ago

One thing I didn't mention is that since I use cuda version 11.8, I installed a different version of libtorch than the one suggested on git hub.

kevinchan04 commented 7 months ago

I also have this issue before. I solved it by installing cuda 11.7 and followed the same version as auther suggestion.