These are chat archives for highfidelity/hifi

7th
Dec 2014
Charles Krinke
@Charles-Krinke
Dec 07 2014 00:17
I have gotten to my first question. I have installed the items in the wiki instructions on a windows 8.1 system and set QT_CMAKE_PREFIX_PATH in a command window and done the "mkdir build; cd build; cmake ..". At this point, I get errors from cmake about Qt5 (which I installed earlier). Can anyone give me a few ideas to get past this point with hifi, please
Charles Krinke
@Charles-Krinke
Dec 07 2014 00:25
And the error is not finding the Qt5 package ... CMake Error at cmake/macros/SetupHifiProject.cmake:31 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Charles Krinke
@Charles-Krinke
Dec 07 2014 00:47
If I may suggest, I think a good thing would be to add to the Windows build instructions some additional notes on the installation of Qt as there are a number of choices to be made, such as Qt-5.2.0, Qt-5.3, Qt-5.4, tools/no tools, extras/no extras and other things to help make setting up compiling of hifi a little easier at the cmake step
Charles Krinke
@Charles-Krinke
Dec 07 2014 18:53
After re-installing Qt differently, I am able to get the cmake step past Gverb and now am seeing missing dependencies for NSIGHT and others where NSIGHT appears to be an NVidia thing. I see no mention in interface/external of NSIGHT, ATL, QXmpp or SDL2 nor mention on the build instructions. Can you offer some insight on these packages, please.
Nandita D
@bubble8773
Dec 07 2014 19:27
NSIGHT does not work on hifi yet
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:07
Ok, that's fine. But, it gives an error in cmake along with ATL and other things, and no .sln file is created. Unless I am misinterpreting warnings as errors and missing the real error. But that's the problem, answering the question "Error, error, where is the error?"

C:\Users\ckrinke\ck2014\hifi\build>cmake ..
WINDOW_SDK_PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
-- Could NOT find Faceshift (missing: FACESHIFT_INCLUDE_DIRS FACESHIFT_LIBRARIES)
-- Could NOT find ATL (missing: ATL_INCLUDE_DIRS ATL_LIBRARIES)
-- Could NOT find LibOVR (missing: LIBOVR_INCLUDE_DIRS LIBOVR_SRC_DIR LIBOVR_LIBRARY ATL_LIBRARIES)
-- Could NOT find PrioVR (missing: PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
-- Could NOT find Sixense (missing: SIXENSE_INCLUDE_DIRS SIXENSE_LIBRARIES)
-- Could NOT find Visage (missing: VISAGE_BASE_INCLUDE_DIR VISAGE_XML_INCLUDE_DIR VISAGE_OPENCV_INCLUDE_DIR VISAGE_OPENCV2_INCLUDE_DI
VISAGE_CORE_LIBRARY VISAGE_VISION_LIBRARY VISAGE_OPENCV_LIBRARY)
-- Could NOT find LeapMotion (missing: LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
-- Could NOT find RtMidi (missing: RTMIDI_INCLUDE_DIRS RTMIDI_LIBRARIES)
-- Could NOT find QXmpp (missing: QXMPP_INCLUDE_DIRS QXMPP_LIBRARY)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LINKED_TARGET_DEPENDENCY_LIBRARIES
linked by target "networking" in directory C:/Users/ckrinke/ck2014/hifi/libraries/networking
linked by target "octree" in directory C:/Users/ckrinke/ck2014/hifi/libraries/octree
linked by target "fbx" in directory C:/Users/ckrinke/ck2014/hifi/libraries/fbx
linked by target "domain-server" in directory C:/Users/ckrinke/ck2014/hifi/domain-server

-- Configuring incomplete, errors occurred!
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeError.log".

David Rowe
@ctrlaltdavid
Dec 07 2014 22:17
Pretty much all of the libraries that it reports as not being able to be found are optional ... except ATL
Instead of cmake .. use one of the following ...
VS2010: cmake .. -G "Visual Studio 10"
VS2013: cmake .. -G "Visual Studio 12"
(Yes, "12" for VS2013)
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:21
Now, I'm really puzzled as the instructions say with respect to Visual Studio to do cmake .. -DZLIB_LIBRARY=%ZLIB_LIBRARY% -DZLIB_INCLUDE_DIR=%ZLIB_INCLUDE_DIR% -G "Visual Studio 10". I do this and the result is essentially the same

Like this
C:\Users\ckrinke\ck2014\hifi\build>cmake .. -DZLIB_LIBRARY=%ZLIB_LIBRARY% -DZLIB_INCLUDE_DIR=%ZLIB_INCLUDE_DIR% -G "Visual Studio 10"
WINDOW_SDK_PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
-- Could NOT find Faceshift (missing: FACESHIFT_INCLUDE_DIRS FACESHIFT_LIBRARIES)
-- Could NOT find ATL (missing: ATL_INCLUDE_DIRS ATL_LIBRARIES)
-- Could NOT find LibOVR (missing: LIBOVR_INCLUDE_DIRS LIBOVR_SRC_DIR LIBOVR_LIBRARY ATL_LIBRARIES)
-- Could NOT find PrioVR (missing: PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
-- Could NOT find Sixense (missing: SIXENSE_INCLUDE_DIRS SIXENSE_LIBRARIES)
-- Could NOT find Visage (missing: VISAGE_BASE_INCLUDE_DIR VISAGE_XML_INCLUDE_DIR VISAGE_OPENCV_INCLUDE_DIR VISAGE_OPENCV2_INCLUDE_DIR
VISAGE_CORE_LIBRARY VISAGE_VISION_LIBRARY VISAGE_OPENCV_LIBRARY)
-- Could NOT find LeapMotion (missing: LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
-- Could NOT find RtMidi (missing: RTMIDI_INCLUDE_DIRS RTMIDI_LIBRARIES)
-- Could NOT find QXmpp (missing: QXMPP_INCLUDE_DIRS QXMPP_LIBRARY)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LINKED_TARGET_DEPENDENCY_LIBRARIES
linked by target "networking" in directory C:/Users/ckrinke/ck2014/hifi/libraries/networking
linked by target "octree" in directory C:/Users/ckrinke/ck2014/hifi/libraries/octree
linked by target "fbx" in directory C:/Users/ckrinke/ck2014/hifi/libraries/fbx
linked by target "domain-server" in directory C:/Users/ckrinke/ck2014/hifi/domain-server

-- Configuring incomplete, errors occurred!
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeError.log".

C:\Users\ckrinke\ck2014\hifi\build>

So, are the instructions incomplete? probably. Is my understanding incomplete? certainly. At this point, figuring out how to move forward is getting 'challenging'.
David Rowe
@ctrlaltdavid
Dec 07 2014 22:22
I take it you're using Visual Studio 2010 ...
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:23
Indeed, per the instructions. I just setup a brand new windows 8.1 system and am following the instructions
David Rowe
@ctrlaltdavid
Dec 07 2014 22:23
Are you doing the cmake instruction in a Visual Studio command prompt (not just a standard command prompt)
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:24
no, a standard command prompt. I can certainly try the other. Should it make a difference?
David Rowe
@ctrlaltdavid
Dec 07 2014 22:24
Yes, most definitely ... it looks like it's not finding your VS install and associated paths etc
You should have a shortcut in your Start menu called "Open Visual Studio Command Prompt (2010)"
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:30

First of all CtrlAltDavid, thank you for consulting with me. I did not realize the VC command window was needed. I have opened a VC window, set several of the environment variables and the result is a tiny bit different, but my question still is "what is the error" Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd c:\Users\ckrinke\ck2014\hifi\build

c:\Users\ckrinke\ck2014\hifi\build>set QT_CMAKE_PREFIX_PATH=c:\Qt\5.2.0\msvc2010_opengl

c:\Users\ckrinke\ck2014\hifi\build>set HIFI_LIB_DIR=c:\Users\ckrinke\ck2014\hifi

c:\Users\ckrinke\ck2014\hifi\build>set HIFI_LIB_DIR=c:\Users\ckrinke\ck2014\root_lib_dir

c:\Users\ckrinke\ck2014\hifi\build>set ZLIB_LIBRARY=%HIFI_LIB_DIR%\zlib\lib\zdll.lib

c:\Users\ckrinke\ck2014\hifi\build>set ZLIB_INCLUDE_DIR=%HIFI_LIB_DIR%\zlib\include

c:\Users\ckrinke\ck2014\hifi\build>cmake ..
-- Building for: Visual Studio 10 2010
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10 2010
-- Check for working C compiler using: Visual Studio 10 2010 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10 2010
-- Check for working CXX compiler using: Visual Studio 10 2010 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
WINDOW_SDK_PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1
-- Found GLM: c:/Users/ckrinke/ck2014/root_lib_dir/glm
-- Found OpenSSL: optimized;C:/Users/ckrinke/ck2014/root_lib_dir/openssl/lib/VC/ssleay32MD.lib;debug;C:/Users/ckrinke/ck2014/
root_lib_dir/openssl/lib/VC/ssleay32MDd.lib;optimized;C:/Users/ckrinke/ck2014/root_lib_dir/openssl/lib/VC/libeay32MD.lib;debu
g;C:/Users/ckrinke/ck2014/root_lib_dir/openssl/lib/VC/libeay32MDd.lib (found version "1.0.1j")
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindZLIB.cmake:110 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
libraries/octree/CMakeLists.txt:11 (find_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LINKED_TARGET_DEPENDENCY_LIBRARIES
linked by target "networking" in directory C:/Users/ckrinke/ck2014/hifi/libraries/networking

-- Configuring incomplete, errors occurred!
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeOutput.log".

The previous invocation of cmake was "cmake .." from the build directory mentioned in the instructions. Here is the one with the additional -D and -G c:\Users\ckrinke\ck2014\hifi\build>cmake .. -DZLIB_LIBRARY=%ZLIB_LIBRARY% -DZLIB_INCLUDE_DIR=%ZLIB_INCLUDE_DIR% -G "Visual St
udio 10"
WINDOW_SDK_PATH=C:\Program Files\Microsoft SDKs\Windows\v7.1
-- Found ZLIB: c:/Users/ckrinke/ck2014/root_lib_dir/zlib/lib/zdll.lib (found version "1.2.8")
-- Found Gverb: C:/Users/ckrinke/ck2014/hifi/interface/external/gverb/include
-- Found OpenGL: opengl32
-- Found GLEW: c:/Users/ckrinke/ck2014/root_lib_dir/glew/include
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
-- Could NOT find Faceshift (missing: FACESHIFT_INCLUDE_DIRS FACESHIFT_LIBRARIES)
-- Could NOT find ATL (missing: ATL_INCLUDE_DIRS ATL_LIBRARIES)
-- Could NOT find LibOVR (missing: LIBOVR_INCLUDE_DIRS LIBOVR_SRC_DIR LIBOVR_LIBRARY ATL_LIBRARIES)
-- Could NOT find PrioVR (missing: PRIOVR_INCLUDE_DIRS PRIOVR_LIBRARIES)
-- Could NOT find Sixense (missing: SIXENSE_INCLUDE_DIRS SIXENSE_LIBRARIES)
-- Could NOT find Visage (missing: VISAGE_BASE_INCLUDE_DIR VISAGE_XML_INCLUDE_DIR VISAGE_OPENCV_INCLUDE_DIR VISAGE_OPENCV2_I
NCLUDE_DIR VISAGE_CORE_LIBRARY VISAGE_VISION_LIBRARY VISAGE_OPENCV_LIBRARY)
-- Could NOT find LeapMotion (missing: LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
-- Could NOT find RtMidi (missing: RTMIDI_INCLUDE_DIRS RTMIDI_LIBRARIES)
-- Could NOT find QXmpp (missing: QXMPP_INCLUDE_DIRS QXMPP_LIBRARY)
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Found GLUT: c:/Users/ckrinke/ck2014/root_lib_dir/freeglut/include
-- Could NOT find NSIGHT (missing: NSIGHT_INCLUDE_DIRS NSIGHT_LIBRARIES)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LINKED_TARGET_DEPENDENCY_LIBRARIES
linked by target "networking" in directory C:/Users/ckrinke/ck2014/hifi/libraries/networking
linked by target "octree" in directory C:/Users/ckrinke/ck2014/hifi/libraries/octree
linked by target "fbx" in directory C:/Users/ckrinke/ck2014/hifi/libraries/fbx
linked by target "domain-server" in directory C:/Users/ckrinke/ck2014/hifi/domain-server

-- Configuring incomplete, errors occurred!
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ckrinke/ck2014/hifi/build/CMakeFiles/CMakeError.log".

Charles Krinke
@Charles-Krinke
Dec 07 2014 22:37
Sorry, about all that spew, and I know you are an independent developer like me. I was just hoping you could give me another hint. The "use vc command windows" was a good one and I should have thought of that. My only excuse is I am more used to Linux development and am trying to upgrade my Microsoft tool knowledge a bit.
David Rowe
@ctrlaltdavid
Dec 07 2014 22:39
It looks like it's still not finding your ATL in your Visual Studio install
Are you using Visual Studio 2010 Professional or Express?
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:41
I am using the free download VS 2010 express
David Rowe
@ctrlaltdavid
Dec 07 2014 22:41
If Express, note the special VS2010 Express instructions regarding install orders. ... Though I don't know the details of what effect it has 'cos I personally haven't tried VS2010 Express.
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:43
Install orders? I presume you mean the hifi install sequence of VS, SDK7, SP1 & compiler update? I did do that yesterday.
David Rowe
@ctrlaltdavid
Dec 07 2014 22:44
Yes, that's what I was referring to.
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:45
Ok, well, I did do that and all four installs proceeded with no errors. Underneath all of this is the fact that I am more familiar these days with Linux, but all I can say is the installs were done in the proscribed order and there were no errors.
Anyway, I appreciate your consultation, David. Actually I think we might have met years ago on an OpenSim weekly meeting. Your name is somewhat familiar
David Rowe
@ctrlaltdavid
Dec 07 2014 22:46
Yeah, did a little OpenSim programming a while back.
Try cleaning out the HiFi\build directory and running cmake again
Unfortunately I'm using VS2013 at present so can't directly compare ... I use VS2010 in my main dev environment but I'm in the middle of resurrecting it after a C: drive failure
Charles Krinke
@Charles-Krinke
Dec 07 2014 22:51
Hmmm. Does about the same thing, but you mentioning Active Template Library is interesting. The cmake has several lines indicating success with getting to the compiler, ABI, SDK and other stuff, but cmake does display an "ATL missing" message. I don't know how to reconcile those two observations yet, but will go think about it. Again, thanks for the help.
David Rowe
@ctrlaltdavid
Dec 07 2014 22:53
Yeah, I don't know how VS2010 is meant to find the ATL ... in my cmake output it says ...
-- Found ATL: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/atlmfc/include
But that's for VS2013
Charles Krinke
@Charles-Krinke
Dec 07 2014 23:02
Hmmm. I would have preferred VS2013, but the instructions gave me the impression that VS2010 must be used and VS2013 was not supported, or I would have installed VS2013 yesterday
David Rowe
@ctrlaltdavid
Dec 07 2014 23:13
I'm successfully using VS2013 Community edition on my 2nd PC, without VS2010 or other version installed. ... The official builds use VS2010 though, so that's why I use VS2010 for HiFi on my main dev PC.
Charles Krinke
@Charles-Krinke
Dec 07 2014 23:25
Yeah, there is no atlmfc in VS2010 Express in the c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC directory. I seem to recall the Express's did not include MFC so perhaps they also do not include ATL. If Express cannot be used to compile this, that is a problem as I have little desire to increase Microsoft's profits to evaluate Hifi
David Rowe
@ctrlaltdavid
Dec 07 2014 23:26
Express can definitely be used to compile HiFi
Charles Krinke
@Charles-Krinke
Dec 07 2014 23:26
K
David Rowe
@ctrlaltdavid
Dec 07 2014 23:53
Actually, the ATL thing is a bit strange. I seem to recall having to implement a bunch of code to work around there not being ATL with VS2010 Express. Or maybe it was another TLA missing from Express. Hmmm