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

Build fails on Ubuntu 18.04 - missing config.h (for libusb submodule) #20

Open
rfht opened this issue May 20, 2018 · 2 comments
Open

Build fails on Ubuntu 18.04 - missing config.h (for libusb submodule) #20

rfht opened this issue May 20, 2018 · 2 comments

Comments

@rfht
Copy link

rfht commented May 20, 2018

Hi,

After git clone --recursive https://github.com/GodotVR/godot_openhmd.git, the build system fails apparently in the libusb submodule because it can't find config.h.

$ scons platform=linux     [38/1964]
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o glad/glad.os -c -DOHMD_STATIC -DDRIVER_OCULUS_RIFT -DDRIVER_DEEPOON -DDRIVER
_HTC_VIVE -DDRIVER_PSVR -DDRIVER_NOLO -DOPENHMD_DRIVER_WMR -fPIC -g -O3 -fPIC -DOHM
D_STATIC -DOS_LINUX -DUSE_UDEV -DHAVE_LIBUDEV -Ilibusb -Ilibusb/libusb -Ilibusb/lib
usb/os -Ihidapi/hidapi -IOpenHMD/include -I. -Igodot_headers -Iglad glad/glad.c
gcc -o libusb/libusb/core.os -c -DOHMD_STATIC -DDRIVER_OCULUS_RIFT -DDRIVER_DEEPOON
 -DDRIVER_HTC_VIVE -DDRIVER_PSVR -DDRIVER_NOLO -DOPENHMD_DRIVER_WMR -fPIC -g -O3 -f
PIC -DOHMD_STATIC -DOS_LINUX -DUSE_UDEV -DHAVE_LIBUDEV -Ilibusb -Ilibusb/libusb -Il
ibusb/libusb/os -Ihidapi/hidapi -IOpenHMD/include -I. -Igodot_headers -Iglad libusb
/libusb/core.c
libusb/libusb/core.c:23:10: fatal error: config.h: No such file or directory
 #include "config.h"
          ^~~~~~~~~~
compilation terminated.
scons: *** [libusb/libusb/core.os] Error 1
scons: building terminated because of errors.
$

A config.h for linux seems to be missing:

~/vr-dev/godot_openhmd$ find . -name config.h
./libusb/android/config.h
./libusb/Xcode/config.h
./libusb/msvc/config.h
~/vr-dev/godot_openhmd$

Seems to me like something with the libusb submodule is wrong.

@ChristophHaag
Copy link

I guess a fresh linux build wasn't tested. For linux libusb generates that file when running autogen.sh:

cd libusb
./autogen.sh

@beniwtv
Copy link
Contributor

beniwtv commented Apr 19, 2019

Yep ran into the same issue - config.h is generated by autotools, which core.c needs. Maybe we need to execute that via SCons, or not sure if Scons can provide a compatible config.h

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

3 participants