-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build script dies on OpenSubdiv/GLFW on Ubuntu #261
Comments
Oh! This is xrandar, not glfw |
The GLFW dependency is a known issue -- if GLFW isn't installed on your system, you'll eventually run into issues with the OpenSubdiv build. I'm thinking I'll need to add GLFW to the build script, at least until PixarAnimationStudios/OpenSubdiv#903 is resolved. |
Ah, yeah -- I fixed the xrandr dependency, did a clean build and it still failed: -- Could NOT find GLFW (missing: GLFW_INCLUDE_DIR GLFW_LIBRARIES) (Required is at least version "3.0.0") |
Any workaround? Just install GLFW? |
Yeah, unfortunately that's the only workaround at the moment. |
FYI, I had to install both GLFW and GLEW. For anyone else hitting this: |
Filed as internal issue #149508. |
On my Ubuntu based distro running build_usd.py resulted in glew being installed to lib64 instead of lib |
installing Xrandr is not trivial how did you resolve the issue. |
to build glfw on ubuntu, I first had to: sudo apt install libxrandr-dev
sudo apt install libxinerama-dev
sudo apt install libxcursor-dev |
Hey folks. So this has moved me along, but now the configure is dying with: -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so I've got (via apt) libglfw3 and libglfw-dev, so I was hoping I would be clear. Thanks for any tips. |
sorry, forgot to mention: when I tried to install & build glfw from github myself, I got: -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so |
not at a computer atm, but I believe sudo apt install libxi-dev afaicr, libXi is the last of the weird build dependencies. will get you past this. I wish installing the x11 dev libraries wasn't this random bag of mixed nuts! I'm not aware of an umbrella install that gets all the pieces in one go. Would be happy to learn of one, if anyone knows. |
well, that got me further, now, even though I've installed GLEW via apt, it's complaining it can't find it. -- Found GLFW: /usr/local/include (found suitable version "3.4.0", minimum required is "3.0.0") |
You might have discovered some kind of library-os-version-itis. Where is your GL/glew.h, and your glew.a or glew.so installed by apt? If you don't have the log anymore, this line should tell where it landed: dpkg-query -L glew (Edit: changed dpkg to dpkg-query, which would be able to answer Sunya's question.) |
@drwave Are you running your builds manually or are you using build_usd.py? And is the error coming from building USD itself, or from building OpenSubdiv or one of the other dependencies? My wild guess is that the GLEW .so is being installed into lib64 instead of lib, and that's causing issues. |
I (re?)installed glew with apt, ran the build script again, and it all worked. Thanks for all help, everyone. Not sure I have a totally repeatable set of steps to build on a fresh machine, but at least for this machine I'm up and working, which is great. |
I have the same issue on Ubuntu 22.04 trying to build 3.5.0. What I do not get is that the deps section of the OSD CMake docs says:
I run Specificyally, this is the relevant section from my build faling:
|
I found the |
In any case, if the docs are right |
…/internal-only/feature/update_boost_zlib add zlib 1.2.12 & boost 1.78 support
Description of Issue
Building on Ubuntu
Steps to Reproduce
Error:
CMake Error at cmake/FindGLFW.cmake:146 (message):
Xrandr library not found - required for GLFW
Call Stack (most recent call first):
CMakeLists.txt:316 (find_package)
System Information (OS, Hardware)
Ubuntu 13
The text was updated successfully, but these errors were encountered: