Eos: [1.2.1] ABI generation with "core_symbol.hpp"

Created on 16 Aug 2018  ยท  7Comments  ยท  Source: EOSIO/eos

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.

  1. build and install eosio.wasmsdk
  2. Add -I${EOSIO_WASMSDK_INSTALL_DIR}/include/ in function generate_abi in file https://github.com/Lucklyric/eos/blob/master/tools/eosiocpp.in

You an define and check your EOSIO_WASMSDK_INSTALL_DIR at the beginning.

Most helpful comment

@86chenjie @Dylan-Phoon
I just did a test:

  1. Remove eosio.wasmsdkinclude path (in may case it is "/usr/local/eosio.wasmsdk/include") from generate_abi
  2. ./eosio_build.sh then sudo ./eosio_install.sh
  3. eosiocpp -g got error.
  4. Add includ path back
  5. ./eosio_build.sh then sudo ./eosio_install.sh
  6. eosiocpp -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.

All 7 comments

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:

  1. Remove eosio.wasmsdkinclude path (in may case it is "/usr/local/eosio.wasmsdk/include") from generate_abi
  2. ./eosio_build.sh then sudo ./eosio_install.sh
  3. eosiocpp -g got error.
  4. Add includ path back
  5. ./eosio_build.sh then sudo ./eosio_install.sh
  6. eosiocpp -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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiazechen picture jiazechen  ยท  3Comments

williamleecn picture williamleecn  ยท  3Comments

bezalel picture bezalel  ยท  3Comments

congnghebitcoin picture congnghebitcoin  ยท  3Comments

hadramidah picture hadramidah  ยท  3Comments