Skip to content

Cannot install qtlua  #41

@susan-sheehan

Description

@susan-sheehan

Hi, I am new to torch, today. I am trying to go through the video tutorials and follow along I run into a problem replicating practical 1.2 Image package at the 3:31 min mark.

I seem to have the correct env installed (See below) but when I try to run "qlua -lenv" I get a bash error that qlua is not found. In order to fix this I suspect I need to install qtlua but I get the following error, can anyone direct me where I can go to find a suitable qtversion?

MLG-PACMANFROG:~ sms$ luarocks install qtlua
Installing https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec... switching to 'build' mode
Cloning into 'qtlua'...
remote: Counting objects: 169, done.
remote: Compressing objects: 100% (163/163), done.
remote: Total 169 (delta 11), reused 123 (delta 2), pack-reused 0
Receiving objects: 100% (169/169), 364.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (11/11), done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/Users/sms/torch/install/bin/luajit -DLUA_BINDIR="/Users/sms/torch/install/bin" -DLUA_INCDIR="/Users/sms/torch/install/include" -DLUA_LIBDIR="/Users/sms/torch/install/lib" -DLUADIR="/Users/sms/torch/install/lib/luarocks/rocks/qtlua/scm-1/lua" -DLIBDIR="/Users/sms/torch/install/lib/luarocks/rocks/qtlua/scm-1/lib" -DCONFDIR="/Users/sms/torch/install/lib/luarocks/rocks/qtlua/scm-1/conf" && make

-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:16 (CMAKE_POLICY):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

CMake Error at /usr/local/Cellar/cmake/3.9.1/share/cmake/Modules/FindQt4.cmake:1318 (message):
**Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:38 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_qtlua-scm-1-7173/qtlua/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.**

EXAMPLE of Environment check
MLG-PACMANFROG:~ sms$ luarocks list env
Warning: Failed loading manifest for /Users/sms/.luarocks/lib/luarocks/rocks: /Users/sms/.luarocks/lib/luarocks/rocks/manifest: No such file or directory

Installed rocks:

env
scm-1 (installed) - /Users/sms/torch/install/lib/luarocks/rocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions