These are chat archives for highfidelity/hifi

7th
Mar 2014
Robert Steckroth
@surgemcgee
Mar 07 2014 16:34

Well, I have good working knowlage of Qt5. But you may have to walk me through this --> The source directory

/home/surgemcgee/hifi/tests/CMakeFiles

does not contain a CMakeLists.txt file.

Leonardo Murillo
@murillodigital
Mar 07 2014 16:35
@surgemcgee can you elaborate on the process you followed before getting to that error pls
Robert Steckroth
@surgemcgee
Mar 07 2014 16:36
Simply ran cmake with the environment flags provided in the docs.
Leonardo Murillo
@murillodigital
Mar 07 2014 16:37
so you cloned, created a build/ directory
Robert Steckroth
@surgemcgee
Mar 07 2014 16:37
That cmake file is looping or something,. And yes that is the build dir.
Leonardo Murillo
@murillodigital
Mar 07 2014 16:37
what OS are you on?
Robert Steckroth
@surgemcgee
Mar 07 2014 16:37
Ubuntu 13.10
Leonardo Murillo
@murillodigital
Mar 07 2014 16:37
ok so, from the build you simply did
cmake ..
?
Robert Steckroth
@surgemcgee
Mar 07 2014 16:37
Yes
Leonardo Murillo
@murillodigital
Mar 07 2014 16:38
what version of cmake are you running
?
Robert Steckroth
@surgemcgee
Mar 07 2014 16:38
2.8.11.2 Plus this -> export QT_CMAKE_PREFIX_PATH=/home/surgemcgee/Qt/5.2.1/gcc_64/lib/cmake/
It creates a CmakeLists Directory with another empty directory name CMakeLists in there.
Leonardo Murillo
@murillodigital
Mar 07 2014 16:40
can you try cleaning up your build dir
makign sure you’ve pulled from upstream master
and then run cmake again from build?
Robert Steckroth
@surgemcgee
Mar 07 2014 16:41
Ok
Leonardo Murillo
@murillodigital
Mar 07 2014 16:41
working fine for me on Ubuntu 12.04
Robert Steckroth
@surgemcgee
Mar 07 2014 16:41
Branch is master
Leonardo Murillo
@murillodigital
Mar 07 2014 16:41
yes but make sure you pull from upstream
as remote?
Robert Steckroth
@surgemcgee
Mar 07 2014 16:42
not yet.
Leonardo Murillo
@murillodigital
Mar 07 2014 16:42
(git remote add upstream https://github.com/highfidelity.hifi)
do that, and the git pull upstream master
and then cmake .. from a clean build/
Robert Steckroth
@surgemcgee
Mar 07 2014 16:42
right on
Robert Steckroth
@surgemcgee
Mar 07 2014 18:02
Got it up and running.. It looks like I have some platform glitches to sort out --> http://ubuntuone.com/2vABa6AHv75baZiAAEcUNI
Stephen Birarda
@birarda
Mar 07 2014 18:02
@surgemcgee can you check if the resources directory was copied beside the executable?
Leonardo Murillo
@murillodigital
Mar 07 2014 18:02
you need to copy interface/resources
Stephen Birarda
@birarda
Mar 07 2014 18:02
looks like it’s not loading shadres
no @murillodigital cmake should do that now
Leonardo Murillo
@murillodigital
Mar 07 2014 18:03
ahh cool
Brad Hefta-Gaub
@ZappoMan
Mar 07 2014 18:03
That screen shot is definitely the resources not loading.
Robert Steckroth
@surgemcgee
Mar 07 2014 18:04
no resourses dir, let me find it..
Stephen Birarda
@birarda
Mar 07 2014 18:04
hmmm
have you pulled to latest? that’s a pull merged yesterday
Brad Hefta-Gaub
@ZappoMan
Mar 07 2014 18:04
if you have the latest code, the cmake pass should copy that… but maybe that's not working
Lucas Crisman
@kordero
Mar 07 2014 18:04
hey guys, so we don't need to run interface from interface/ anymore?
Stephen Birarda
@birarda
Mar 07 2014 18:04
technically you can run from whever
wherever
and it’ll look for resources beside the executable
that cmake will copy
Robert Steckroth
@surgemcgee
Mar 07 2014 18:05
@birarda yes pulled 10 mins ago
Stephen Birarda
@birarda
Mar 07 2014 18:06
cmake version?
lines 97 to 106 in CMakeLists should be copying resources beside the target
# remove and then copy the resources files beside the executable add_custom_command(TARGET ${TARGET_NAME} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E remove_directory $<TARGET_FILE_DIR:${TARGET_NAME}>/resources ) add_custom_command(TARGET ${TARGET_NAME} POST_BUILD COMMAND "${CMAKE_COMMAND}" -E copy_directory "${PROJECT_SOURCE_DIR}/resources" $<TARGET_FILE_DIR:${TARGET_NAME}>/resources )
whoa
Brad Hefta-Gaub
@ZappoMan
Mar 07 2014 18:06
This message was deleted
Robert Steckroth
@surgemcgee
Mar 07 2014 18:07
I did have to add the plugins/platforms libaries to the interface dir to avoid a could not load xcb error
Lucas Crisman
@kordero
Mar 07 2014 18:08
@birarda are you considering a $ make install option? that could take care of copying binaries and resources to common shared dirs
Stephen Birarda
@birarda
Mar 07 2014 18:08
for resources I’d prefer to have cmake do it on each build so a dev can drop something in directory and then just build again
without having to run make install again
Lucas Crisman
@kordero
Mar 07 2014 18:11
yeah, you're right, I agree, maybe a variable with a default value should govern that
I mean a bash/cmd line scope/environment variable
Robert Steckroth
@surgemcgee
Mar 07 2014 18:23
Well, the project code is not foreign to me, but It looks like I need some setup training. I am serious and can contribute some pro bono work in exchange for project setup help. Other than that, what a awesome thing.
Stephen Birarda
@birarda
Mar 07 2014 18:23
happy to help you get setup!
Robert Steckroth
@surgemcgee
Mar 07 2014 18:23
Sweet
Here?
Stephen Birarda
@birarda
Mar 07 2014 18:23
yeah, not a problem
others can chime in too then
so it’s possible those commands in cmake aren’t copying over the resources directory on build
Robert Steckroth
@surgemcgee
Mar 07 2014 18:24
How do I get the project into a standard Qt setup with the structured look?
I have only created new ones.
Stephen Birarda
@birarda
Mar 07 2014 18:24
hmm … I’m not sure what you mean
are you talking about Qt creator?
Robert Steckroth
@surgemcgee
Mar 07 2014 18:24
In QtCreator.
Stephen Birarda
@birarda
Mar 07 2014 18:25
@Atlante45 are you around?
I know @Atlante45 was using Qt Creator before
I don’t personally have any experience with it
Robert Steckroth
@surgemcgee
Mar 07 2014 18:25
Ohh, well now I do not feel as novice :)
I will look into it than, thanks.
Clément Brisset
@Atlante45
Mar 07 2014 18:26
Hey
Robert Steckroth
@surgemcgee
Mar 07 2014 18:27
Whats up.
Clément Brisset
@Atlante45
Mar 07 2014 18:27
Trying to get setup with Qt Creator ?
Robert Steckroth
@surgemcgee
Mar 07 2014 18:28
Yep,
I have never been able to setup an existing cmake project into QtCreator.
Clément Brisset
@Atlante45
Mar 07 2014 18:29
Yeah, it can be tricky.
How did you import the project ?
Dimitar Dobrev
@ddobrev
Mar 07 2014 18:29
@surgemcgee - I use Qt Creator for this project, I could help you if you like.
Robert Steckroth
@surgemcgee
Mar 07 2014 18:29
Right on.
I have not imported it.
Just ran the cmake with the wizzard,
There is no import context menu from what I see.
Dimitar Dobrev
@ddobrev
Mar 07 2014 18:31
If that went fine, you only need to open cmake_install.cmake with Qt Creator.
That's in your build dir.
Robert Steckroth
@surgemcgee
Mar 07 2014 18:33
But it does not separate files and resources into categories, just opens the directory.
Clément Brisset
@Atlante45
Mar 07 2014 18:33
Yep, you can do that or do new project > import > and then either select the project directory or import with git and the url of the repo
I recommend using the git import
Robert Steckroth
@surgemcgee
Mar 07 2014 18:33
Cool, I see it.
Alright, I need to run up to spedway and get some coffee. If I can make some meaningful commits, is there space for me in here?
Stephen Birarda
@birarda
Mar 07 2014 18:37
okay - interface isn’t copying resource files as I thought it was
I will fix
@surgemcgee definitely! Go take a look at the worklist
and see if there’s anything in there you’d like to jump on
otherwise when @problem is here he may have some ideas
Grayson Stebbins
@problem
Mar 07 2014 19:02
@surgemcgee feel free to start a private chat and we can brainstorm a bit
Niniane Wang
@niniane
Mar 07 2014 21:25
hello there!
Stephen Birarda
@birarda
Mar 07 2014 21:25
welcome @nina
oops
thanks fingers
@niniane
Niniane Wang
@niniane
Mar 07 2014 21:26
if that was in the grid, you would've teleported to the wrong person Nina!
i hope you guys have a fix for that scenario ;)
Clément Brisset
@Atlante45
Mar 07 2014 21:45
Let’s call this scenarios unfortunate encounters
Brad Hefta-Gaub
@ZappoMan
Mar 07 2014 21:50
maybe fortunate… depends on the person I guess
Clément Brisset
@Atlante45
Mar 07 2014 21:52
Oh yeah, unfortunate means bad. I meant unexpected or unplanned. Can’t really find the right word ^^
Brad Hefta-Gaub
@ZappoMan
Mar 07 2014 21:52
;)
Philip Rosedale
@PhilipRosedale
Mar 07 2014 22:43
hello from SXSW
Stephen Birarda
@birarda
Mar 07 2014 22:43
hey there
Philip Rosedale
@PhilipRosedale
Mar 07 2014 22:46
how goes it there?