These are chat archives for highfidelity/hifi

2nd
May 2014
Jeroen Baert
@Forceflow
May 02 2014 06:11
@ctrlaltdavid I have succesfully built with 2012 a couple of weeks ago, though, so it's not impossible.
anans21
@anans21
May 02 2014 07:47
Do I need a special headset to be able to see what's going on? I'm still trying to figure out how to build Hifi; I can't figure out how to download zLib
Jeroen Baert
@Forceflow
May 02 2014 08:25
@anans21 : What platform are you building on?
anans21
@anans21
May 02 2014 09:30
Windows
@Forceflow
Jeroen Baert
@Forceflow
May 02 2014 09:32
Ah, I think there's an MSVC project included in the zlib zip file.
@anans21 : Check (root of zlib zip file)/contrib/vstudio
anans21
@anans21
May 02 2014 09:34
@Forceflow in the BUILD.md file in the Windows - Extermal Libraries section, it says "If you installed zLib using the installer, the Cmake find module for zLib should locate it on your system." However I can't seem to find a zLib installer.
@Forceflow And no I didn't see a MSVC project in the zip file, unless I downloaded the wrong thing.
Jeroen Baert
@Forceflow
May 02 2014 09:35
I didn't find a zlib installer either - it's probably referring to the standard unix way of doing it (make, make install)
@anans21 I'm using this download from the main zlib site: http://zlib.net/zlib128.zip
anans21
@anans21
May 02 2014 09:37
Okay yeah I downloaded something completely different lol. But now once I download that, where am I supposed to put it?
Jeroen Baert
@Forceflow
May 02 2014 09:38
after building, you'll get the usual include and lib directories
(I'm checking what my current folder structure is, just a sec)
anans21
@anans21
May 02 2014 09:39
So I should run nmake and nmake install in that folder
Jeroen Baert
@Forceflow
May 02 2014 09:39
@anans21 Scrap that, I'm using the DLL version, which is also on the site. http://zlib.net/zlib128-dll.zip
anans21
@anans21
May 02 2014 09:40
@Forceflow Ah yeah thats what I had downloaded first
Jeroen Baert
@Forceflow
May 02 2014 09:40
and then I placed that in my hifi_libs folder (like described in the build instructions)
A tool I found handy to manage my environment variables was Rapid Environment Editor: http://www.rapidee.com/en/about
when cmake fails, it usually spits out the env variable for the lib it cannot find
So then I add it using the environment editor, open a new console (to refresh env variables), and try to build again :)
anans21
@anans21
May 02 2014 09:44
Okay I'm going to try and build now lol
Jeroen Baert
@Forceflow
May 02 2014 09:44
I also found that if you're using cygwin, you cannot run cmake properly from the cygwin terminal - some environment vars are missing, and he can't find the VS2010 compiler. Running cmake from the "Visual Studio 2010 command-line" works.
For QXMPP, I used nmake + nmake install, but the install just scattered the compiled files somewhere in the QT folder. I retrieved them, and just made a folder structure qxmpp/include and qxmpp/lib, and put them there.
anans21
@anans21
May 02 2014 09:47
Yeah that happened to me too
So I set a PATH parameter lol
I'm having trouble with cmake. I'm not sure what the parameters are supposed to be
Usage:
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
Thats what I get when I run cmake alone
But I'm already cd into the hifi-master directory
Jeroen Baert
@Forceflow
May 02 2014 09:49
You have to make a folder "build" (or whatever you like)
descend into that folder, then do cmake ..
anans21
@anans21
May 02 2014 09:49
Oh okay
Jeroen Baert
@Forceflow
May 02 2014 09:49
(that's "cmake .." - the dots refer to the folder right above it)
oh, and parameters should be "cmake .. -G "Visual Studio 10" "
anans21
@anans21
May 02 2014 09:50
Oh that makes sense now lol
Jeroen Baert
@Forceflow
May 02 2014 09:51
Yeah, don't know what he's targeting otherwise ... default, or minGW, probably :)
anans21
@anans21
May 02 2014 09:52
What path do you set for GLM_INCLUDE_DIR
Jeroen Baert
@Forceflow
May 02 2014 09:53
top glm folder
glm/glm/(headers here)
so the top one. GLM has the irritating property to ignore common sense and just use glm/include/(headers here)
anans21
@anans21
May 02 2014 09:56
Ugh this is the error I keep getting http://pastebin.com/kYkz6Psu
Oh wait.. I have to restart the cmd after I set a variable right lol
anans21
@anans21
May 02 2014 10:02
Now it works
But I'm having trouble with the ZLIB variables
anans21
@anans21
May 02 2014 10:28
Keep getting this error message and the build fails: "Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)" although I set those environment variables
Jeroen Baert
@Forceflow
May 02 2014 11:48
@anans21 What did you set them to? zlib root dir?
anans21
@anans21
May 02 2014 11:48
@Forceflow I ran this and it worked: cmake .. -DZLIB_LIBRARY:FILEPATH="C:/root_lib_dir/zlib/lib/zdll.lib" -DZLIB_INCLUDE_DIR:PATH="C:/root_lib_dir/zlib/include" -G "Visual Studio 10"
Jeroen Baert
@Forceflow
May 02 2014 11:52
@anans21 : I think this is the ZLIB installer they might be talking about: http://gnuwin32.sourceforge.net/packages/zlib.htm
anans21
@anans21
May 02 2014 11:53
Oh you have got to be kidding me lol
I went through so much struggle
Oh well lol
Jeroen Baert
@Forceflow
May 02 2014 11:55
@anans21 : Ah, I studied my environment variables, again, and it seems I set CMAKE_PREFIX_PATH to include C:\libs\zlib
(which is where my zlib resides)
also QT_CMAKE_PREFIX_PATH=C:\Qt\5.2.1\msvc2010_opengl
and of course HIFI_LIB_DIR=C:\libs\hifi_lib_dir\
anans21
@anans21
May 02 2014 11:57
Yeah I got the two last ones you mentioned. I didn't know about the CMAKE_PREFIX_PATH lol
Jeroen Baert
@Forceflow
May 02 2014 11:57
That seems to be the standard, catch-all way to poke cmake to look into folders where it might find libs :)
even think you can get rid of the HIFI_LIB_DIR if you add all those folders to CMAKE_PREFIX_PATH individually, but that's a bit cumbersome.
compiling on windows = constantly discovering new ways to make you feel stupid :D
@anans21 : I'll make a pull request later today with more detailed info for Windows building in Build.md - I can imagine more people hitting the same hiccups as we do now.
duncansuttles
@duncansuttles
May 02 2014 15:51
I am new to this project. Could anyone please tell us if there is document describing the server API or where we should look in the code to get that information. Our company is working on web 3d clients for open source Virtual Worlds and MMOG . My email is duncan@magnetargames.com .
Stephen Birarda
@birarda
May 02 2014 17:15
@duncansuttles welcome!
Since we’re in pretty active development, our documentation is sparse and quickly out of date
for a general overview, @PhilipRosedale’s recent blogpost is probably a good place to start
Jeroen Baert
@Forceflow
May 02 2014 17:21
@duncansuttles : Hi, welcome!
Thijs Wenker
@thoys
May 02 2014 19:37
pointed 5 assignment-clients to the alpha domain
Konstantin
@SydoxX
May 02 2014 19:38
But only 2 shown
Thijs Wenker
@thoys
May 02 2014 19:38
How do you mean?
Konstantin
@SydoxX
May 02 2014 19:39
Says Servers: 10. But 8 are from HiFi
Thijs Wenker
@thoys
May 02 2014 19:39
ah i see, strange
Leonardo Murillo
@murillodigital
May 02 2014 19:40
@thoys actually neither of those 2 are yours
are you running type 2 ACs?
Thijs Wenker
@thoys
May 02 2014 19:40
metavoxel-server a3cdacc5-9708-4abb-bf81-a58df6cc08d5 87.253.142.60:941 87.253.142.60:941 355,815
model-server 5c43e994-6cbb-4907-bee0-41d3aedc9bc2 87.253.142.60:58756 87.253.142.60:58756 355,426
Leonardo Murillo
@murillodigital
May 02 2014 19:40
those are yours?
yeah you’re grabbing assignment types that are not taken by specific ACs
did you run -n 5?
Thijs Wenker
@thoys
May 02 2014 19:41
inet addr:87.253.142.60 Bcast:87.253.142.255 Mask:255.255.255.0
thats my vps yeh
Leonardo Murillo
@murillodigital
May 02 2014 19:41
ok, problem with that is
Thijs Wenker
@thoys
May 02 2014 19:41
and yes i did
Leonardo Murillo
@murillodigital
May 02 2014 19:41
youre not specifying a type
so for instance, on a redeploy
theres a race condition
DS stops and start, and we have ACs with specific types deployed
if yours grabs any assignment of ours before
then we have problems
Thijs Wenker
@thoys
May 02 2014 19:42
so i should always give types?
Leonardo Murillo
@murillodigital
May 02 2014 19:42
meaning, if your voxel AC grabs a voxel assignment before ours does, then one of ours will never be running
if you want to point against one of our domains, yes, and type 2 for that matter
basically a scripted agent assignment
which will into the pool of ACs where scripts can be sent to
Thijs Wenker
@thoys
May 02 2014 19:43
ah yes, but could you run a model server aswell?
Leonardo Murillo
@murillodigital
May 02 2014 19:44
well you “could” run any of them, and it will be grabbed if it wasnt assigned already
Thijs Wenker
@thoys
May 02 2014 19:44
there was a unknown server type in the queue, i thought i take it
Leonardo Murillo
@murillodigital
May 02 2014 19:44
(such as a model server that was just today introduced)
but the problem with grabbing specific assignments like that is, you’ll be racing against one of our production servers to grab the assignment on a restart
know what I mean?
Thijs Wenker
@thoys
May 02 2014 19:44
ah yes
I understand
Leonardo Murillo
@murillodigital
May 02 2014 19:45
type 2s dont behave like that
they’re just a pool waiting to receive “arbitrary” scripts
Thijs Wenker
@thoys
May 02 2014 19:45
ok, type 2 is agent? is there a list of the types out there?
Leonardo Murillo
@murillodigital
May 02 2014 19:46
Im not sure if they’re documented anywhere, but you can tell by looking at the source
getting you exactly where one sec
Thijs Wenker
@thoys
May 02 2014 19:46
I see it
Thijs Wenker
@thoys
May 02 2014 19:46
in the assignmentfactory
Leonardo Murillo
@murillodigital
May 02 2014 19:46
that enum
enum Type {
    AudioMixerType,
    AvatarMixerType,
    AgentType,
    VoxelServerType,
    ParticleServerType,
    MetavoxelServerType,
    ModelServerType,
    AllTypes
};
0 - audio, 1 avatar, etc
Thijs Wenker
@thoys
May 02 2014 19:47
cool ty
Leonardo Murillo
@murillodigital
May 02 2014 19:47
np
Thijs Wenker
@thoys
May 02 2014 19:47
i 'll just run a type 6 for testing then, temporary
Leonardo Murillo
@murillodigital
May 02 2014 19:48
cool, that was just introduced today, and I’m expecting to add a production server to fulfill that assignment soon, will let u know when so you kill urs
Thijs Wenker
@thoys
May 02 2014 19:48
that would be great ty
FearghusMcMahon
@FearghusMcMahon
May 02 2014 20:51
Did you ever finish the document for how you managed to get the servers running on your centos vps @thoys? runs and hides