These are chat archives for highfidelity/hifi

27th
Jul 2014
Anthony Elliott
@anthonye2007
Jul 27 2014 00:26

Hey all, I'm new here and trying to build the code on Windows 8. I've been following the Build guide on GitHub and installed all dependencies. When I run cmake from hifi\build it can't find a Qt package. I've been looking at this for awhile now but not sure what is wrong.

Specifically, it says: Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".

Here's my command and output:

C:\Users\Anthony\Documents\code\hifi\build>cmake .. -DCMAKE_INSTALL_PREFIX=C:\Users\Anthony\Documents\code\hifi -G "Visual Studio 12"
-- The C compiler identification is MSVC 18.0.30501.0
-- The CXX compiler identification is MSVC 18.0.30501.0
-- Check for working C compiler using: Visual Studio 12
-- Check for working C compiler using: Visual Studio 12 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12
-- Check for working CXX compiler using: Visual Studio 12 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at C:/bin/Qt/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Call Stack (most recent call first):
C:/bin/Qt/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:52 (_qt5gui_find_extra_libs)
C:/bin/Qt/5.2.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 (include)
C:/bin/Qt/5.2.0/msvc2010_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:94 (find_package)
C:/bin/Qt/5.2.0/msvc2010_opengl/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package)
assignment-client/CMakeLists.txt:15 (find_package)

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

The relevant line of assignment-client\CMakeLists.txt is: find_package(Qt5 COMPONENTS Network Script Widgets)
I have a ENV variable called QT_CMAKE_PREFIX_PATH set to C:\bin\Qt\5.2.0\msvc2010_opengl as recommended in the guide
Anthony Elliott
@anthonye2007
Jul 27 2014 00:32
Anyone able to see what I'm doing wrong?
Leonardo Murillo
@murillodigital
Jul 27 2014 00:54
   @anthonye2007 the var should point to c:\bin\Qt\5.2.0\msvc2010_opengl\lib\cmake
or something like that
basically look for lib/cmake
and make the QT_CMAKE_PREFIX_PATH point to that directory specifically
@anthonye2007 ^
however I dont think thats the problem
now looking at the output
seems like ure missing glu32
make sure you have the win SDK installed
Adrianl3d
@Adrianl3d
Jul 27 2014 01:16
@thoys Yes I am using the hifi license, just to be clear, I can use the Faceshift software and that works ok, but when I log into High Fidelity and turn faceshift on, then connection is refused by HIgh Fidelity.
Robert
@Misterblue
Jul 27 2014 03:13
I've been using the cmake gui for windows. I've found setting QT_CMAKE_PREFIX_PATH and the environment variable HIFI_LIB_DIR does the trixk
trick
dorbie
@dorbie
Jul 27 2014 12:33
I'm having some problems installing and building with related dependencies using the build instructions. Some things seem ambiguous, in particular I started installing dependencies and setting bash shell variables until I realized that there were brew packages. So I moved my libs aside and undid my env variables and proceeded with the brew instructions.

Now I get:$ cmake .. -GXcode
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
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:

  • The file was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and contained

    "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

    but not all the files it references.

Call Stack (most recent call first):
/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50 (_qt5_Core_check_file_exists)
/usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:123 (include)
/usr/local/lib/cmake/Qt5Script/Qt5ScriptConfig.cmake:82 (find_package)
/usr/local/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package)
animation-server/CMakeLists.txt:15 (find_package)

-- Configuring incomplete, errors occurred!

Hmm, I did not intend that emoticon
dorbie
@dorbie
Jul 27 2014 12:40
The only problem I saw during the brew taps was the first I did:
$ brew tap highfidelity/homebrew-formulas
Cloning into '/usr/local/Library/Taps/highfidelity/homebrew-formulas'...
remote: Reusing existing pack: 85, done.
remote: Total 85 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (85/85), done.
Checking connectivity... done.
Warning: Could not tap highfidelity/formulas/qt5 over Homebrew/homebrew/qt5
Warning: Could not tap highfidelity/formulas/qxmpp over Homebrew/homebrew/qxmpp
Tapped 4 formulae
dorbie
@dorbie
Jul 27 2014 12:45
Now my main worry was the bash env variables but the output suggests it is finding Qt5Core correctly but missing something else.
dorbie
@dorbie
Jul 27 2014 12:52
Maybe these are really dumb question but do I still need to set up the bash env variables when using brew and cmakeing the xcode project from the build directory? Are the errors when using brew for that first tap serious? I tried to repeat the command but it said it had already been tapped.
Anthony Elliott
@anthonye2007
Jul 27 2014 18:37
@murillodigital Got it. Thanks for indicating Windows sdk to me, I did already have it installed but just needed to find it and point cmake to it. On my Windows 8.1 machine the glu32.lib file is in C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86
I set CMAKE_PREFIX_PATH to be that path and it built!
Anthony Elliott
@anthonye2007
Jul 27 2014 20:34
@huffman did u ever fix ur problem with that cryptic error on windows when building metavoxels? I get the same error.
I double checked my path for Qt and it has c:\bin\Qt\5.2.0\msvc2010_opengl\bin on it...
Anthony Elliott
@anthonye2007
Jul 27 2014 22:36
when I build metavoxels in Debug mode (running WIndows 8.1 here) on Visual Studio 2013 I get an error message that cmd.exe exited.
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------ 2>------ Build started: Project: metavoxels, Configuration: Debug Win32 ------ 2> Building Custom Rule C:/Users/Anthony/Documents/code/hifi/libraries/metavoxels/CMakeLists.txt 2> CMake does not need to re-run because C:\Users\Anthony\Documents\code\hifi\build\libraries\metavoxels\CMakeFiles\generate.stamp is up-to-date. 2> Generating metavoxels_automtc.cpp 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code -1073741515. ========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Formatting fail...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: metavoxels, Configuration: Debug Win32 ------
2> Building Custom Rule C:/Users/Anthony/Documents/code/hifi/libraries/metavoxels/CMakeLists.txt
2> CMake does not need to re-run because C:\Users\Anthony\Documents\code\hifi\build\libraries\metavoxels\CMakeFiles\generate.stamp is up-to-date.
2> Generating metavoxels_automtc.cpp
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code -1073741515.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Nandita D
@bubble8773
Jul 27 2014 22:37
@anthonye2007 did you convert the projects to 2010 to 2013?
Anthony Elliott
@anthonye2007
Jul 27 2014 22:38
Its a really cryptic error, so not sure what is going on. There is a Pre-build event that executes the following command "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_automoc C:/Users/Anthony/Documents/code/hifi/build/libraries/metavoxels/CMakeFiles/metavoxels_automoc.dir/ Debug
@bubble8773 hi, not sure what you mean. When I ran cmake, I passed in -G "Visual Studio 12" to generate for Visual Studio 2013
Also, as @huffman mentioned, building in Release succeeds but when I run interface it "fails to start". However, building in Debug fails.
Nandita D
@bubble8773
Jul 27 2014 22:44
@anthonye2007 try to make 2010 version
Anthony Elliott
@anthonye2007
Jul 27 2014 22:54
@bubble8773 I tried to run `cmake .. -G "Visual Studio 10" but it failed since I only have VS 2013 installed. I'll try and download VS 2010 now
Nandita D
@bubble8773
Jul 27 2014 22:55
ok
Anthony Elliott
@anthonye2007
Jul 27 2014 23:13
@bubble8773 It worked! Thanks a bunch, wouldn't have thought that dropping down to VS 2010 would make a difference. I was able to build metavoxels, have to go for tonite but will try running everything later.
Nandita D
@bubble8773
Jul 27 2014 23:19
@anthonye2007 Your welcome
Ryan Huffman
@huffman
Jul 27 2014 23:32
@anthonye2007 Sorry! I haven't updated the build docs yet. Yes, installing VS 2010 did the trick for me