These are chat archives for highfidelity/hifi

15th
May 2014
Jeremiah Biard
@kzzch
May 15 2014 02:42
Script.include() doesn't seem to be working for me
Ryan Huffman
@huffman
May 15 2014 02:45
Example? Can you get defaultScripts.js to work? It uses Script.include
@kzzch
Jeremiah Biard
@kzzch
May 15 2014 02:46
Erm, I don't know. Interface crashed and now it won't let me run it.
Ryan Huffman
@huffman
May 15 2014 02:46
crashed when you opened a script using Script.include()?
Jeremiah Biard
@kzzch
May 15 2014 02:46
No, I don't think that was specifically the issue
I wrote a script with an object and a constructor and called it from a test script, it just kept throwing an object not found error when I tried to call the constructor
So I wrote another test script with only a function to call check and that failed too with the same issue
I'm assuming it would have failed at Script.include() if it couldn't find the script I was including?
Ryan Huffman
@huffman
May 15 2014 02:53
If you can paste the code I can take a look.
I'm not sure what the behavior is when it can't find a script
afk
Jeremiah Biard
@kzzch
May 15 2014 12:45
Anyone know what I need to do to fix this? "Licensing failed. Date verification failure(1). Please contact support."
Grayson Stebbins
@problem
May 15 2014 16:04
hey @polac -- how can I help you?
Mika Impola
@polac
May 15 2014 16:06
Hello @problem. Hopefully you had pleasent afk. It says in #19521 that I should contact you. That is what I am doing.
@problem if you want to test the current UI layout please run this https://www.dropbox.com/s/a0afz9i9tdv2ndd/sit.js
Grayson Stebbins
@problem
May 15 2014 16:16
@polac ok, will do
Mika Impola
@polac
May 15 2014 16:50
What is the name of the body that is on this wiki page: https://github.com/highfidelity/hifi/wiki/Naming-Your-Skeletal-Joints ??
Grayson Stebbins
@problem
May 15 2014 16:51
that's ron @polac
Ryan Huffman
@huffman
May 15 2014 16:52
Is anyone having trouble connecting to the servers? I can see avatars but no voxels. It keeps disconnecting/connecting to the voxel and particle servers.
Brad Hefta-Gaub
@ZappoMan
May 15 2014 16:54
@huffman - do you have the latest code?
Ryan Huffman
@huffman
May 15 2014 16:55
@ZappoMan Yep. This has been happening since last night. I've even tried older builds and running older builds of the domain and assignment servers.
Also seems to happen on my laptop
Brad Hefta-Gaub
@ZappoMan
May 15 2014 16:55
hmm
Ryan Huffman
@huffman
May 15 2014 16:56
I'm building the latest on my laptop now, just to be sure
Brad Hefta-Gaub
@ZappoMan
May 15 2014 16:57
seems to be working for me.
@huffman - are you seeing any particular messages in the log?
@ZappoMan The voxel nodes keep connecting/disconnecting
Brad Hefta-Gaub
@ZappoMan
May 15 2014 17:02
that's strange...
those servers are running fine, and I'm connected to alpha seeing voxels, etc.
Ryan Huffman
@huffman
May 15 2014 17:02
I'll try restarting my router and modem just to be sure, especially because it's affecting my laptop as well.
Ok, nm
My laptop seems fine now
With the latest
Brad Hefta-Gaub
@ZappoMan
May 15 2014 17:04
ok
Ryan Huffman
@huffman
May 15 2014 17:07
Cloning a fresh copy and building.
Mika Impola
@polac
May 15 2014 17:32
@problem Thanks. So it is ron_standing. What I am actually looking is body that has its skeletal joints named as wiki is intructing to. I haven't found any. So, basically all the models have different joint names. Which is nice...
Grayson Stebbins
@problem
May 15 2014 17:33
Gotcha, @RyanDowne might be able to lend a hand with that.
Ryan Huffman
@huffman
May 15 2014 17:34
@ZappoMan Didn't work. Going to work on my laptop for now, but any pointers on how I can debug this?
Jeremiah Biard
@kzzch
May 15 2014 17:36
he wrote it for a specific avatar
erm, nvm
Mika Impola
@polac
May 15 2014 18:14
@RyanDowne, @problem said that you could help me with the fact that each avatar seem to have different convention on naming its joints. Is there a way to somehow figure out which joint is which?
Jeremiah Biard
@kzzch
May 15 2014 18:18
did you try that code i gave you to list all the joint names?
Mika Impola
@polac
May 15 2014 18:20
In one of the avatars left leg is named "joint_L_leg" and in another it is named "leftLeg" how do I figure out that these two are close enough same joints and I should give them the same jointData when I animate the avatar.
Jeremiah Biard
@kzzch
May 15 2014 18:21
switch(joinName) ?
Mika Impola
@polac
May 15 2014 18:25

Sorry, I really do not get what you mean.

<-- feeling stupid.

Jeremiah Biard
@kzzch
May 15 2014 18:25
switch/case
switch(jointName) {
case "joint_L_leg" || "leftLeg":
console.log("LeftLeg");
default:
console.log("Joint not found");
}
I don't know if that's proper javascript or not, i'm about to test it but i can't login to the server yet
Mika Impola
@polac
May 15 2014 18:27
Ah, but that works until someone decides to be creative and import body with yet another set of joint names.
Jeremiah Biard
@kzzch
May 15 2014 18:28
yes, but hopefully at some point they'll settle on a standard, this is just a temporary workaround.
Doug Fulop
@dougfulop
May 15 2014 19:07
Hi – I've been trying to build, and going through the list of dependencies, I'm still having some issues with GNUTLS installed through homebrew (mac)
anyone have a second?
(and is it okay to ask a question like that here?)
Ryan Huffman
@huffman
May 15 2014 19:08
what issue are you running into?
Jeremiah Biard
@kzzch
May 15 2014 19:08
yep, that's fine
Doug Fulop
@dougfulop
May 15 2014 19:08
when building with CMAKE, Could NOT find GNUTLS (missing: GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
I've double checked, and gnutls is installed at "/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13"
and I tried a few variations of exporting environment variables such as GNUTLS_INCLUDE_DIR="/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include" etc. (if it's correct to have /include at the end)
Ryan Huffman
@huffman
May 15 2014 19:10
try brew link gnutls
Doug Fulop
@dougfulop
May 15 2014 19:11
"Warning: Already linked: /Users/dfulop/.homebrew/Cellar/gnutls/3.2.13"
Ryan Huffman
@huffman
May 15 2014 19:11
do you have symlinks in /usr/local/lib?
ex: /usr/local/lib/libgnutls.dylib
Doug Fulop
@dougfulop
May 15 2014 19:12
I don't think so
-bash: /usr/local/lib/libgnutls.dylib: No such file or directory
(first time diving into dependencies like this - sorry!)
Ryan Huffman
@huffman
May 15 2014 19:12
you could try unlinking first
brew unlink gnutls
then linking again
Doug Fulop
@dougfulop
May 15 2014 19:13
I relinked
still get -bash: /usr/local/lib/libgnutls.dylib: No such file or directory
if it was supposed to create that
Ryan Huffman
@huffman
May 15 2014 19:15
what was the output of brew link gnutls?
Doug Fulop
@dougfulop
May 15 2014 19:15
Linking /Users/dfulop/.homebrew/Cellar/gnutls/3.2.13... 916 symlinks created
Ryan Huffman
@huffman
May 15 2014 19:16
if you use --dryrun I think it will output the link locations
the symlink paths*
to be more clear, brew link --dryrun gnutls
you'll need to unlink first
Doug Fulop
@dougfulop
May 15 2014 19:17
so i tried that now
nothing changed in the terminal
and /usr/local/lib/libgnutls.dylib still does not exist
Jeremiah Biard
@kzzch
May 15 2014 19:20
have you tried manually creating a softlink?
er, symbolic link
Doug Fulop
@dougfulop
May 15 2014 19:21
something like this? ln -s /usr/local/Cellar/gnutls/3.2.13/lib/libgnutls.26.dylib /usr/local/lib/libgnutls.26.dylib
Jeremiah Biard
@kzzch
May 15 2014 19:21
yeah
Doug Fulop
@dougfulop
May 15 2014 19:24
cool
so, using "ln -s /Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/lib/libgnutls.dylib /usr/local/lib/libgnutls.dylib" I got rid of the lib failure in build
is there a similar symbolic link to create for the include folder?
(e.g. Could NOT find GNUTLS (missing: GNUTLS_INCLUDE_DIR))
Ryan Huffman
@huffman
May 15 2014 19:26
/usr/local/include/gnutls
Jeremiah Biard
@kzzch
May 15 2014 19:26
eh, you could probably solve that with a CFLAGS argument
Ryan Huffman
@huffman
May 15 2014 19:27
I think you may be creating a mess for yourself, though. homebrew should really be linking all of these automaticlaly
It could be linking to a different directory, in which case you would be better off manipulating env vars
Doug Fulop
@dougfulop
May 15 2014 19:28
e.g. export GNUTLS_INCLUDE_DIR="/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include"?
Ryan Huffman
@huffman
May 15 2014 19:30
you could try CPPFLAGS=-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include
you could also use LDFLAGS=-L... for your lib directory
Doug Fulop
@dougfulop
May 15 2014 19:33
I don't think I know how to do this properly
is it: cmake .. CPPFLAGS=-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include
or export CPPFLAGS="-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include"
in bashrc
Jeremiah Biard
@kzzch
May 15 2014 19:33
you can do either i believe
Doug Fulop
@dougfulop
May 15 2014 19:35
with cmake .. CPPFLAGS=-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include I get
CMake Error: The source directory "/Users/dfulop/hifi/build/CPPFLAGS=-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include" does not exist.
Ryan Huffman
@huffman
May 15 2014 19:35
CPPFLAGS=-I/Users/dfulop/.homebrew/Cellar/gnutls/3.2.13/include cmake ..
put it first
but yeah, you can use export as well.
Doug Fulop
@dougfulop
May 15 2014 19:37
ok
so I set the CPPFlag
and the error changed during build, in that Could NOT find GLM (missing: GLM_INCLUDE_DIR) is not repeated a bunch of times. but it still appears once.
CMake Error at /Users/dfulop/.homebrew/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find GLM (missing: GLM_INCLUDE_DIR)
Call Stack (most recent call first):
/Users/dfulop/.homebrew/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindGLM.cmake:58 (find_package_handle_standard_args)
cmake/macros/IncludeGLM.cmake:12 (find_package)
animation-server/CMakeLists.txt:17 (include_glm)
Ryan Huffman
@huffman
May 15 2014 19:39
I would figure out where homebrew is linking your files
that should solve your issues
Doug Fulop
@dougfulop
May 15 2014 19:42
I appreciate it
thank you for the help!
and @kzzch too!
Jeremiah Biard
@kzzch
May 15 2014 19:42
np
Doug Fulop
@dougfulop
May 15 2014 19:45
do either of you know an easy way to figure out where the links are?
Ryan Huffman
@huffman
May 15 2014 19:45
@dougfulop np, let us know if you get it working or if you run into other issues
Doug Fulop
@dougfulop
May 15 2014 19:45
(browsing through the brew FAQs now)
Ryan Huffman
@huffman
May 15 2014 19:45
only using brew ln --dryrun
Doug Fulop
@dougfulop
May 15 2014 19:46
ugh - yea, that's not displaying anything to the terminal
Jeremiah Biard
@kzzch
May 15 2014 19:46
is there a -v flag?
usually that will give more info or --verbose
i don't use a mac so i'm just guessing based on similarities with unix
Doug Fulop
@dougfulop
May 15 2014 19:49
with brew link gnutls --verbose every link looks like: ln -s ../../.homebrew/Cellar/gnutls/3.2.13/include/gnutls gnutls
is it possible that those are being linked in place instead of usr/local? (a guess)
Ryan Huffman
@huffman
May 15 2014 19:49
what's your cwd?
current directory*
Doug Fulop
@dougfulop
May 15 2014 19:50
/Users/dfulop/hifi/build
Ryan Huffman
@huffman
May 15 2014 19:50
are they showing up in your current directory?
that's weird
Doug Fulop
@dougfulop
May 15 2014 19:50
if ls should include them, then no
Ryan Huffman
@huffman
May 15 2014 19:50
you can also try brew doctor to see what that says
ls should show a gnutls directory
Doug Fulop
@dougfulop
May 15 2014 19:51
hehe
Ryan Huffman
@huffman
May 15 2014 19:51
if it indeed linked to your local directoy
Doug Fulop
@dougfulop
May 15 2014 19:51
Warning: Your Homebrew is not installed to /usr/local
You can install Homebrew anywhere you want, but some brews may only build
correctly if you install in /usr/local. Sorry!
Ryan Huffman
@huffman
May 15 2014 19:51
whelp, there ya go ;)
Jeremiah Biard
@kzzch
May 15 2014 19:52
\o/
Doug Fulop
@dougfulop
May 15 2014 19:55
:)
Jeremiah Biard
@kzzch
May 15 2014 21:04
Still getting the licensing failure when i try to log in
Doug Fulop
@dougfulop
May 15 2014 22:19
hi @kzzch and @huffman can I get your help for one more thing?

the installation almost went great, and then > CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
The imported target "Qt5::Core" references the file

 "/usr/local//mkspecs/macx-clang"

but this file does not exist. Possible reasons include:

I just finished installing qt5 again (lengthy build!) via the build instructions
Ryan Huffman
@huffman
May 15 2014 22:22
Did you set QT_CMAKE_PREFIX_PATH?
I don't think it gets linked, this is what I have: export QT_CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.2.0/lib/cmake
Doug Fulop
@dougfulop
May 15 2014 22:25
I just ran a brew doctor, and qt is unlinked
if i link qt, there's a warning that qt5 will be overwritten
could the unlinked qt be a source of the problem?
Ryan Huffman
@huffman
May 15 2014 22:30
did you install high fidelity's qt5?
Doug Fulop
@dougfulop
May 15 2014 22:30
yes
Ryan Huffman
@huffman
May 15 2014 22:31
re: overwritten, not sure, maybe it's because you manually linked a lib
Doug Fulop
@dougfulop
May 15 2014 22:33
victory! overwrite qt over qt5, then qt5 force overwrite qt
build succeeds
and brew doctor is happy – maybe it's okay?
Ryan Huffman
@huffman
May 15 2014 22:34
Sounds good to me
Doug Fulop
@dougfulop
May 15 2014 22:34
thanks again!
Ryan Huffman
@huffman
May 15 2014 22:36
np
Doug Fulop
@dougfulop
May 15 2014 22:48
is sandbox the new hq / root?
btw
Ryan Huffman
@huffman
May 15 2014 23:03
are you in the alpha?