EOSIO / abieos

Binary <> JSON conversion using ABIs. Compatible with languages which can interface to C
MIT License
35 stars 39 forks source link

fatal error: abieos_ripemd160.hpp: No such file or directory #88

Open lucgerrits opened 3 years ago

lucgerrits commented 3 years ago

I got this error on latest branch:

Start: Make abieos
Submodule path 'external/eosjs': checked out '11fbd89d1fe78eb6807b89e1da38b4dc02bfb0f5'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/luc/mounted/My_Files/Luc_Files/Documents/github/EOS.IO-cpp-client/abieos/build
[  9%] Built target test_abieos_reflect
[ 13%] Building CXX object CMakeFiles/abieos.dir/src/abi.cpp.o
In file included from /home/luc/mounted/My_Files/Luc_Files/Documents/github/EOS.IO-cpp-client/abieos/src/abieos.hpp:39,
                 from /home/luc/mounted/My_Files/Luc_Files/Documents/github/EOS.IO-cpp-client/abieos/src/abi.cpp:2:
/home/luc/mounted/My_Files/Luc_Files/Documents/github/EOS.IO-cpp-client/abieos/include/eosio/abieos_numeric.hpp:12:10: fatal error: abieos_ripemd160.hpp: No such file or directory
 #include "abieos_ripemd160.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/abieos.dir/build.make:83: CMakeFiles/abieos.dir/src/abi.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:234: CMakeFiles/abieos.dir/all] Error 2
make: *** [Makefile:115: all] Error 2
Done: Make abieos

My fix is to change path of file abieos/include/eosio/abieos_numeric.hpp:

diff --git a/include/eosio/abieos_numeric.hpp b/include/eosio/abieos_numeric.hpp
index acc8724..f63fea9 100644
--- a/include/eosio/abieos_numeric.hpp
+++ b/include/eosio/abieos_numeric.hpp
@@ -9,7 +9,7 @@
 #include <string_view>
 #include <eosio/from_json.hpp>

-#include "abieos_ripemd160.hpp"
+#include "../src/abieos_ripemd160.hpp"

 #define ABIEOS_NODISCARD [[nodiscard]]
ifunsu commented 3 years ago

I copy abieos_ripemd160.hpp to the path where abieos_numeric.hpp is. But another error raise.

kryton commented 3 years ago

PR #89 (which was just committed) should resolve this on the 'master' branch.