Vrui Installation Problems

Home Forums AR Sandbox Forum Vrui Installation Problems

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • #124176
    robfrost
    Participant

    Mint MATE OS is really simple to use, treat it like Windows and assume double-clicking a file will open what you need (in Florian’s directions, this is the case)

    Follow florian’s directions:

    run the script as normally directed per the install guide (complete all actions in the instructions through the step “bash Build-Ubuntu.sh”); you’ll receive the error everyone’s mentioning

    Next, use the file explorer to navigate to the “BaseImage.h” file (full location: ~/src/Vrui-4.6-005/Images/BaseImage.h; when you open the file explorer it should start at “~” and you should see the “src” folder right in front of you); double click the file, it opens in a text editor
    Not far down, starting at line 27, there’s a couple lines that read something to the effect of “#include <somefilename.h>”; Add a new line that reads “#include <stddef.h>” before those other 2 lines; Save and exit the file.

    Again, use the file explorer to navigate to the Build-Ubuntu.sh file (should be in your base “~” directory) and double click to open in text editor
    find line 37 that reads “wget -O – http://www.idav.ucdavis.edu/~okreylos/ResDev/Vrui/Vrui-$VRUI_VERSION-$VRUI_RELEASE.tar.gz | tar xfz –” (you can use ctr+F to search if you want)
    comment out that line so the script won’t redownload the files and overwrite your changes (put a “#” at the start of the line, now reads “# wget -O blahblahblah”)
    look 2 lines lower (line 39) where it reads “DOWNLOAD_RESULT=$?” and change it to say “DOWNLOAD_RESULT=0”; Save and exit the file

    Once that’s done all you need to do is go back into the terminal and run the “bash Build-Ubuntu.sh” command again and it will work

    Don’t be afraid to click things and explore a bit, you’re not likely to break anything, and even if you do, it’s easy enough to start over (even if you have to go all the way back to reinstalling the OS).

    #124177
    robfrost
    Participant

    Are you entering each of those commands one line at a time?
    i.e. you type in “cd ~”, then press enter; then type in or copy and paste “wget http://www.idav.ucdavis.edu/~okreylos/ResDev/Vrui/Build-Ubuntu.sh “, then press enter; once that’s done you type in “bash Build-Ubuntu.sh”, then press enter and wait

    I just had to install this and connected just fine so if you’re still having problems, it’s likely a network issue on your side of things.

    • This reply was modified 4 months, 3 weeks ago by robfrost.
    #124179
    efischer
    Participant

    Thank you @robfrost! I was doing it all as one code. I tried splitting it up and still having the same issue. Reading it more closely, it is connecting to the UC Davis site and sends the HTTP request. From there I get “Read error (Connection timed out) in headers.” Does this mean it is a network issue here?

    #124181
    Mohamad JARKAS
    Participant

    Indeed, it is fixed.. 🙂

    Thank you so much! <3

    #124187
    Oliver Kreylos
    Keymaster

    I uploaded new versions of Vrui, Kinect, and SARndbox to the download server at http://www.idav.ucdavis.edu/~okreylos. Those updates should build fine on Linux Mint 19.3.

    #124212
    geogboxer
    Participant

    Dear All,

    i have the same issues/errors when trying to install “make” VRui tarballs….Ive tried several but all just end up with errors. Doest it have something to do with the Linux Mint version? Do I need to regress back to a lower version or regress back to an Ubuntu environment?

    I am trying to install the VRui tarballs on Linux Mint version 6.0.3 64-bit version.

    I desperately need some help so I can move forward and enjoy the AR sandbox thing. Many thanks in advance.

    Here is the copy of the error messages that show up at the end of the installation of Vrui:

    —- Vrui installation configuration —-
    Root installation directory : /usr/local
    Header installation root directory : /usr/local/include/Vrui-4.6
    Library installation root directory : /usr/local/lib/x86_64-linux-gnu/Vrui-4.6
    Executable installation directory : /usr/local/bin
    Plug-in installation root directory : /usr/local/lib/x86_64-linux-gnu/Vrui-4.6
    Configuration file installation directory : /usr/local/etc/Vrui-4.6
    Shared file installation root directory : /usr/local/share/Vrui-4.6
    Makefile fragment installation directory : /usr/local/share/Vrui-4.6
    Build system installation directory : /usr/local/share/Vrui-4.6/make
    pkg-config metafile installation directory: /usr/local/lib/x86_64-linux-gnu/pkgconfig
    Documentation installation directory : /usr/local/share/doc/Vrui-4.6
    —- End of Vrui configuration options —-
    Creating application makefile fragment…
    Creating configuration makefile fragment…
    Creating pkg-config meta data file…
    Configuring template makefile…
    Configuring makefile in ExamplePrograms…
    Configuring makefile in ExamplePrograms/MeshEditor…
    Compiling Images/Image.cpp…
    In file included from /home/jose/src/Vrui-4.6-005/Images/Image.h:30:0,
    from Images/Image.cpp:24:
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h:157:2: error: ‘ptrdiff_t’ does not name a type
    ptrdiff_t getRowStride(void) const // Returns the offset between adjacent pixel rows in bytes
    ^~~~~~~~~
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h: In member function ‘const void* Images::BaseImage::getPixelRow(unsigned int) const’:
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h:177:47: error: ‘ptrdiff_t’ was not declared in this scope
    return static_cast<const char*>(rep->image)+ptrdiff_t(y)*getRowStride();
    ^~~~~~~~~
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h:177:47: note: suggested alternative:
    In file included from /usr/include/c++/7/cmath:41:0,
    from /usr/include/c++/7/math.h:36,
    from /home/jose/src/Vrui-4.6-005/Math/Math.h:25,
    from /home/jose/src/Vrui-4.6-005/GL/GLScalarLimits.h:27,
    from /home/jose/src/Vrui-4.6-005/Images/Image.h:28,
    from Images/Image.cpp:24:
    /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:232:28: note: ‘std::ptrdiff_t’
    typedef __PTRDIFF_TYPE__ ptrdiff_t;
    ^~~~~~~~~
    In file included from /home/jose/src/Vrui-4.6-005/Images/Image.h:30:0,
    from Images/Image.cpp:24:
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h:177:60: error: ‘getRowStride’ was not declared in this scope
    return static_cast<const char*>(rep->image)+ptrdiff_t(y)*getRowStride();
    ^~~~~~~~~~~~
    /home/jose/src/Vrui-4.6-005/Images/BaseImage.h:177:60: note: suggested alternative: ‘getSize’
    return static_cast<const char*>(rep->image)+ptrdiff_t(y)*getRowStride();
    ^~~~~~~~~~~~
    getSize
    /home/jose/src/Vrui-4.6-005/BuildRoot/BasicMakefile:128: recipe for target ‘o/g++-3.g0.O3/Images/Image.o’ failed
    make: *** [o/g++-3.g0.O3/Images/Image.o] Error 1
    jose@jose-Inspiron-7559:~/src/Vrui-4.6-005$

    #124213
    geogboxer
    Participant

    Sorry …I just checked the Linuz Mint version…..It is Linux 19.3 codenamed “Tricia”!

    FYI. Thanks. Appreciate your help!

    #124215
    geogboxer
    Participant

    Hello Mr. Kreylos,

    I tried compiling your newly uploaded Vrui version 5.2-001 on my Linux Tricia (Linux 19.3) as you have instructed..it was almost done but this error message popped up again.

    Hope you can fix the bug.

    Many thanks.
    Linking /home/jose/src/Vrui-5.2-001/lib/x86_64-linux-gnu/libVrui.g++-3.so.5.2…
    Compiling VRDeviceDaemon/VRDevice.cpp…
    Compiling VRDeviceDaemon/VRCalibrator.cpp…
    Compiling VRDeviceDaemon/VRDeviceManager.cpp…
    Compiling VRDeviceDaemon/VRDeviceServer.cpp…
    Compiling VRDeviceDaemon/VRDeviceDaemon.cpp…
    Linking bin/VRDeviceDaemon…
    Compiling Vrui/Utilities/DeviceTest.cpp…
    Linking bin/DeviceTest…
    Compiling Vrui/Utilities/TrackingTest.cpp…
    Linking bin/TrackingTest…
    Compiling Vrui/Utilities/FindHMD.cpp…
    Vrui/Utilities/FindHMD.cpp:30:10: fatal error: X11/extensions/Xrandr.h: No such file or directory
    #include <X11/extensions/Xrandr.h>

    ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    /home/jose/src/Vrui-5.2-001/BuildRoot/BasicMakefile:128: recipe for target ‘o/g++-3.g0.O3/Vrui/Utilities/FindHMD.o’ failed
    make: *** [o/g++-3.g0.O3/Vrui/Utilities/FindHMD.o] Error 1
    jose@jose-Inspiron-7559:~/src/Vrui-5.2-001$

    #124220
    Oliver Kreylos
    Keymaster

    I assume you did not use the automatic installation script, Build-Ubuntu.sh? In that case you have to install the Xrandr library by hand, via
    sudo apt-get install libxrandr-dev

    Afterwards run make again.

    In general, I strongly recommend using the automated build script. It will do two main things for you: it will install the most recent Vrui version, and install all system libraries required by it.

    #124251
    Fernesto
    Participant

    Hello everyone, Im having a very similar error. Im not completly sure if the solution is the same. I would appreciate your help.

    Building Vrui on 12 CPUs
    —- Vrui configuration options: —-
    Run-time library search paths enabled
    Realtime library uses POSIX clocks
    Realtime library uses POSIX timers
    Threads library has built-in thread-local storage
    Threads library uses built-in atomics
    Threads library uses POSIX spinlocks
    Local pthread implements pthread_cancel
    Libusb library version 1.0 exists on host system
    Libusb library supports bus topology queries
    Libusb library has libusb_strerror function
    TLS-secured TCP connections enabled
    Multithreaded rendering disabled
    Default GL font directory: /usr/local/share/Vrui-5.2/GLFonts
    PNG image file format enabled
    JPG image file format enabled
    TIFF image file format disabled
    ALSA sound device support enabled
    SPEEX speech compression support enabled
    Video4Linux2 video device support enabled
    FireWire DC1394 video device support enabled
    Theora video codec support enabled
    Spatial sound using OpenAL enabled
    Swapgroup support for Vrui windows disabled
    Support for screen saver inhibition via DBus enabled
    Vrui will save screenshots in PNG format
    Support for spatial audio enabled
    Support to save screen captures in Ogg/Theora format enabled
    Support for multitouch screens enabled
    Support for named video outputs enabled
    LatencyTester vislet for Oculus DK1 latency tester enabled
    Using global per-user configuration file .config/Vrui-5.2/Vrui.cfg
    Event device support for joysticks disabled
    Bluetooth support (for Nintendo Wii controller) enabled
    USB support (for Razer Hydra and Oculus Rift tracker) enabled
    OpenVR SDK or SteamVR run-time do not exist on host system; support for HTC Vive disabled
    —- Vrui installation configuration —-
    Root installation directory : /usr/local
    Header installation root directory : /usr/local/include/Vrui-5.2
    Library installation root directory : /usr/local/lib/x86_64-linux-gnu/Vrui-5.2
    Executable installation directory : /usr/local/bin
    Plug-in installation root directory : /usr/local/lib/x86_64-linux-gnu/Vrui-5.2
    Configuration file installation directory : /usr/local/etc/Vrui-5.2
    Shared file installation root directory : /usr/local/share/Vrui-5.2
    Makefile fragment installation directory : /usr/local/share/Vrui-5.2
    Build system installation directory : /usr/local/share/Vrui-5.2/make
    pkg-config metafile installation directory: /usr/local/lib/x86_64-linux-gnu/pkgconfig
    Documentation installation directory : /usr/local/share/doc/Vrui-5.2
    —- End of Vrui configuration options —-
    Creating application makefile fragment…
    Creating configuration makefile fragment…
    Creating pkg-config meta data file…
    Configuring template makefile…
    Configuring makefile in ExamplePrograms…
    Configuring makefile in ExamplePrograms/MeshEditor…
    Configuring makefile in ExamplePrograms/VRMLViewer…
    Compiling Misc/FileTests.cpp…
    Compiling Misc/CreateNumberedFileName.cpp…
    Compiling Misc/Timer.cpp…
    Compiling Misc/FileLocator.cpp…
    Compiling Misc/FdSet.cpp…
    Compiling Misc/ConfigurationFile.cpp…
    Compiling Misc/ThrowStdErr.cpp…
    Compiling Misc/PrintfTemplateTests.cpp…
    Compiling Misc/StandardValueCoders.cpp…
    Compiling Misc/FileNameExtensions.cpp…
    Compiling Misc/MessageLogger.cpp…
    Compiling Misc/StringPrintf.cpp…
    Compiling Misc/GetCurrentDirectory.cpp…
    Compiling Misc/ReadBuffer.cpp…
    Compiling Misc/CallbackList.cpp…
    Compiling Misc/ValueCoder.cpp…
    Compiling Misc/TimerEventScheduler.cpp…
    Compiling Misc/Pipe.cpp…
    Compiling Misc/CommandDispatcher.cpp…
    Compiling Misc/Directory.cpp…
    Compiling Realtime/AlarmTimer.cpp…
    Compiling Threads/Thread.cpp…
    Compiling Threads/EventDispatcher.cpp…
    Compiling USB/DeviceList.cpp…
    Compiling USB/TransferPool.cpp…
    Compiling USB/Device.cpp…
    Compiling USB/ConfigDescriptor.cpp…
    Misc/CommandDispatcher.cpp: In static member function ‘static void Misc::CommandDispatcher::listCommandsCallback(const char*, const char*, void*)’:
    Misc/CommandDispatcher.cpp:60:43: error: no matching function for call to ‘sort(std::vector<Misc::HashTable<std::__cxx11::basic_string<char>, Misc::CommandDispatcher::CommandCallbackSlot>::Iterator>::iterator, std::vector<Misc::HashTable<std::__cxx11::basic_string<char>, Misc::CommandDispatcher::CommandCallbackSlot>::Iterator>::iterator, Misc::CommandDispatcher::listCommandsCallback(const char*, const char*, void*)::Compare)’
    std::sort(ccs.begin(),ccs.end(),Compare());
    ^
    In file included from /usr/include/c++/5/algorithm:62:0,
    from Misc/CommandDispatcher.cpp:31:
    /usr/include/c++/5/bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
    sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
    ^
    /usr/include/c++/5/bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
    Misc/CommandDispatcher.cpp:60:43: note: candidate expects 2 arguments, 3 provided
    std::sort(ccs.begin(),ccs.end(),Compare());
    ^
    In file included from /usr/include/c++/5/algorithm:62:0,
    from Misc/CommandDispatcher.cpp:31:
    /usr/include/c++/5/bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
    sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
    ^
    /usr/include/c++/5/bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
    Misc/CommandDispatcher.cpp: In substitution of ‘template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<Misc::HashTable<std::__cxx11::basic_string<char>, Misc::CommandDispatcher::CommandCallbackSlot>::Iterator*, std::vector<Misc::HashTable<std::__cxx11::basic_string<char>, Misc::CommandDispatcher::CommandCallbackSlot>::Iterator> >; _Compare = Misc::CommandDispatcher::listCommandsCallback(const char*, const char*, void*)::Compare]’:
    Misc/CommandDispatcher.cpp:60:43: required from here
    Misc/CommandDispatcher.cpp:60:43: error: template argument for ‘template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)’ uses local type ‘Misc::CommandDispatcher::listCommandsCallback(const char*, const char*, void*)::Compare’
    std::sort(ccs.begin(),ccs.end(),Compare());
    ^
    Misc/CommandDispatcher.cpp:60:43: error: trying to instantiate ‘template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)’
    Compiling USB/Context.cpp…
    Compiling RawHID/DeviceMonitor.cpp…
    /home/gerardo/src/Vrui-5.2-001/BuildRoot/BasicMakefile:128: fallo en las instrucciones para el objetivo ‘o/g++-3.g0.O3/Misc/CommandDispatcher.o’
    make: *** [o/g++-3.g0.O3/Misc/CommandDispatcher.o] Error 1
    make: *** Se espera a que terminen otras tareas….
    Build unsuccessful; please fix any reported errors and try again

    #124252
    Oliver Kreylos
    Keymaster

    What operating system type and version are you using, and what is the output of entering

    g++ -v

    in a terminal window?

    #124253
    Fernesto
    Participant

    Hi, thanks for you attention.
    I’m using Ubuntu 16.04 LTS

    The uotput that I get when type that comand is:

    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v –with-pkgversion=’Ubuntu 5.4.0-6ubuntu1~16.04.12′ –with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs –enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ –prefix=/usr –program-suffix=-5 –enable-shared –enable-linker-build-id –libexecdir=/usr/lib –without-included-gettext –enable-threads=posix –libdir=/usr/lib –enable-nls –with-sysroot=/ –enable-clocale=gnu –enable-libstdcxx-debug –enable-libstdcxx-time=yes –with-default-libstdcxx-abi=new –enable-gnu-unique-object –disable-vtable-verify –enable-libmpx –enable-plugin –with-system-zlib –disable-browser-plugin –enable-java-awt=gtk –enable-gtk-cairo –with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre –enable-java-home –with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 –with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 –with-arch-directory=amd64 –with-ecj-jar=/usr/share/java/eclipse-ecj.jar –enable-objc-gc –enable-multiarch –disable-werror –with-arch-32=i686 –with-abi=m64 –with-multilib-list=m32,m64,mx32 –enable-multilib –with-tune=generic –enable-checking=release –build=x86_64-linux-gnu –host=x86_64-linux-gnu –target=x86_64-linux-gnu
    Thread model: posix
    gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)

    thank you very much for your attention

    #124254
    Oliver Kreylos
    Keymaster

    “I’m using Ubuntu 16.04 LTS
    gcc version 5.4.0 20160609”

    Those are both outdated. Ubuntu is at 18.04 LTS / 19.04, and gcc is at 9.2.1.

    You could fix your specific problem by moving the declaration of “class Compare” outside of method Misc::CommandDispatcher::listCommands in Misc/CommandDispatcher.cpp around line 60, but there might be other problems later on, and you’d be better off using the recommended Linux Mint 19.3 operating system.

    #124255
    Fernesto
    Participant

    Ok, I will change OS.
    Just as a comment, some time ago I participated in the build-up of another Augmented reality sandbox project using your software in Ubuntu 16.04 LTS and it didn´t present any problem.

    Thank you for your support

    #124256
    Oliver Kreylos
    Keymaster

    “Just as a comment, some time ago I participated in the build-up of another Augmented reality sandbox project using your software in Ubuntu 16.04 LTS and it didn´t present any problem.”

    You installed an older version of Vrui back then. New Vrui 5.2-001 has been updated to build on newer operating systems and to add new features, which broke compatibility with old operating systems and compilers.

Viewing 15 posts - 16 through 30 (of 32 total)
  • You must be logged in to reply to this topic.

Comments are closed.