cpichard / usdtweak

Universal Scene Description standalone editor
Apache License 2.0
232 stars 23 forks source link

USD 23.11 Support #13

Closed adro79 closed 10 months ago

adro79 commented 10 months ago

Hello! USD have been updated to 23.11 which requires C++17.

Compiling with CMAKE_CXX_STANDARD 17 outputs an error on src/widgets/FileBrowser.cpp:

error: no member named 'to_time_t' in 'std::filesystem::__file_clock'
                    const time_t cftime = decltype(lastModified)::clock::to_time_t(lastModified);
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Thanks!

cpichard commented 10 months ago

Hi @adro79 , thanks for the report, which compiler/system are you using ? I just tried on windows msvc 19 and it compiled fine. Thx

adro79 commented 10 months ago

I'm using GCC 13.2.1 on Arch Linux

cpichard commented 10 months ago

Hi @adro79 , I managed to get the issue on WSL, with and older version of gcc (11). I pushed a fix, let me know if that works on your side. Thanks

adro79 commented 10 months ago

That just worked perfectly, thanks a lot @cpichard!! I'm closing this issue now.