|
Damien Lacoste Hi,
it seems like the CMakeLists is not really up to date…
I tried to fix it, you can try this branch: https://gitlab.com/tango-controls/hdbpp/hdbpp-mysql-project/-/tree/fix_cmake_dependencies_version?ref_type=heads
it works on my machine…
Cheers,
Damien Works perfect. Now, however, I'm getting more compilation errors after using the command: make project
[ 4%] Building CXX object _deps/libhdbpp_mysql-build/CMakeFiles/libhdbpp_mysql_shared_library.dir/src/LibHdb++MySQL.cpp.o /home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In function ‘std::string hdbpp::to_json_value(T)’: /home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:87:57: error: ‘numeric_limits’ is not a member of ‘std’ 87 | ss << std::scientific << std::setprecision(std::numeric_limits<T>::digits10+2) << val; | ^~~~~~~~~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:87:73: error: expected primary-expression before ‘>’ token 87 | ss << std::scientific << std::setprecision(std::numeric_limits<T>::digits10+2) << val; | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:87:76: error: ‘::digits10’ has not been declared 87 | ss << std::scientific << std::setprecision(std::numeric_limits<T>::digits10+2) << val; | ^~~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: At global scope:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:105:149: error: ‘my_bool’ has not been declared
105 | bind, enum_field_types mysql_value_type , const T &value_data, unsigned long &value_data_len, my_bool &is_null, bool is_unsigned) | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:114:144: error: ‘my_bool’ has not been declared 114 | enum_field_types mysql_value_type , const string &value_data, unsigned long &value_data_len, my_bool &is_null, bool is_unsigned) | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In function ‘void hdbpp::bind_value(MYSQL_BIND&, enum_field_types, const T&, long unsigned int&, int&, bool) [with T = std::__cxx11::basic_string<char>; MYSQL_BIND = MYSQL_BIND]’:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:118:27: error: cannot convert ‘int*’ to ‘bool*’ in assignment 118 | log_bind.is_null= &is_null; | ^~~~~~~~ | | | int*
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In constructor ‘hdbpp::HdbPPMySQL::HdbPPMySQL(const string&, const std::vector<std::__cxx11::basic_string<char> >&)’:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:276:9: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 276 | my_bool my_auto_reconnect=1; | ^~~~~~~ | bool
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:277:51: error: ‘my_auto_reconnect’ was not declared in this scope 277 | if(mysql_options(dbp,MYSQL_OPT_RECONNECT,&my_auto_reconnect) !=0) | ^~~~~~~~~~~~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In member function ‘void hdbpp::HdbPPMySQL::store_scalar(const std::vector<hdbpp::event_values_param<Type> >&, int, int, const string&, enum_field_types, bool)’:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1731:25: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 1731 | my_bool is_null[3*insert_size]; /* value nullability */ //value_r, value_w, error_desc_id | ^~~~~~~ | bool
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1732:32: error: expected ‘;’ before ‘is_unsigned’ 1732 | my_bool is_unsigned=_is_unsigned; /* value unsigned */ | ^ ~~~~~~~~~~~ | ;
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1752:49: error: ‘is_null’ was not declared in this scope 1752 | is_null[3*chunk_idx+0]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1757:49: error: ‘is_null’ was not declared in this scope 1757 | is_null[3*chunk_idx+0]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1763:41: error: ‘is_null’ was not declared in this scope 1763 | is_null[3*chunk_idx+0]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1771:49: error: ‘is_null’ was not declared in this scope 1771 | is_null[3*chunk_idx+1]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1776:49: error: ‘is_null’ was not declared in this scope 1776 | is_null[3*chunk_idx+1]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1782:41: error: ‘is_null’ was not declared in this scope 1782 | is_null[3*chunk_idx+1]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1798:49: error: ‘is_null’ was not declared in this scope 1798 | is_null[3*chunk_idx+2]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1800:49: error: ‘is_null’ was not declared in this scope 1800 | is_null[3*chunk_idx+2]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1837:76: error: ‘is_null’ was not declared in this scope 1837 | plog_bind[plog_bind_ind].is_null= &is_null[3*chunk_idx+2]; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1843:142: error: ‘is_null’ was not declared in this scope 1843 | _bind[plog_bind_ind],mysql_value_type,value_data[2*chunk_idx+0],value_data_len[2*chunk_idx+0],is_null[3*chunk_idx+0],is_unsigned); | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1843:176: error: missing template arguments before ‘)’ token 1843 | l_value_type,value_data[2*chunk_idx+0],value_data_len[2*chunk_idx+0],is_null[3*chunk_idx+0],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:1846:176: error: missing template arguments before ‘)’ token 1846 | l_value_type,value_data[2*chunk_idx+1],value_data_len[2*chunk_idx+1],is_null[3*chunk_idx+1],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In member function ‘void hdbpp::HdbPPMySQL::store_array(const string&, const std::vector<T>&, const std::vector<T>&, int, const string&, int, int, Tango::AttributeDimension, Tango::AttributeDimension, double, double, const string&, enum_field_types, bool, bool)’:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2027:25: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 2027 | my_bool is_null[3*insert_size]; /* value nullability */ //value_r, value_w, error_desc_id | ^~~~~~~ | bool
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2028:32: error: expected ‘;’ before ‘is_unsigned’ 2028 | my_bool is_unsigned=_is_unsigned; /* value unsigned */ | ^ ~~~~~~~~~~~ | ;
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2045:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2045 | is_null[3*chunk_idx+0]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2050:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2050 | is_null[3*chunk_idx+0]=0; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2056:41: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2056 | is_null[3*chunk_idx+0]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2064:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2064 | is_null[3*chunk_idx+1]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2069:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2069 | is_null[3*chunk_idx+1]=0; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2075:41: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2075 | is_null[3*chunk_idx+1]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2086:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2086 | is_null[3*chunk_idx+2]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2088:49: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2088 | is_null[3*chunk_idx+2]=0; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2138:76: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2138 | plog_bind[plog_bind_ind].is_null= &is_null[3*chunk_idx+2]; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2162:142: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2162 | _bind[plog_bind_ind],mysql_value_type,value_data[2*chunk_idx+0],value_data_len[2*chunk_idx+0],is_null[3*chunk_idx+0],is_unsigned); | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2162:176: error: missing template arguments before ‘)’ token 2162 | l_value_type,value_data[2*chunk_idx+0],value_data_len[2*chunk_idx+0],is_null[3*chunk_idx+0],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2179:184: error: missing template arguments before ‘)’ token 2179 | l_value_type,value_data[2*chunk_idx+1],value_data_len[2*chunk_idx+1],is_null[3*chunk_idx+1],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2188:33: error: ‘is_null’ was not declared in this scope; did you mean ‘isNull’? 2188 | is_null[3*idx+0]=1; | ^~~~~~~ | isNull
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2274:158: error: missing template arguments before ‘)’ token 2274 | log_bind_ind],mysql_value_type,value_data[2*idx+0],value_data_len[2*idx+0],is_null[3*idx+0],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2291:166: error: missing template arguments before ‘)’ token 2291 | log_bind_ind],mysql_value_type,value_data[2*idx+1],value_data_len[2*idx+1],is_null[3*idx+1],is_unsigned); | ^
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp: In member function ‘void hdbpp::HdbPPMySQL::store_array_json(const std::vector<hdbpp::event_values_param<Type> >&, int, int, const string&, enum_field_types, bool)’:
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2450:25: error: ‘my_bool’ was not declared in this scope; did you mean ‘bool’? 2450 | my_bool is_null[3*insert_size]; /* value nullability */ //value_r, value_w, error_desc_id | ^~~~~~~ | bool
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2471:57: error: ‘is_null’ was not declared in this scope 2471 | is_null[3*chunk_idx+0]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2488:49: error: ‘is_null’ was not declared in this scope 2488 | is_null[3*chunk_idx+0]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2495:57: error: ‘is_null’ was not declared in this scope 2495 | is_null[3*chunk_idx+1]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2512:49: error: ‘is_null’ was not declared in this scope 2512 | is_null[3*chunk_idx+1]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2540:49: error: ‘is_null’ was not declared in this scope 2540 | is_null[3*chunk_idx+2]=1; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2542:49: error: ‘is_null’ was not declared in this scope 2542 | is_null[3*chunk_idx+2]=0; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2588:76: error: ‘is_null’ was not declared in this scope 2588 | plog_bind[plog_bind_ind].is_null= &is_null[3*chunk_idx+2]; | ^~~~~~~
/home/carolinii/Projekty/hdbpp-mysql-project/external/libhdbpp-mysql/src/LibHdb++MySQL.cpp:2608:68: error: ‘is_null’ was not declared in this scope 2608 | plog_bind[plog_bind_ind].is_null= &is_null[3*chunk_idx+0]; | ^~~~~~~
make[3]: *** [_deps/libhdbpp_mysql-build/CMakeFiles/libhdbpp_mysql_shared_library.dir/build.make:79: _deps/libhdbpp_mysql-build/CMakeFiles/libhdbpp_mysql_shared_library.dir/src/LibHdb++MySQL.cpp.o] Błąd 1 make[2]: *** [CMakeFiles/Makefile2:334: _deps/libhdbpp_mysql-build/CMakeFiles/libhdbpp_mysql_shared_library.dir/all] Błąd 2 make[1]: *** [CMakeFiles/Makefile2:211: CMakeFiles/project.dir/rule] Błąd 2 make: *** [Makefile:169: project] Błąd 2
|