-
Notifications
You must be signed in to change notification settings - Fork 114
stable does not build Samples on Linux #31
Comments
Manage to get OculusWorldDemo to build, but not SensorBox/TestSensor as it looks like these are now outdated by new API calls. |
I've mostly been focused on the examples for my book, located in https://github.com/OculusRiftInAction/OculusRiftInAction I'll take a look at the in-SDK examples and see if I can bring them back to life. |
I've updated the files in commit 9052135 I'm able to build and run the OculusWorldDemo on the windows platform. I haven't tried the others yet. Let me know if this solves it for you. Not sure how much time I'll be able to put into making all the other examples work. |
Tried with '8de9c2c20b7b3d2a97697c2312d247fb25893095' on Linux [ 78%] Building CXX object Samples/CommonSrc/CMakeFiles/CommonSrc.dir/Platform/Win32_Platform.cpp.o Will build OK with 'CMake/Modules/FindXinerama.cmake' and 'Samples/CommonSrc/CMakeLists.txt' from above patch. I remember some comment on Oculus forum that Xinerama may not be needed. |
Also experiencing this with
It looks like CMake may be wrongly setting a bunch of Win32 targets. |
In case it helps, I tried to find the problem by iteratively removing source code and then running cmake, make. On the basis that my linux build shouldn't be trying to look for anything with Win32 or DirectX related stuff, I removed:
Now I get
Probably not the right way to go digging for errors, but maybe it'll help someone more competent than me ;) I suspect that globbing for source files in the CMakeLists.txt means that cmake tries to build a bunch of platform dependent stuff that it shouldn't do here for linux. Also, it seems that something that I deleted guilty cough is referenced by XineramaQueryScreens. Is there maybe a platform dependent call like GetDisplayCount that is causing the dependency issue? |
This patch (from earlier) contains the files ('CMake/Modules/FindXinerama.cmake' and 'Samples/CommonSrc/CMakeLists.txt') which make it work... |
@mungewell thanks for the patch! Git threw some errors when I tried to apply it, so I went through it manually and can confirm that it fixes the build errors on my system too. |
I'm unlikely to integrate this patch. The use of Xinerama in the common code is only used for two things: fetching the desktop position of a given screen and fetching the count of screens. Both of these can be accomplished by using XRandr rather than Xinerama. I will update the CMake config to only include the appropriate platform specific files. |
Thanks Brad, I wasn't really suggesting the (earlier) patch - just noting that it fixed the problems. Will you convert the sample applications to use xrandr? |
I've created a 'xinerama' branch to do so, though it should really be |
Thanks Brad. I gave it a shot on mac (linux at uni, mac at home ... cover all bases!) and found a glew include issue.
It seems that glew.h may need to be included before Cocoa.h gets imported. Adding an include in that order in Hope that might be of use. Feel free to ignore it if not! |
Given that it used to, and is now commented out in 'CMakeList.txt' I suspect that it's on your list of things to do.... I attempted to make it build them but failed badly :-(
The text was updated successfully, but these errors were encountered: