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

Does anyone have successed in compiling USD with cmake in mac? #1124

Closed
wzy88111 opened this issue Feb 27, 2020 · 15 comments
Closed

Does anyone have successed in compiling USD with cmake in mac? #1124

wzy88111 opened this issue Feb 27, 2020 · 15 comments

Comments

@wzy88111
Copy link

the following is my problems: Does someone meet?

Configuring done
CMake Error in pxr/base/tf/CMakeLists.txt:
Target "tf" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/Users/wuzhaoyang1/work/3rdParty/USD/USD-master/build/include"

which is prefixed in the source directory.

CMake Error in pxr/base/tf/CMakeLists.txt:
Target "tf" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/Users/wuzhaoyang1/work/3rdParty/USD/USD-master/build/include"

which is prefixed in the source directory.

CMake Error in pxr/base/js/CMakeLists.txt:
Target "js" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/Users/wuzhaoyang1/work/3rdParty/USD/USD-master/build/include"

which is prefixed in the source directory.

CMake Error in pxr/base/trace/CMakeLists.txt:
Target "trace" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/Users/wuzhaoyang1/work/3rdParty/USD/USD-master/build/include"

which is prefixed in the source directory.

@moddyz
Copy link
Contributor

moddyz commented Feb 27, 2020

@wzy88111 Have you tried building via the script provided in the repo: build_scripts/build_usd.py.

@meshula
Copy link
Member

meshula commented Feb 27, 2020

It's a good idea to start with the build script as @moddyz says in order to get an idea of how the configuration is typically structured. The error you've reported typically means cmake is confused about the way your build and install directories have been configured.

@jilliene
Copy link

Filed as internal issue #USD-5888

@wzy88111
Copy link
Author

wzy88111 commented Mar 2, 2020

@wzy88111 Have you tried building via the script provided in the repo: build_scripts/build_usd.py.

I successed with the tool of build_usd.py by python, but i want to compile xcode project with cmake,then i want to read the source code, when i do ,it failed.

@wzy88111
Copy link
Author

wzy88111 commented Mar 2, 2020

It's a good idea to start with the build script as @moddyz says in order to get an idea of how the configuration is typically structured. The error you've reported typically means cmake is confused about the way your build and install directories have been configured.

I have succeed in compiling the usd code with CMake by fix several cmakelist.txt , but when compiling , there is still some errors

@alelordelo
Copy link

@wzy88111 Have you tried building via the script provided in the repo: build_scripts/build_usd.py.

I successed with the tool of build_usd.py by python, but i want to compile xcode project with cmake,then i want to read the source code, when i do ,it failed.

Would you mind sharing your workflow? I cannot get it to build on macOS Catalina...
#1206

@meshula
Copy link
Member

meshula commented May 12, 2020

How about this?

https://github.com/vfxpro99/usd-build-club/wiki/MacOS,-using-Pixar's-script

@alelordelo
Copy link

How about this?

https://github.com/vfxpro99/usd-build-club/wiki/MacOS,-using-Pixar's-script

thanks @meshula , followed step by step. Posted on the other issue #1206

@johndpope
Copy link

johndpope commented May 18, 2020

so there's more build options here
https://github.com/vfxpro99/usd-build-club/wiki/USD-on-macOS

UPDATE -
mac /windows / linux prebuilt binaries here
https://github.com/Autodesk/maya-usd/releases/

NVIDIA

https://developer.nvidia.com/usd

@sunyab sunyab closed this as completed Aug 31, 2020
@disini
Copy link

disini commented Feb 27, 2024

It's a good idea to start with the build script as @moddyz says in order to get an idea of how the configuration is typically structured. The error you've reported typically means cmake is confused about the way your build and install directories have been configured.

I have succeed in compiling the usd code with CMake by fix several cmakelist.txt , but when compiling , there is still some errors


CMake Error in pxr/base/tf/CMakeLists.txt:
  Target "tf" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"

  which is prefixed in the source directory.


CMake Error in pxr/base/trace/CMakeLists.txt:
  Target "trace" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"

  which is prefixed in the source directory.


CMake Error in pxr/base/work/CMakeLists.txt:
  Target "work" INTERFACE_INCLUDE_DIRECTORIES property contains path:

hello, I have the same problem on the cmake stage, how did you fix that ? Much appreciated!

@wzy88111
Copy link
Author

wzy88111 commented Feb 27, 2024 via email

@meshula
Copy link
Member

meshula commented Feb 29, 2024

@disini, are you doing an in source build? If so, can you try building OpenUSD to a location that is not in the source tree?

@disini
Copy link

disini commented Mar 2, 2024

@disini, are you doing an in source build? If so, can you try building OpenUSD to a location that is not in the source tree?

hello @meshula , the OpenUSD repository was not built in any other project as a third party, I did building the OpenUSD's own source code and project independently, the only change of this project is I put the oneTBB 2020.3 source code into the "third_party" sub-directory under the OpenUSD's source tree,

as suggested by @sunyab
#2964 (comment)

is there something wrong for doing this?

@meshula
Copy link
Member

meshula commented Mar 2, 2024

Nothing wrong, I was specifically looking for clues about the error message ... prefixed in the source directory.

@disini
Copy link

disini commented Mar 5, 2024

Nothing wrong, I was specifically looking for clues about the error message ... prefixed in the source directory.

Thanks so much!

kohakukun added a commit to autodesk-forks/USD that referenced this issue Oct 21, 2024
…ios#1124)

* [hgiWebGPU]: Modify staging buffer implementation
- Postpone staging buffer creation until required
- Use ABSL_ENABLE_INSTALL options for dawn cmake
build to avoid manual copy
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

8 participants