jcjohnson / fast-neural-style

Feedforward style transfer
4.28k stars 815 forks source link

Error installing qtlua and lua-cjson #2

Open ProGamerGov opened 7 years ago

ProGamerGov commented 7 years ago
ubuntu@ip-Address:~/torch$ 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 12), reused 124 (delta 2), pack-reused 0
Receiving objects: 100% (169/169), 363.48 KiB | 0 bytes/s, done.
Resolving deltas: 100% (12/12), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/home/ubuntu/torch/install/bin/luajit -DLUA_BINDIR="/home/ubuntu/torch/install/bin" -DLUA_INCDIR="/home/ubuntu/torch/install/include" -DLUA_LIBDIR="/home/ubuntu/torch/install/lib" -DLUADIR="/home/ubuntu/torch/install/lib/luarocks/rocks/qtlua/scm-1/lua" -DLIBDIR="/home/ubuntu/torch/install/lib/luarocks/rocks/qtlua/scm-1/lib" -DCONFDIR="/home/ubuntu/torch/install/lib/luarocks/rocks/qtlua/scm-1/conf" && make

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /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 Error at /usr/share/cmake-3.5/Modules/FindQt4.cmake:1326 (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-8207/qtlua/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.

And the second error.

ubuntu@ip-Address:~$ luarocks install lua-cjson
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-cjson-2.1.0-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-cjson-2.1.0-1.src.rock... switching to 'build' mode

Error: Failed unpacking rock file: /tmp/luarocks_luarocks-rock-lua-cjson-2.1.0-1-4081/lua-cjson-2.1.0-1.src.rock
ubuntu@ip-Address:~$

Everything else seemed to install without issue.

Edit:

The lua-cjson issue is solved with sudo apt-get install unzip.

jcjohnson commented 7 years ago

I'm not sure what's causing the qtlua issue - maybe try opening an issue over at https://github.com/torch/qtlua?

ProGamerGov commented 7 years ago

@jcjohnson I just did here: https://github.com/torch/qtlua/issues/34 My searching for an answer led me to see that the issue popped up in 2013-2014 and was fixed by the qtlua devs. Maybe it returned?

jcjohnson commented 7 years ago

If you are on Ubuntu can you try

sudo apt-get install libqt4-dev