Package Details: waifu2x-converter-cpp-git r718-1

Git Clone URL: https://aur.archlinux.org/waifu2x-converter-cpp-git.git (read-only, click to copy)
Package Base: waifu2x-converter-cpp-git
Description: Image Super-Resolution for Anime-Style Art
Upstream URL: https://github.com/DeadSix27/waifu2x-converter-cpp
Licenses: MIT
Conflicts: waifu2x-converter-cpp
Provides: waifu2x-converter-cpp
Submitter: maz-1
Maintainer: nfnty
Last Packager: nfnty
Votes: 13
Popularity: 0.146859
First Submitted: 2015-10-22 15:03 (UTC)
Last Updated: 2019-05-04 16:14 (UTC)

Required by (3)

Sources (1)

Pinned Comments

nfnty commented on 2016-11-06 14:19 (UTC)

Issues and pull requests at https://github.com/nfnty/pkgbuilds

Latest Comments

1 2 Next › Last »

sandsmark commented on 2021-11-07 13:49 (UTC)

Needs a patch to fix build with latest gcc (it uses a reserved name):

diff --git a/PKGBUILD b/PKGBUILD
index 9bec151..68f7ae6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
 pkgname=('waifu2x-converter-cpp-git')
 _srcname='waifu2x-converter-cpp'
 pkgdesc='Image Super-Resolution for Anime-Style Art'
-pkgver='r718'
-pkgrel='1'
+pkgver=r1092.1611736270.57520b2
+pkgrel=1
 arch=('i686' 'x86_64')
 url="https://github.com/DeadSix27/${_srcname}"
 license=('MIT')
@@ -13,8 +13,8 @@ makedepends=('git' 'cmake' 'opencl-headers')
 provides=("${pkgname[0]%-git}")
 conflicts=("${pkgname[0]%-git}")

-source=("${_srcname}::git+${url}.git")
-sha512sums=('SKIP')
+source=("${_srcname}::git+${url}.git" "fix-build.patch")
+sha512sums=('SKIP' 'SKIP')

 pkgver() {
     cd "${srcdir}/${_srcname}"
@@ -24,6 +24,10 @@ pkgver() {
         "$( git log --max-count='1' --pretty='format:%ct' )" \
         "$( git rev-parse --short 'HEAD' )"
 }
+prepare() {
+    cd "${srcdir}/${_srcname}"
+    patch --forward --strip=1 --input="${srcdir}/fix-build.patch"
+}

 build() {
     cd "${srcdir}/${_srcname}"
diff --git a/fix-build.patch b/fix-build.patch
new file mode 100644
index 0000000..a460152
--- /dev/null
+++ b/fix-build.patch
@@ -0,0 +1,75 @@
+diff --git a/include/picojson.h b/include/picojson.h
+index 24a60c5..fd0be66 100644
+--- a/include/picojson.h
++++ b/include/picojson.h
+@@ -194,8 +194,8 @@ class value {
+ private:
+   template <typename T> value(const T *); // intentionally defined to block implicit conversion of pointer to bool
+   template <typename Iter> static void _indent(Iter os, int indent);
+-  template <typename Iter> void _serialize(Iter os, int indent) const;
+-  std::string _serialize(int indent) const;
++  template <typename Iter> void internal_serialize(Iter os, int indent) const;
++  std::string internal_serialize(int indent) const;
+   void clear();
+ };
+ 
+@@ -557,11 +557,11 @@ template <typename Iter> void serialize_str(const std::string &s, Iter oi) {
+ }
+
+ template <typename Iter> void value::serialize(Iter oi, bool prettify) const {
+-  return _serialize(oi, prettify ? 0 : -1);
++  return internal_serialize(oi, prettify ? 0 : -1);
+ }
+
+ inline std::string value::serialize(bool prettify) const {
+-  return _serialize(prettify ? 0 : -1);
++  return internal_serialize(prettify ? 0 : -1);
+ }
+
+ template <typename Iter> void value::_indent(Iter oi, int indent) {
+@@ -571,7 +571,7 @@ template <typename Iter> void value::_indent(Iter oi, int indent) {
+   }
+ }
+
+-template <typename Iter> void value::_serialize(Iter oi, int indent) const {
++template <typename Iter> void value::internal_serialize(Iter oi, int indent) const {
+   switch (type_) {
+   case string_type:
+     serialize_str(*u_.string_, oi);
+@@ -588,7 +588,7 @@ template <typename Iter> void value::_serialize(Iter oi, int indent) const {
+       if (indent != -1) {
+         _indent(oi, indent);
+       }
+-      i->_serialize(oi, indent);
++      i->internal_serialize(oi, indent);
+     }
+     if (indent != -1) {
+       --indent;
+@@ -616,7 +616,7 @@ template <typename Iter> void value::_serialize(Iter oi, int indent) const {
+       if (indent != -1) {
+         *oi++ = ' ';
+       }
+-      i->second._serialize(oi, indent);
++      i->second.internal_serialize(oi, indent);
+     }
+     if (indent != -1) {
+       --indent;
+@@ -636,9 +636,9 @@ template <typename Iter> void value::_serialize(Iter oi, int indent) const {
+   }
+ }
+
+-inline std::string value::_serialize(int indent) const {
++inline std::string value::internal_serialize(int indent) const {
+   std::string s;
+-  _serialize(std::back_inserter(s), indent);
++  internal_serialize(std::back_inserter(s), indent);
+   return s;
+ }
+
+@@ -1165,4 +1165,4 @@ inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) {
+ #pragma warning(pop)
+ #endif
+
+-#endif
+\ No newline at end of file
++#endif

thann commented on 2020-08-12 03:45 (UTC) (edited on 2020-08-12 03:45 (UTC) by thann)

RE: 'sm_xx' is not defined for option 'gpu-architecture'

I just disabled cuda entirely and it compiled =]

by adding the cmake flag: -DENABLE_CUDA=no

katt commented on 2019-05-01 11:20 (UTC)

Had to install ocl-icd to be able to build, worked fine without until a day ago or so.

nfnty commented on 2019-01-01 17:58 (UTC)

@ax34 Looks like an upstream issue.

ax34 commented on 2019-01-01 16:26 (UTC)

CMake Error in CMakeLists.txt: Imported target "opencv_calib3d" includes non-existent path

"//include/opencv4"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

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

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

nfnty commented on 2017-11-18 07:15 (UTC)

@Kayshi Looks like an upstream bug. Report upstream.

Kayshi commented on 2017-11-17 23:59 (UTC)

doesn't compile [ 22%] Generating modelHandler_CUDA.ptx20 nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture' make[2]: *** [CMakeFiles/gensrcs.dir/build.make:82: modelHandler_CUDA.ptx20] Error 1 make[1]: *** [CMakeFiles/Makefile2:142: CMakeFiles/gensrcs.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

nfnty commented on 2017-02-04 00:48 (UTC)

@DarkShadow44 Issue has been fixed now.

DarkShadow44 commented on 2017-01-31 08:51 (UTC)

Ah my fault, I'm using opencv 3.2.0-1 from testing. That doesn't build properly: In configure: > Looking for C++ include opencv2/opencv.hpp - not found Seems like they dropped backwards compatibility.

nfnty commented on 2017-01-31 08:31 (UTC)

@DarkShadow44 No, it isn't. The executable is located at `/usr/bin/waifu2x-converter-cpp`