EOS Editor Discussion

Welcome to the thread about EOS editor. Here you can discuss everything about the choice of editors or IDE:s and potential problems that you might stumble upon.

I donā€™t see the cmake options below the video

1 Like

fwiw I got netbeans working, I had to select the build folder instead of eos, it started the build automatically, when I restarted netbeans, the build project showed the eos folder virtualized, and all the code completion and everything worked without any special configuration, the only thing it only shows the source files, but if you set a ā€œfavoriteā€ to the eos folder you can access the abi, wast and cmake files

1 Like

Thanks, added them now :slight_smile:

1 Like

I get the following error when building in clion using your same arguments you provided for cmake and checked paths. eos_build.sh works find btw.

eos/contracts/asserter/ā€¦/eosiolib/multi_index.hpp:105:45: error: use of undeclared identifier ā€˜uint128_tā€™
MAKE_TRAITS_FOR_ARITHMETIC_SECONDARY_KEY(uint128_t)
^
17 errors generated.
make[3]: *** [contracts/asserter/CMakeFiles/asserter.tmp.dir/asserter.cpp.o] Error 1
make[2]: *** [contracts/asserter/CMakeFiles/asserter.tmp.dir/all] Error 2
make[1]: *** [contracts/asserter/CMakeFiles/asserter.tmp.dir/rule] Error 2
make: *** [asserter.tmp] Error 2

Ok Solved I forgot to select build all!

Hi everyone.
I get some errors using CLION and I donā€™t know what to do next:

/home/christian/Dokumente/CLION/clion-2018.1.5/bin/cmake/bin/cmake -DCMAKE_BUILD_TYPE= -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DWASM_ROOT=/usr/local/wasm -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DBUILD_MONGO_DB_PLUGIN=true -DENABLE_COVERAGE_TESTING=false -DBUILD_DOXYGEN=false -G "CodeBlocks - Unix Makefiles" /home/christian/eos
-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:88 (FIND_PACKAGE)


-- Configuring Eos on Linux
-- binaryen building with -std=c++11
-- binaryen building for platform x86-64
-- binaryen building with -Wall
-- binaryen building with -Werror
-- binaryen building with -Wextra
-- binaryen building with -Wno-unused-parameter
-- binaryen building with -fno-omit-frame-pointer
-- binaryen building with -fPIC
-- binaryen building with -O2
-- binaryen building with -UNDEBUG
-- Using 'SYS' as CORE symbol name
-- Using 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV' as public key for eosio account
-- Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK) 
CMake Error at CMakeModules/wasm.cmake:8 (message):
  No WASM compiler cound be found (make sure WASM_ROOT is set)
Call Stack (most recent call first):
  CMakeLists.txt:201 (include)


-- Configuring incomplete, errors occurred!
See also "/home/christian/eos/cmake-build-default/CMakeFiles/CMakeOutput.log".
See also "/home/christian/eos/cmake-build-default/CMakeFiles/CMakeError.log".
1 Like

Hi @Christian,

you need to put -DBOOST_ROOT="path to your boost directory" in your CMake options. For me it was
-DBOOST_ROOT=/home/nico/opt/boost. That should work let me know if you have any further problems.

2 Likes

Thank you @nflaig. This has already solved one error (btw for me the path was /home/christian/opt/boost_1_67_0). Now I still have to find the location of the WASM compiler. Where else can it be? How can I figure it out?

To find a directory for example ā€œexampledocsā€ you can use:

find / -xdev 2>/dev/null -name ā€œexampledocsā€

Iā€™m guessing you are using Windows Subsystem for Linux and you are having similiar issues I had. I didnā€™t get the version dawnv4.2.0 to work so I tried the latest release and it worked. You can try around with this version maybe you get it to work by configuring the CMake options. These are my Cmake Options that worked:

-G
Ninja
-DCMAKE_CXX_COMPILER=clang++
-DBOOST_ROOT=/home/nico/opt/boost
-DBUILD_MONGO_DB_PLUGIN=true
-DENABLE_COVERAGE_TESTING=false
-DBUILD_DOXYGEN=false

These cmake options seem to work for me, thank you :slight_smile: .

1 Like

Has anyone used Codeblocks?

Hi guys, Iā€™ve CLion installed and /eos loaded as a project but my ā€˜buildā€™ button up the top is greyed out? Any idea what I might have done wrong? Thanks in advance for any help.

Have you added the CMAKE file?

Yes, I was able to update CMAKE to v3.12 (I am running on Ubuntu). I also edited the CMAKE options to suit my environment. CLion found Cmake and the c++ compiler on itā€™s own:

-G Ninja -DWASM_ROOT=~/opt/wasm -DOPENSSL_ROOT_DIR=/usr/bin/openssl bin-DBUILD_MONGO_DB_PLUGIN=true -DENABLE_COVERAGE_TESTING=false -DBUILD_DOXYGEN=false

So now Iā€™m just trying to work through build errors.

1 Like

Is there a free alternative to CLion? Using VS Code would be nice. Anyone?

You can probably use VS Code and then just compile the contract with eosiocpp tool in the command line.

how to find that directory?

i got that error, adding boost didnot help

CMake Error at CMakeModules/wasm.cmake:8 (message):
No WASM compiler cound be found (make sure WASM_ROOT is set)
Call Stack (most recent call first):
CMakeLists.txt:209 (include)

ā€“ Configuring incomplete, errors occurred!
See also ā€œ/Users/user/Documents/eos/cmake-build-debug/CMakeFiles/CMakeOutput.logā€.

I got that error: CMake Error at CMakeModules/wasm.cmake:8 (message):
No WASM compiler cound be found (make sure WASM_ROOT is set)
Call Stack (most recent call first):
CMakeLists.txt:209 (include)

I added boost folder as guys suggested but it didn;t work

To find a directory you can use

find / -xdev 2>/dev/null -name ā€œdirectory nameā€