NVIDIAGameWorks / Falcor

Real-Time Rendering Framework
https://developer.nvidia.com/falcor
Other
2.54k stars 464 forks source link

Build failed in Linux, VSCode #438

Open Napat-Osaka opened 1 month ago

Napat-Osaka commented 1 month ago

I am trying to build Falcon following the readme for Linux. Half way through the build the following error appeared. This is a fresh clone from Git, I already ran setup.sh, and VSCode is the newest version. Ubuntu version and GPU model should also be in order as well.

Screenshot from 2024-06-02 19-00-58 Screenshot from 2024-06-02 19-01-34

The following is from cmake, just the default preset switch as the readme said to

Screenshot from 2024-06-02 19-03-00

Any advices to the right direction would be highly appreciated.

skallweitNV commented 1 month ago

We only tested this on Ubuntu 22.04 LTS with gcc. Specifically for USD you need to compile with gcc.

Napat-Osaka commented 3 weeks ago

Thanks for the reply ! Ubuntu version should be just about right.

Screenshot from 2024-06-06 15-59-29

Sorry for such a newbie question but can you elaborate more on how can I set it up to compile with gcc ? I thought I already doing so after I changed the preset to Linux/GCC, or do you meant CXX_COMPILER must also change from g++ -> gcc ? I tried that just in case but no luck. I also tried switching gcc versions (10-11-12), with not much success either.

skallweitNV commented 3 weeks ago

Using the Linux/GCC preset is all that should be needed actually. Not sure why you see the compilation errors. The CI on github does build the Linux/GCC successfully. I'll retrigger a build to see if that's still the case.

Napat-Osaka commented 3 weeks ago

@skallweitNV Hi, can you replicate the same error on your side ? I would really loved to get an update even if that is the case and there is something wrong with the setting on my machine.

skallweitNV commented 2 weeks ago

I have updated the CI config and ran a Linux/GCC build on GitHub. It works fine. Log is here: https://github.com/NVIDIAGameWorks/Falcor/actions/runs/9444360455/job/26009745429