Verlihub / verlihub

Verlihub 1.5.0.0
https://github.com/verlihub/
GNU General Public License v3.0
57 stars 15 forks source link

after cmake .. trying to use "make" #182

Closed DooMFeaR closed 3 years ago

DooMFeaR commented 3 years ago

Hi, Fresh installed debian 10, followed the guide step by step. Everything worked well until "make".

~/verlihub-1.2.0.0/build# make
[  1%] Building CXX object src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o
In file included from /usr/include/unicode/utypes.h:38,
                 from /usr/include/unicode/translit.h:15,
                 from /root/verlihub-1.2.0.0/src/cmaxminddb.h:30,
                 from /root/verlihub-1.2.0.0/src/cserverdc.h:42,
                 from /root/verlihub-1.2.0.0/src/casyncconn.cpp:27:
/usr/include/unicode/umachine.h:340:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39,
                 from /usr/include/unicode/translit.h:15,
                 from /root/verlihub-1.2.0.0/src/cmaxminddb.h:30,
                 from /root/verlihub-1.2.0.0/src/cserverdc.h:42,
                 from /root/verlihub-1.2.0.0/src/casyncconn.cpp:27:
/usr/include/unicode/uversion.h:173:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/unistr.h:33,
                 from /usr/include/unicode/translit.h:25,
                 from /root/verlihub-1.2.0.0/src/cmaxminddb.h:30,
                 from /root/verlihub-1.2.0.0/src/cserverdc.h:42,
                 from /root/verlihub-1.2.0.0/src/casyncconn.cpp:27:
/usr/include/unicode/char16ptr.h:46:30: error: expected ‘)’ before ‘*’ token
     inline Char16Ptr(char16_t *p);
                     ~        ^~
                              )
/usr/include/unicode/char16ptr.h:69:36: error: expected ‘)’ before ‘p’
     inline Char16Ptr(std::nullptr_t p);
                     ~              ^~
                                    )
/usr/include/unicode/char16ptr.h:81:12: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     inline char16_t *get() const;
            ^~~~~~~~
            Char16Ptr
/usr/include/unicode/char16ptr.h:87:21: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     inline operator char16_t *() const { return get(); }
                     ^~~~~~~~
                     Char16Ptr
/usr/include/unicode/char16ptr.h:93:33: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     template<typename T> static char16_t *cast(T *t) {
                                 ^~~~~~~~
                                 Char16Ptr
/usr/include/unicode/char16ptr.h:98:5: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     char16_t *p_;
     ^~~~~~~~
     Char16Ptr
/usr/include/unicode/char16ptr.h:111:21: error: expected constructor, destructor, or type conversion before ‘(’ token
 Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {}
                     ^
/usr/include/unicode/char16ptr.h: In constructor ‘icu_63::Char16Ptr::Char16Ptr(uint16_t*)’:
/usr/include/unicode/char16ptr.h:113:37: error: class ‘icu_63::Char16Ptr’ does not have any field named ‘p_’
 Char16Ptr::Char16Ptr(uint16_t *p) : p_(cast(p)) {}
                                     ^~
/usr/include/unicode/char16ptr.h:113:40: error: ‘cast’ was not declared in this scope
 Char16Ptr::Char16Ptr(uint16_t *p) : p_(cast(p)) {}
                                        ^~~~
/usr/include/unicode/char16ptr.h:113:40: note: suggested alternative: ‘class’
 Char16Ptr::Char16Ptr(uint16_t *p) : p_(cast(p)) {}
                                        ^~~~
                                        class
/usr/include/unicode/char16ptr.h: At global scope:
/usr/include/unicode/char16ptr.h:118:21: error: expected constructor, destructor, or type conversion before ‘(’ token
 Char16Ptr::Char16Ptr(std::nullptr_t p) : p_(p) {}
                     ^
/usr/include/unicode/char16ptr.h: In destructor ‘icu_63::Char16Ptr::~Char16Ptr()’:
/usr/include/unicode/char16ptr.h:120:5: error: ‘p_’ was not declared in this scope
     U_ALIASING_BARRIER(p_);
     ^~~~~~~~~~~~~~~~~~
/usr/include/unicode/char16ptr.h: At global scope:
/usr/include/unicode/char16ptr.h:123:1: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
 char16_t *Char16Ptr::get() const { return p_; }
 ^~~~~~~~
 Char16Ptr
/usr/include/unicode/char16ptr.h:153:33: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     inline ConstChar16Ptr(const char16_t *p);
                                 ^~~~~~~~
                                 Char16Ptr
/usr/include/unicode/char16ptr.h:176:38: error: ‘nullptr_t’ in namespace ‘std’ does not name a type
     inline ConstChar16Ptr(const std::nullptr_t p);
                                      ^~~~~~~~~
/usr/include/unicode/char16ptr.h:189:18: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     inline const char16_t *get() const;
                  ^~~~~~~~
                  Char16Ptr
/usr/include/unicode/char16ptr.h:195:12: error: ‘operator const int’ does not name a type; did you mean ‘ucnv_open’?
     inline operator const char16_t *() const { return get(); }
            ^~~~~~~~
            ucnv_open
/usr/include/unicode/char16ptr.h:201:39: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     template<typename T> static const char16_t *cast(const T *t) {
                                       ^~~~~~~~
                                       Char16Ptr
/usr/include/unicode/char16ptr.h:206:11: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
     const char16_t *p_;
           ^~~~~~~~
           Char16Ptr
/usr/include/unicode/char16ptr.h:219:38: error: ‘char16_t’ does not name a type; did you mean ‘Char16Ptr’?
 ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
                                      ^~~~~~~~
                                      Char16Ptr
/usr/include/unicode/char16ptr.h: In constructor ‘icu_63::ConstChar16Ptr::ConstChar16Ptr(const int*)’:
/usr/include/unicode/char16ptr.h:219:53: error: class ‘icu_63::ConstChar16Ptr’ does not have any field named ‘p_’
 ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
                                                     ^~
/usr/include/unicode/char16ptr.h: In constructor ‘icu_63::ConstChar16Ptr::ConstChar16Ptr(const uint16_t*)’:
/usr/include/unicode/char16ptr.h:221:53: error: class ‘icu_63::ConstChar16Ptr’ does not have any field named ‘p_’
 ConstChar16Ptr::ConstChar16Ptr(const uint16_t *p) : p_(cast(p)) {}
                                                     ^~
/usr/include/unicode/char16ptr.h:221:56: error: ‘cast’ was not declared in this scope
 ConstChar16Ptr::ConstChar16Ptr(const uint16_t *p) : p_(cast(p)) {}
                                                        ^~~~
/usr/include/unicode/char16ptr.h:221:56: note: suggested alternative: ‘class’
 ConstChar16Ptr::ConstChar16Ptr(const uint16_t *p) : p_(cast(p)) {}
                                                        ^~~~
                                                        class
/usr/include/unicode/char16ptr.h: At global scope:
/usr/include/unicode/char16ptr.h:226:43: error: ‘nullptr_t’ in namespace ‘std’ does not name a type
 ConstChar16Ptr::ConstChar16Ptr(const std::nullptr_t p) : p_(p) {}
                                           ^~~~~~~~~
/usr/include/unicode/char16ptr.h: In constructor ‘icu_63::ConstChar16Ptr::ConstChar16Ptr(int)’:
/usr/include/unicode/char16ptr.h:226:58: error: class ‘icu_63::ConstChar16Ptr’ does not have any field named ‘p_’
 ConstChar16Ptr::ConstChar16Ptr(const std::nullptr_t p) : p_(p) {}
                                                          ^~
/usr/include/unicode/char16ptr.h: In destructor ‘icu_63::ConstChar16Ptr::~ConstChar16Ptr()’:
/usr/include/unicode/char16ptr.h:228:5: error: ‘p_’ was not declared in this scope
     U_ALIASING_BARRIER(p_);
     ^~~~~~~~~~~~~~~~~~
^Cmake[2]: *** [src/CMakeFiles/libverlihub.dir/build.make:63: src/CMakeFiles/libverlihub.dir/casyncconn.cpp.o] Interrupt
make[1]: *** [CMakeFiles/Makefile2:129: src/CMakeFiles/libverlihub.dir/all] Interrupt
make: *** [Makefile:152: all] Interrupt
RoLex commented 3 years ago

tell me your os version, gcc version and icu library version please

DooMFeaR commented 3 years ago

I'm running Raspbian 10 on a Raspberry Pi 3 B+. gcc version is 8.3.0 and ICU Library 60. I also had a problem with the libraries not being found and I edited the FindICU.cmake file with the fix from a previous issue post. Thank you.

RoLex commented 3 years ago

yes, i know this problem. it was fixed in dev version of verlihub. so instead of downloading last stable, please clone latest verlihub git repository: https://github.com/Verlihub/verlihub.git , or download file if you dont use git: https://github.com/Verlihub/verlihub/archive/master.zip