janusvr / janus

Janus VR native client (Windows and Linux)
48 stars 14 forks source link

build not working on ubuntu 18.04 #26

Open nkv123 opened 4 years ago

nkv123 commented 4 years ago

build not working on ubuntu 18.04 here is output is below janus git:(master) sudo ./build-janusvr-linux.sh

########################################################
 Welcome to the magical Linux Auto Compiler for JanusVR 
########################################################

[*] Building JanusVR Native binary distribution with 1 processors. Please wait...
cat: riftid.txt: No such file or directory
Project ERROR: Unknown module(s) in QT: script scripttools
make: *** No targets specified and no makefile found.  Stop.

real    0m0,001s
user    0m0,001s
sys 0m0,000s

[*] Deleting build dir dist/linux/

[*] Creating directory for build distribution in dist/linux/...
cp: cannot stat 'janusvr': No such file or directory

[#] PATCH 1: Adding depedencies from OS to distribution directory

[*] Create Library build folder
mkdir: cannot create directory ‘resources/build_dir/’: File exists
mkdir: cannot create directory ‘resources/build_dir/assimp-5.0.1/’: File exists
mkdir: cannot create directory ‘resources/build_dir/openvr-1.12.5/’: File exists

[*] Building ASSet IMPorter v5.0.1
CMake Error: The source directory "/home/nikola/janus/resources/build_dir/assimp-5.0.1" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.

[*] Copying assimp to dist/linux/
cp: cannot stat 'resources/build_dir/assimp-5.0.1/code/libassimp.so.5.0.0': No such file or directory

[*] Building OpenVR v1.12.5
CMake Error: The source directory "/home/nikola/janus/resources/openvr-1.12.5" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.

[*] Copying OpenVR to dist/linux/
cp: cannot stat 'resources/openvr-1.12.5/bin/linux64/libopenvr_api.so': No such file or directory

[*] Done! Please run 'janusvr' from dist/linux/
jbaicoianu commented 4 years ago

@panmarco83 any ideas about this one? You're probably more familiar with the build system than I am at this point.

panmarco83 commented 4 years ago

Crud, forgot to uncomment the install part that would deal with the packages needed in the build script. These two lines need to be uncommented (remove the # at the beginning of the two lines). I can't guarantee that it will work on 18.04 sorry to say, but I'd very much like too hear if it works or not.

panmarco83 commented 4 years ago

This also reminds me that I probably should try building this on a clean VM too. Been up for over 18 hours now, so I'll probably attack it tomorrow.

panmarco83 commented 4 years ago

Adding some options to the script so the package installation can be skipped as well as the building of the resource libraries.

panmarco83 commented 4 years ago

@nkv123 Sorry I took so long to get to this. I didn't make the original script so I'm rebuilding it with some options that can either be ignored or set if wanted or needed. If you look at this comment, the instructions to how to temporarily get around the problem is there.

panmarco83 commented 4 years ago

Rebuilt Linux build script here. Could someone test this to see if it works right ?

panmarco83 commented 3 years ago

This addresses the problems with the compilation on 18.04.