cpichard / usdtweak

Universal Scene Description standalone editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USD 23.11 Support

adro79 opened this issue · comments

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!

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

I'm using GCC 13.2.1 on Arch Linux

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

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