These are chat archives for highfidelity/hifi

2nd
Dec 2014
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:00
Hello. Does anyone know how to download the software for Linux? https://highfidelity.io/download/ only offers Windows and OSX :/
Clément Brisset
@Atlante45
Dec 02 2014 02:03
I think right now we assume anyone on linux has some kind of software engineering knowlegde and knows how to build from source so we don’t have any binary available for linux.
Did you try checking out the code on Github and building it?
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:05
Yes, I have the GIT version. It doesn't compile because of a qt5 identification issue
MirceaKitsune @MirceaKitsune wishes the stereotype that everyone running Linux is ready to compile software at any moment wouldn't exist. We are mostly geeks, but still :P
Clément Brisset
@Atlante45
Dec 02 2014 02:05
Does it crash in the cmake, make or at runtime?
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:06
It doesn't crash, it gives out a compilation error.
Clément Brisset
@Atlante45
Dec 02 2014 02:06
Ahah, sorry about that. Maintaining binaries is a lot of work since there are so many distributions and this is time we’d rather spend on building hifi ;)
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:07
It's ok. But yeah, I have the proper qt5 development version... yet make soon fails
openSUSE 13.2, in case anyone else compiles on it
Clément Brisset
@Atlante45
Dec 02 2014 02:10
I don’t know that anyone ever tried compiling on OpenSuse. Most of our linux dev/users are on ubuntu and I think one ArchLinux.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:11
ok. Yeah Ubuntu is still most popular. Sadly its package architecture is very different, so that likely wouldn't help me entirely
Clément Brisset
@Atlante45
Dec 02 2014 02:11
You said on worklist, that openSuse comes with qt 5.2.3 right?
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:11
Like if someone could send me a zipped version of the compiled client. It probably wouldn't idenfity libraries
Yes
It's said the issue is due to conflicts with qt4 development packages. But this isn't likely to be the case, since the paths are well separated
Clément Brisset
@Atlante45
Dec 02 2014 02:14
You should try to clean build and make sure cmake finds the right qt.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:15
I have. Re-made the cmake settings numerous times, and tried a clean build. It always fails
Clément Brisset
@Atlante45
Dec 02 2014 02:15
It might be that qt4 comes first in your PATH and so it doesn’t link the right lib.
Can you send me the output of a clean cmake?
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:16
Would be odd, because everything qt4 is in a /foo/bar/qt folder, and qt5 in /foo/bar/qt5
ok, hold on
Clément Brisset
@Atlante45
Dec 02 2014 02:28
Yeah no errors or debug regarding Qt.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:28
Indeed
Clément Brisset
@Atlante45
Dec 02 2014 02:29
I’m pretty sure it’s a linking issue though.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:29
Should I paste the "make" output too?
Clément Brisset
@Atlante45
Dec 02 2014 02:29
I’ve got it from worklist.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:29
ok
Clément Brisset
@Atlante45
Dec 02 2014 02:30
What seems wierd to me is that:
In file included from /usr/include/QtCore/qalgorithms.h:45:0,
from /usr/include/qt5/QtCore/qdebug.h:45,
from /usr/include/qt5/QtCore/QDebug:1,
qdebug.h doesn’t get qalgorithm from qt5/QtCore but from QtCore.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:32
But it says: In file included from /usr/include/qt5/QtCore/QDebug:1:0,
The /qt5/ part is important, as qt4 is in /qt/
So it should be the right file
Clément Brisset
@Atlante45
Dec 02 2014 02:34
Yeah, since it’s provided with the OS I wonder if your version of Qt5 is missing some modules we require, hence the crash.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:34
There are a lot of qt5-*-devel packages. I only installed the ones cmake asked me to, in order to stop erroring out
Maybe hifi requires another qt package, which cmake forgets to check?
Clément Brisset
@Atlante45
Dec 02 2014 02:36
Just checked the cmake and AFAIK everything is there.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:36
Yeah, this is really weird then...
Clément Brisset
@Atlante45
Dec 02 2014 02:37
I think your best shot here is to try a complete install of Qt5.3.2
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:38
Installing all qt5 -devel packages?
It's a lot... will probably clog my system, unless I know which to uninstall after testing
Yeah, the qt5 package group is insanely large. Really weird since qt is mostly a window rendering system x.x
Clément Brisset
@Atlante45
Dec 02 2014 02:41
Sorry but I gotta run. Hope you figure it out, otherwise we can talk more about it tomorrow.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:41
ok. If you have time and wish to, I hope we can look into it more.
Clément Brisset
@Atlante45
Dec 02 2014 02:41
Well it started that way yes but now it’s so much more. Qt does pretty much everything xD
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:41
I see
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 02:57
If anyone else who sees this has any thoughts in the meantime, please let me know. I looked at my qt5 packages again, and can't see where this is all coming from
David Rowe
@ctrlaltdavid
Dec 02 2014 03:04
If you've not seen it already, there's a forum thread that might (or might not) be of help: https://alphas.highfidelity.io/t/building-and-running-the-interface-on-linux/88/11
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 16:01
Thanks. Don't think it mentions my issue though.
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:14

@MirceaKitsune Fresh install OpenSUSE 13.2 using KDE as desktop
Enabled non-oss repositories

Using yast2, find Metapackages section and install the following;

patterns-openSUSE-devel_C_C++
patterns-openSUSE-devel_qt5

Open terminal - working from root of my home directory from here on.

git clone https://github.com/highfidelity/hifi.git

sudo zypper install git-core

git clone https://github.com/highfidelity/hifi.git

git clone https://github.com/highfidelity/gverb.git

sudo zypper install cmake

mkdir hfbuild

cd hfbuild

sudo zypper install libQt5Script-devel
sudo zypper install libQt5Multimedia-devel
sudo zypper install libQt5Webkitwidgets-devel
sudo zypper install libsdl2-devel
sudo zypper install libqxmpp-devel
sudo zypper install glm-devel
sudo zypper install openssl-devel

make assignment-client
make domain-server
make interface

Done

I left out symlinking gverb to hifi/interface but that's something you can figure out. Also, running AC/DS is tricky. AC expects a directory called resources to be located in same directory it is, DS looks for resources/web same way - you can find resources in hifi source tree.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:45
OmegaHeron: So it works after that? Also, what cmake line did you use?
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:46
works perfectly and I used the exact cmake command I referenced above cmake ../hifi/
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:46
Interesting... and really strange
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:46
that assumes hifi source tree is one directory under the build directory
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:47
Yeah. hifi_git/build
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:47
I just started with a clean 13.2 install in a virtual machine and worked it out
beyond that, that's all I got and hope it helps.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:50
All of those zypper commands tell me the packages are already installed. So I'm not missing anything, it's not that...
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:51
no clue then - it simply works here as it does for me in ubuntu, debian and centos. I don't find I need to pass any arguments to cmake other than the hifi source tree location.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:51
One more question please? Do you also have any qt4 development packages installed?
Because someone suggested there could be a conflict
Like libqt4-devel
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:52
probably not as I started from a clean install, but, that shouldn't be a problem as they live in distinct locations and the libqt5* is part of the evaluation
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:52
Yeah, that's why it's strange
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:54
well... when I had some issues months ago I found it good to delete the build directory then start clean with cmake again (where you run cmake, not the hifi source tree)
in fact I usually delete the build directory after each git pull then make it clean again - avoids tons of problems as things change.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:57
I uninstalled libqt4-devel. At least assignment-client seems to be compiling... will try the rest slowly
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:58
cool! Good luck with it, I'm off for a few hours.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 18:58
Ok. And thank you for the help!
Joe Large [Omega Heron]
@OmegaHeron
Dec 02 2014 18:59
sure thing - hope it helps.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 19:06
Yep... everything compiled now. So somehow, in some way I cannot comprehend, the qt4 devel packages were conflicting the qt5 ones... despite being in absolutely different directories.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 19:30
Ok, now it crashes whenever I try to start it :P
http://pastebin.com/raw.php?i=C4zDdvmz Anyone know what this might be please?
Andrew Meadows
@AndrewMeadows
Dec 02 2014 19:48
@MirceaKitsune, do you know how to get a backtrace from that the coredump? Did it actually create a coredump?
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 19:50
How and where should I look?
Ah... you mean using a program like gdb? I last used that a while ago, not sure :(
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:03
I'll try to compile a Debug version, IIRC that prints out more data
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:20
Done, and I have a backtrace. Anyone know what this is about? http://pastebin.com/raw.php?i=Pm2xQ0i4
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:36
Also reported the problem here, since I assume it will need to be investigated: https://worklist.net/20217
For now I will try to compile without QXmpp, which appears to be optional
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:47
I managed to compile without it, and the viewer works at last. Looking around the voxel area I'm spawned in, gonna get an idea of how everything works like
Andrew Meadows
@AndrewMeadows
Dec 02 2014 20:48
yeah, I was going to suggest that: compile without XMPP. I haven't installed XMPP on my linux machine which must be why I haven't seen this problem yet.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:50
Yeah, likely an issue with it.
Sorry, but... how do I use the mouse to turn around? The instructions seem to tell me to use my fingers to look, but I have a normal keyboard and mouse.
Andrew Meadows
@AndrewMeadows
Dec 02 2014 20:55
Looking at the code... @MirceaKitsune it appears that if you want to try to fix it you might try moving the line Application.cpp 223 to go below what is currently at line 241. It appears that there is a hidden LimitedNodeList::getInstance() in the Menu setup, and it must be called AFTER the LimitedNodeList::createInstance() at line 241.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:55
I see. I should submit a pull request in this case.
Andrew Meadows
@AndrewMeadows
Dec 02 2014 20:56
I don't see any code between lines 223 and 241 that would depend on Menu being setup... at least no obvious code.
Sure, it it works then you could submit it as a pull request.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 20:58
How do I use the mouse to look around please? Can't find any settings on that
Andrew Meadows
@AndrewMeadows
Dec 02 2014 21:02
I think you need to run a JS script...
try running this script: .../yourGitCheckout/examples/lookWithMouse.js
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 21:05
Thanks. I understand now... a lot of the logics are coded in javascript. This is a nice idea and a good approach... I like engines only hardcoding essential things, but leaving most stuff possible to script :)
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 21:25
@AndrewMeadows I tried your suggestion, but it doesn't seem to fix the crash
Andrew Meadows
@AndrewMeadows
Dec 02 2014 21:41
ok. Perhaps in my copious spare time I might try to install QXMPP and see if I can crash it.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 21:52
It seems to continue even if I remove the line _window->setMenuBar(Menu::getInstance());
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 22:17
@AndrewMeadows Strange... with that line commented out it says this: http://pastebin.com/raw.php?i=1dyBPLZA
With my change, line 222 is: _runningScriptsWidget = new RunningScriptsWidget(_window);
Andrew Meadows
@AndrewMeadows
Dec 02 2014 22:25
I wonder if you have an incompatible libqxmpp.so or something
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 22:27
The one in openSUSE is 0.8.0. Since it's closely related to qt5 it should be the right version
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 22:57
Ok... I'm trying to explore a few worlds for now. Does anyone know where I can find a high quality location? The only ones I found so far are of blocks floating around... I'm interested in seeing areas with smooth and textured voxels. Some videos and screenshots even show a few cities, as well as detailed landscapes.
Mircea Kitsune
@MirceaKitsune
Dec 02 2014 23:22
The sandbox (which I spawn in by default) seems to be the only location that works so far...