These are chat archives for highfidelity/hifi

18th
Sep 2017
Matti Lahtinen
@Menithal
Sep 18 2017 18:13
Anyone happen to know how solve the error with the shared library: libnvimage.so? Trying to figure out from where it is looking it for, while it is compiled in a separate folder
Clément Brisset
@Atlante45
Sep 18 2017 18:17
@Menithal libnvimage.so is a static library from NVTT. A library we use for texture compression/mipmapping.
Did you see anything about NVTT during your CMake?
Matti Lahtinen
@Menithal
Sep 18 2017 18:17
Yeah, it did seem to appear and i found
it is in a separate directory
currently inside build folder its under ext/makefiles/nvtt/project/lib/libnvimage.so
`
Matti Lahtinen
@Menithal
Sep 18 2017 18:23
but also wondering why the assignment-client even needs the compression / mipmapping.
@Atlante45 ^
Clément Brisset
@Atlante45
Sep 18 2017 18:25
It shouldn't right now.
(We're adding auto-baking inside the Asset-Server, should be merged soon, that will require NVTT on the server)
Matti Lahtinen
@Menithal
Sep 18 2017 18:33
@Atlante45 Trying to figure out then where exactly it is trying seek for the library libnvimage.so, because I could just copy the file it to the folder it is seeking from. It does raise a question have these been built and run on a linux platform since it was added ?
Clément Brisset
@Atlante45
Sep 18 2017 18:46
They were, but not on Debian.
We have 2 devs on linux and all our hosted servers are on linux as well.
Matti Lahtinen
@Menithal
Sep 18 2017 18:47
hmm ok
building it again to take a snap shot of the logs regarding nvtt
Clément Brisset
@Atlante45
Sep 18 2017 18:49
Try deleting your ext directory before hand too.
Maybe something went wrong during download/extract.
What version of CMake are you using?
Matti Lahtinen
@Menithal
Sep 18 2017 18:49
I deleted the entire build folder.
3.7.2
Clément Brisset
@Atlante45
Sep 18 2017 18:50
Ok
Try updating to cmake 3.9 if it's available.
Matti Lahtinen
@Menithal
Sep 18 2017 18:51
hmm, good point, didnt notice that
ill grab one from unstable..
Clément Brisset
@Atlante45
Sep 18 2017 18:52
Hmmm
I'd probably stick with the latest stable verison.
They haven't release 3.9 yet?
Matti Lahtinen
@Menithal
Sep 18 2017 18:53
Nope, the stable currently runs on 3.7. testing is at 3.9.0, unstable is at 3.9.1
hmm actually ill use the one from testing, this is just a test server I am setting up to check also on issues others been running on debian on the forums.
Clément Brisset
@Atlante45
Sep 18 2017 18:56
Sounds good.
Matti Lahtinen
@Menithal
Sep 18 2017 19:10
Ok, updated it directly from cmake to latest. lets see if something breaks :D
Matti Lahtinen
@Menithal
Sep 18 2017 19:45
@Atlante45 even after building with 3.9.2, the assignment-client still throws error while loading shared libraries: libnvimage.so
when starting it up
Clément Brisset
@Atlante45
Sep 18 2017 20:15
Hmmmm
@birarda any ideas?
Matti Lahtinen
@Menithal
Sep 18 2017 21:07
I am off to bed, tried a few things from updating a few libraries, but always bumped into the issue with the not loading the libnvimage.so
Matti Lahtinen
@Menithal
Sep 18 2017 21:27
Okay, dunno what, but after a half-dead-nearly-sleeping idea of adding the built nvtt/project/lib folder to my LD_LIBRARY_PATH i got it to working. @Atlante45 / @birarda
Clément Brisset
@Atlante45
Sep 18 2017 21:28
Hmmmm, interesting. That's really weird, sounds like the file just wasn't copied over when build the AC.
Matti Lahtinen
@Menithal
Sep 18 2017 21:38
Anyway, another interesting issue when compiling interface is the errors I get. same as what this guy is saying highfidelity/hifi#11386
Clément Brisset
@Atlante45
Sep 18 2017 22:27
Looks like a PR just went up for that: https://github.com/highfidelity/hifi/pull/11395/files
Jeff Moyes
@jmo7
Sep 18 2017 23:45
All, given createFoo.js that has the line Entities.addEntity(<PROPERTIES>) and foo.js which gets attached to each of the instances of the entity, is it possible to pass data from createFoo.js into the FOO() constructor in foo.js? I want some custom data in each foo instance that is coordinated from createFoo and not do it after the fact using message passing. Thanks for any help
Clément Brisset
@Atlante45
Sep 18 2017 23:46
We usually use the user-data to pass instance specific data to entities.
ie. populate the userdata in <PROPERTIES> and in this.preload read the data and use it.
One important note is that everyone will run preload.
Even when they show up later on.