eosiocpp -g XXXX.abi XXXX.hpp results fatal error: 'eosiolib/core_symbol.hpp' file not found.
Becauseeosio.wasmsdk does not support abi-generation yet, if you also got above issue, there is one trick I am using seems to be working for me.
eosio.wasmsdk -I${EOSIO_WASMSDK_INSTALL_DIR}/include/ in function generate_abi in file https://github.com/Lucklyric/eos/blob/master/tools/eosiocpp.inYou an define and check your EOSIO_WASMSDK_INSTALL_DIR at the beginning.
i use latest docker 1.2.1, have the same problem.
do you do self build ? which tag or branch?
can you write more detail?i'm struggling to deploy contracts with v1.2.1.
Still getting the same error after following @Lucklyric
@86chenjie @Dylan-Phoon
I just did a test:
eosio.wasmsdkinclude path (in may case it is "/usr/local/eosio.wasmsdk/include") from generate_abi./eosio_build.sh then sudo ./eosio_install.sheosiocpp -g got error. ./eosio_build.sh then sudo ./eosio_install.sheosiocpp -g back to work. You can check the file diff here commit
Don't forget to rebuild and reinstall the eos after the modification.
Hope it will help.
@Lucklyric thank you!! Worked like a charm for me.
MacBook Pro (Retina, 13-inch, Mid 2014)
macOS High Sierra 10.13.6 (17G65)
I am getting the same error ,I am using ubuntu 16.04 and don't find any eosio.wasmsdk file in my system , what should i do ?
@nirdesh365 , you have to clone it from a separate repository at eosio.wasmsdk. Follow its readme to build and install it then you can try the above method. Good luck.
Most helpful comment
@86chenjie @Dylan-Phoon
I just did a test:
eosio.wasmsdkinclude path (in may case it is "/usr/local/eosio.wasmsdk/include") fromgenerate_abi./eosio_build.shthen sudo./eosio_install.sheosiocpp -ggot error../eosio_build.shthen sudo./eosio_install.sheosiocpp -gback to work.You can check the file diff here commit
Don't forget to rebuild and reinstall the eos after the modification.
Hope it will help.