tim-janik / rapicorn

Rapicorn is a toolkit for declarative UI construction and SVG-based theming
https://rapicorn.testbit.org/
Mozilla Public License 2.0
12 stars 2 forks source link

Compilation fails on Debian testing #12

Closed Aksej closed 7 years ago

Aksej commented 8 years ago

After getting autogen to recognize libpng16, making rapicorn16.0.0 fails with the following output:

thomas@thomas:~/Downloads/Programs/Beast/rapicorn/rapicorn$ make
make  all-recursive
make[1]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn'
Making all in .
make[2]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn'
make[2]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn'
Making all in po
make[2]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/po'
Making all in data
make[2]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/data'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/data'
Making all in res
make[2]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/res'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/res'
Making all in rcore
make[2]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/rcore'
Making all in .
make[3]: Entering directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/rcore'
  CXX      aida.lo
In file included from aida.cc:2:0:
aida.hh: In function ‘EnumType Rapicorn::Aida::enum_value_from_string(const String&)’:
aida.hh:124:21: error: ‘enum_info’ is not a member of ‘Rapicorn::Aida’
 { return (EnumType) Rapicorn::Aida::enum_info<EnumType>().value_from_string (valuestring); }
                     ^~~~~~~~
aida.hh:124:55: error: expected primary-expression before ‘>’ token
 { return (EnumType) Rapicorn::Aida::enum_info<EnumType>().value_from_string (valuestring); }
                                                       ^
aida.hh:124:57: error: expected primary-expression before ‘)’ token
 { return (EnumType) Rapicorn::Aida::enum_info<EnumType>().value_from_string (valuestring); }
                                                         ^
aida.hh: In function ‘Rapicorn::Aida::String Rapicorn::Aida::enum_value_to_string(EnumType)’:
aida.hh:127:10: error: ‘enum_info’ is not a member of ‘Rapicorn::Aida’
 { return Rapicorn::Aida::enum_info<EnumType>().value_to_string (evalue); }
          ^~~~~~~~
aida.hh:127:44: error: expected primary-expression before ‘>’ token
 { return Rapicorn::Aida::enum_info<EnumType>().value_to_string (evalue); }
                                            ^
aida.hh:127:46: error: expected primary-expression before ‘)’ token
 { return Rapicorn::Aida::enum_info<EnumType>().value_to_string (evalue); }
                                              ^
aida.hh: At global scope:
aida.hh:170:37: error: expected initializer before ‘<’ token
 template<> const EnumInfo& enum_info<TypeKind> ();
                                     ^
aida.hh: In member function ‘Enum Rapicorn::Aida::Any::get_enum() const’:
aida.hh:496:82: error: ‘enum_info’ was not declared in this scope
   Enum               get_enum    () const               { return Enum (get_enum (enum_info<Enum>())); }
                                                                                  ^~~~~~~~~
aida.hh:496:71: error: expected primary-expression before ‘(’ token
   Enum               get_enum    () const               { return Enum (get_enum (enum_info<Enum>())); }
                                                                       ^
aida.hh:496:96: error: expected primary-expression before ‘>’ token
   Enum               get_enum    () const               { return Enum (get_enum (enum_info<Enum>())); }
                                                                                                ^
aida.hh:496:98: error: expected primary-expression before ‘)’ token
   Enum               get_enum    () const               { return Enum (get_enum (enum_info<Enum>())); }
                                                                                                  ^
aida.hh: In member function ‘void Rapicorn::Aida::Any::set_enum(Enum)’:
aida.hh:498:76: error: ‘enum_info’ was not declared in this scope
   void               set_enum    (Enum value)           { return set_enum (enum_info<Enum>(), int64 (value)); }
                                                                            ^~~~~~~~~
aida.hh:498:90: error: expected primary-expression before ‘>’ token
   void               set_enum    (Enum value)           { return set_enum (enum_info<Enum>(), int64 (value)); }
                                                                                          ^
aida.hh:498:92: error: expected primary-expression before ‘)’ token
   void               set_enum    (Enum value)           { return set_enum (enum_info<Enum>(), int64 (value)); }
                                                                                            ^
aida.hh:498:108: error: return-statement with a value, in function returning 'void' [-fpermissive]
   void               set_enum    (Enum value)           { return set_enum (enum_info<Enum>(), int64 (value)); }
                                                                                                            ^
In file included from aida.cc:3:0:
aidaprops.hh: In function ‘Rapicorn::Aida::Property* Rapicorn::Aida::create_property(void (Class::*)(Type), Type (Class::*)() const, const char*, const char*, const char*, const char*)’:
aidaprops.hh:267:77: error: ‘enum_info’ was not declared in this scope
   return new PropertyEnum<Class,Type> (setter, getter, ident, label, blurb, enum_info<Type>(), hints);
                                                                             ^~~~~~~~~
aidaprops.hh:267:91: error: expected primary-expression before ‘>’ token
   return new PropertyEnum<Class,Type> (setter, getter, ident, label, blurb, enum_info<Type>(), hints);
                                                                                           ^
aidaprops.hh:267:93: error: expected primary-expression before ‘)’ token
   return new PropertyEnum<Class,Type> (setter, getter, ident, label, blurb, enum_info<Type>(), hints);
                                                                                             ^
aida.cc: At global scope:
aida.cc:233:10: error: expected initializer before ‘<’ token
 enum_info<TypeKind> ()
          ^
aida.cc:254:37: error: expected initializer before ‘<’ token
 template<> const EnumInfo& enum_info<TypeKind> (); // instantiation
                                     ^
aida.cc: In function ‘const char* Rapicorn::Aida::type_kind_name(Rapicorn::Aida::TypeKind)’:
aida.cc:259:24: error: ‘enum_info’ was not declared in this scope
   const EnumValue ev = enum_info<TypeKind>().find_value (type_kind);
                        ^~~~~~~~~
aida.cc:259:42: error: expected primary-expression before ‘>’ token
   const EnumValue ev = enum_info<TypeKind>().find_value (type_kind);
                                          ^
aida.cc:259:44: error: expected primary-expression before ‘)’ token
   const EnumValue ev = enum_info<TypeKind>().find_value (type_kind);
                                            ^
Makefile:812: recipe for target 'aida.lo' failed
make[3]: *** [aida.lo] Error 1
make[3]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/rcore'
Makefile:852: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn/rcore'
Makefile:708: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/thomas/Downloads/Programs/Beast/rapicorn/rapicorn'
Makefile:574: recipe for target 'all' failed
make: *** [all] Error 2
tim-janik commented 8 years ago

Right, I haven't looked into getting it to build on testing yet, but it's on the list. You can track build support here: https://travis-ci.org/tim-janik/rapicorn

tim-janik commented 7 years ago

Rapicorn biulds on Debian:unstable as of late: https://travis-ci.org/tim-janik/rapicorn/jobs/244474236 Here's the latest release candidate for you to reproduce it: https://mail.gnome.org/archives/beast/2017-June/msg00002.html