-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem make install asset resolver plugin #5
Comments
The version of C++ does matter with USD, as your error is coming from a USD include. It looks like USD is built against C++14 here: Does it work if you add -DCMAKE_CXX_STANDARD=14 when you call Cmake? |
Hi Colin, I tried your suggestion of adding the cmake flag to the command
but when I ran |
AH I found the solution and also why adding -DCMAKE_CXX_STANDARD=14 when calling cmake didn't work. |
Ah that'll do it! @ColinKennedy USD versions after 20.02 look like they require C++14. Probably rework that line to support newer versions. Perhaps something here can help? |
Hey @fsuarezg and apologies for the confusion. USD-Cookbook is built against on an old USD version so this was bound to happen at some point. @colevfx rightly pointed out to me the other day that we need some automated testing to make sure this repository stays build-able. Probably that'll necessitate combining all of the ~40 CMake projects into a single build and then adding some CI so we can make sure this works on different OSes. It'll take a while to move everything over so in the meantime, please use this ticket to flag any other projects which you're unable to build in later versions and we'll address them once that automation is in a usable state. Edit: Also FYI there's a similar thread on usd-interest - https://groups.google.com/g/usd-interest/c/XeYSf-IpzG8/m/5G3NnOB-AgAJ |
Hello ,
I'm currently trying to build your example plugin of the custom asset resolver, and I'm running into a bit of a problem building it and I was wondering if you had maybe encountered a similar error.
I'm on a Centos 7 machine, with a built version of USD (21.02), devtoolset-8 (for gcc 8.3.1), and cmake (3.14.6).
Running the
USD_INSTALL_ROOT=/home/fernandos/Documents/USD cmake ..
command seems to work, the problem occurs when running themake install
command:This type error seems to indicate an error possibly caused by a wrong version of gcc. I know that
enable_if_t
was added in c++14, so if you have an old compiler (such as the standard gcc 4.8.1 on Centos 7) it would throw this error as it standard uses c++11 to compile.However, I'm using the devtoolset-8 environment and everything seems to indicate that I am using gcc 8.3.1 to compile. Now I noticed that you previously built this project with USD 19.07, might it be that that version was still compiled with and old version of gcc that used c++11 as the standard and that the makefile somehow uses a wrong version of gcc (the standard 4.8.1 version on Centos 7)(This does not seem the case, but I thought I ask)
So I guess my question is: is it normal that I am encountering this problem with USD 21.02? or are you able to build it without any issues with that USD version?
The text was updated successfully, but these errors were encountered: