Skip to content
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

Windows Compilation Issue (Boost Related) #265

Open
SimonCSmith opened this issue Jan 5, 2022 · 2 comments
Open

Windows Compilation Issue (Boost Related) #265

SimonCSmith opened this issue Jan 5, 2022 · 2 comments

Comments

@SimonCSmith
Copy link

I've compiled the core Blackbird library (1.1.1), USD (21.11) and all dependencies (including static Boost 1.77.0) for these under VS2019 using CMake. With everything in place I am trying to build hdBlackbird and i'm having issues with CMakeGUI generating the project file.

I am getting a slew of Target "xxxCycles" links to target "Boost::xxxx" but the target was not found (usdCycles, ndrCycles etc).

Am I missing something, or is something missing from the CMake setup to locate Boost? I tried adding BOOST_DIR but that did not help - I'm sure it just needs to knowe where to find them, but i'm no export with CMake i'm afraid.

@bareya
Copy link
Collaborator

bareya commented Jan 6, 2022

It has been a while, but CMake included in this project does not locate boost. Usd exports configuration file and then cmake searches for it here.

@SimonCSmith
Copy link
Author

SimonCSmith commented Jan 7, 2022

Ah, so there must be something wrong with the latest Pixar USD builds regarding exported cmake configuration files maybe. It finds the USD install OK once USD_ROOT is set (it locates the isdGenSchema and pxr_DIR variables OK). The configure step works just fine, but it's the Generate that is failing.

The cmake line that causes the error is:
add_library(usdCycles SHARED ${USD_CYCLES_SCHEMA_SOURCE_OUTPUT})

I've also added BOOST_USE_STATIC_LIBS as well (as that's how I have boost built) but that did not help either (along with BOOST_DIR).

Is there any way to force cmake to generate the Blackbird project files anyway so that I can get some vcxproj files out that I can manually fix linkage for in Visual Studio? When CMake goes wrong it's seems such a dark art to get working ... so very frustrating every time it happens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants