eos icon indicating copy to clipboard operation
eos copied to clipboard

MacOS Sierra 10.12.6 .wast files not found / .cpp files should be compile-able to .wast files separately

Open comtechnet opened this issue 8 years ago • 6 comments

Please make the .cpp files and compile instructions available and PUBLISH the procedure on how to compile them correctly with the correct libraries and resources on MacOS Sierra 10.12.6.

There are multiple folks running into this problem - including me. I have run both the automatic MacOS scripts and the manual method and STILL have the same issue - .wast files not found - they did NOT get "made" on my MacOS computer, even with PULL request done just a few hours ago.

PLEASE FIX.

comtechnet avatar Dec 06 '17 02:12 comtechnet

image

This screenshot says EOSLIB env variable not defined

Why is this NOT in the setup documentation - I'm not a MacOS expert - I don't know where this goes, it sound so fundamental - WHAT AM I MISSING HERE?

comtechnet avatar Dec 06 '17 03:12 comtechnet

screen shot 2017-12-05 at 10 17 11 pm

I had 2 fatal errors in the chain_test

I'm trying to compile the sample contracts (currency) myself - and I can NOT figure it out.

comtechnet avatar Dec 06 '17 03:12 comtechnet

image

So - I've tried to compile the .cpp into a .wast file myself for the currency sample app and get the error above. What am I missing? Anyone?

comtechnet avatar Dec 06 '17 03:12 comtechnet

input.cc:2:13: fatal error: 'eoslib/types.h' file not found #include <eoslib/types.h> ^~~~~~~~~~~~~~~~

I've just REDONE the entire EOS setup after updating XCODE on my iMac MacOS 10.12.6. Again - the "build" is not compiling the .cpp sample contract files into .wast files. The manual ./eoscpp (compile) fails.

So - the bottomline for me: THE STANDARD MacOS 10.12.6 instructions DO NOT WORK!

Does anyone have any advise here - has anyone else had this problem? Does anyone have suggestions on how to proceed from here? I'll try the Ubuntu setup next I guess unless someone has some advise/suggestions

comtechnet avatar Dec 08 '17 02:12 comtechnet

image

Here is the entire screenshot of both errors - the original ./eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi

and also the manual compile to try to generate the .wast files from the source .cpp files

comtechnet avatar Dec 08 '17 03:12 comtechnet

Classic,

My Xcode on my iMac (MacOS Sierra 10.12.6) needed to be updated. I was using TeamViewer (TV) to remote into a "test" iMac that I reserved to use for this project. When using TV, and reducing the screen resolution to 1920 x 1080 so that I could see it on my MacBook Pro (from which I was remote-ing in "from"), the remote Dock was not visible with the "Automatically hide and show the dock" setting. I had "updated" Xcode using the xcode-select --install step and had moved on thru the rest of the install steps. So for several days after having success with the initial ./eosd setup etc, I had assumed that the pre-req's were completed, because the ./eosd was running configured as my single node-test net, etc. But ./eosc was giving me errors.

Xcode had partially installed and was beacon-ing from the remote's Dock - which was hidden using TV remotely. Since the Dock was hidden from view - I did not see it.

Hard lesson learned - once again humbled. Yet, ironically, as with all these types of incidents, I learned much about EOS and the command line interface, etc.

comtechnet avatar Dec 09 '17 13:12 comtechnet