This isn't an issue, I am just making you aware that I have made a PKGBUILD for Arch Linux. I have tested it and it works well on either Intel or AMD systems. Unfortunately I do not have an NVIDIA Card so I can't test that.
This provides an easy way for Arch users to install waifu2x. It handles all building (here is a sample output):
==> Making package: waifu2x-git r250.ca65c93-3 (Wed Sep 23 14:11:48 PHT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning waifu2x-converter-cpp git repo...
Cloning into bare repository '/tmp/waifu2x-git/waifu2x-converter-cpp'...
remote: Counting objects: 1578, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 1578 (delta 2), reused 0 (delta 0), pack-reused 1565
Receiving objects: 100% (1578/1578), 21.62 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (1123/1123), done.
Checking connectivity... done.
==> Validating source files with md5sums...
waifu2x-converter-cpp ... Skipped
==> Extracting sources...
-> Creating working copy of waifu2x-converter-cpp git repo...
Cloning into 'waifu2x-converter-cpp'...
done.
==> Starting pkgver()...
==> Starting prepare()...
patching file appendix/waifu2x-nocuda/lib/settings.lua
patching file appendix/waifu2x-nocuda/waifu2x.lua
patching file src/main.cpp
==> Starting build()...
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.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
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
CMake Warning at CMakeLists.txt:20 (message):
cuda not found. disabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/waifu2x-git/src/waifu2x-converter-cpp
Scanning dependencies of target conv
[ 5%] Building C object CMakeFiles/conv.dir/conv.c.o
[ 10%] Linking C executable conv
[ 10%] Built target conv
Scanning dependencies of target gensrcs
[ 15%] Generating modelHandler_OpenCL.cl.h
[ 15%] Built target gensrcs
Scanning dependencies of target w2xc
[ 21%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler.cpp.o
[ 26%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler_fma.cpp.o
[ 31%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler_avx.cpp.o
[ 36%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler_sse.cpp.o
[ 42%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler_OpenCL.cpp.o
[ 47%] Building CXX object CMakeFiles/w2xc.dir/src/convertRoutine.cpp.o
[ 52%] Building CXX object CMakeFiles/w2xc.dir/src/threadPool.cpp.o
[ 57%] Building CXX object CMakeFiles/w2xc.dir/src/modelHandler_CUDA.cpp.o
[ 63%] Building CXX object CMakeFiles/w2xc.dir/src/w2xconv.cpp.o
[ 68%] Building CXX object CMakeFiles/w2xc.dir/src/common.cpp.o
[ 73%] Building CXX object CMakeFiles/w2xc.dir/src/Env.cpp.o
[ 78%] Linking CXX shared library libw2xc.so
[ 78%] Built target w2xc
Scanning dependencies of target runtest
Scanning dependencies of target waifu2x-converter-cpp
[ 84%] Building C object CMakeFiles/runtest.dir/w32-apps/runtest.c.o
[ 89%] Building CXX object CMakeFiles/waifu2x-converter-cpp.dir/src/main.cpp.o
[ 94%] Linking C executable runtest
[ 94%] Built target runtest
[100%] Linking CXX executable waifu2x-converter-cpp
[100%] Built target waifu2x-converter-cpp
==> Starting check()...
==> Running Waifu2x's test suite. Depending on your processor and GPU, this may take a while.
start process block (0,0) ...
Iteration #1(1->32)...(3.01475[ms], 4.66111[GFLOPS], 1.06817[GB/s])
Iteration #2(32->32)...(13.9452[ms], 32.2453[GFLOPS], 0.447852[GB/s])
Iteration #3(32->64)...(19.8823[ms], 45.2329[GFLOPS], 0.471176[GB/s])
Iteration #4(64->64)...(37.985[ms], 47.352[GFLOPS], 0.328834[GB/s])
Iteration #5(64->128)...(108.265[ms], 33.2272[GFLOPS], 0.173058[GB/s])
Iteration #6(128->128)...(137.966[ms], 52.1483[GFLOPS], 0.181071[GB/s])
Iteration #7(128->1)...(1.73939[ms], 32.3151[GFLOPS], 7.23722[GB/s])
total : 0.323218[sec], 43.3451[GFLOPS]
start scaling
#1 2x scaling...
start process block (0,0) ...
Iteration #1(1->32)...(8.2959[ms], 6.15139[GFLOPS], 1.40969[GB/s])
Iteration #2(32->32)...(41.4538[ms], 39.3933[GFLOPS], 0.547129[GB/s])
Iteration #3(32->64)...(76.7866[ms], 42.5335[GFLOPS], 0.443057[GB/s])
Iteration #4(64->64)...(173.087[ms], 37.7382[GFLOPS], 0.262071[GB/s])
Iteration #5(64->128)...(267.79[ms], 48.7846[GFLOPS], 0.254086[GB/s])
Iteration #6(128->128)...(471.417[ms], 55.4244[GFLOPS], 0.192446[GB/s])
Iteration #7(128->1)...(5.88946[ms], 34.6594[GFLOPS], 7.76227[GB/s])
total : 1.04507[sec], 48.6841[GFLOPS]
start process block (0,0) ...
Iteration #1(1->32)...(5.31938[ms], 2.64168[GFLOPS], 0.605384[GB/s])
Iteration #2(32->32)...(10.3391[ms], 43.4921[GFLOPS], 0.604057[GB/s])
Iteration #3(32->64)...(18.1773[ms], 49.4758[GFLOPS], 0.515373[GB/s])
Iteration #4(64->64)...(35.922[ms], 50.0714[GFLOPS], 0.347718[GB/s])
Iteration #5(64->128)...(72.7572[ms], 49.4431[GFLOPS], 0.257516[GB/s])
Iteration #6(128->128)...(143.634[ms], 50.0902[GFLOPS], 0.173924[GB/s])
Iteration #7(128->1)...(1.86864[ms], 30.0798[GFLOPS], 6.73663[GB/s])
total : 0.288365[sec], 48.5841[GFLOPS]
start scaling
#1 2x scaling...
start process block (0,0) ...
Iteration #1(1->32)...(8.26065[ms], 6.17764[GFLOPS], 1.41571[GB/s])
Iteration #2(32->32)...(35.0002[ms], 46.6569[GFLOPS], 0.648013[GB/s])
Iteration #3(32->64)...(62.6[ms], 52.1725[GFLOPS], 0.543464[GB/s])
Iteration #4(64->64)...(120.463[ms], 54.2243[GFLOPS], 0.376558[GB/s])
Iteration #5(64->128)...(244.34[ms], 53.4665[GFLOPS], 0.278471[GB/s])
Iteration #6(128->128)...(469.409[ms], 55.6615[GFLOPS], 0.193269[GB/s])
Iteration #7(128->1)...(6.2351[ms], 32.7381[GFLOPS], 7.33197[GB/s])
total : 0.946639[sec], 53.7462[GFLOPS]
start process block (0,0) ...
Iteration #1(1->32)...(4.2722[ms], 3.28919[GFLOPS], 0.753774[GB/s])
Iteration #2(32->32)...(10.487[ms], 42.8785[GFLOPS], 0.595535[GB/s])
Iteration #3(32->64)...(19.3279[ms], 46.5304[GFLOPS], 0.484692[GB/s])
Iteration #4(64->64)...(35.1552[ms], 51.1637[GFLOPS], 0.355303[GB/s])
Iteration #5(64->128)...(72.76[ms], 49.4411[GFLOPS], 0.257506[GB/s])
Iteration #6(128->128)...(147.638[ms], 48.7319[GFLOPS], 0.169208[GB/s])
Iteration #7(128->1)...(2.39283[ms], 23.4903[GFLOPS], 5.26085[GB/s])
total : 0.292373[sec], 47.918[GFLOPS]
==> Entering fakeroot environment...
==> Starting package()...
==> Waifu2x will be installed as /usr/bin/waifu2x. It has no manpage, reading /usr/bin/waifu2x -h is probably a good idea.
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "waifu2x-git"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: waifu2x-git r250.ca65c93-3 (Wed Sep 23 14:12:49 PHT 2015)
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) waifu2x-git-r250.ca65c93-3
Total Installed Size: 16.22 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [##########] 100%
(1/1) checking package integrity [##########] 100%
(1/1) loading package files [##########] 100%
(1/1) checking for file conflicts [##########] 100%
(1/1) checking available disk space [##########] 100%
(1/1) installing waifu2x-git [##########] 100%
Optional dependencies for waifu2x-git
cuda: Significantly speeds up operations, but only works with
NVIDIA GPU
libdc1394: IEEE1394 capturing support [installed]
Hope you enjoy and this helps someone. :)