Step by step Compiling Instructions for Evothings Studio

Ask, and ye shall receive.
sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 17:40, 10 Jul 2014

Hi Everybody,

I will like to compile Evothings Studio on Windows 7/8 and I need your help.

Is there a step by step list to follow to build it on Windows 7 or 8?

I already have node.js installed and I have downloaded node-webkit

Please guide me on the folder layout for the source code tree, dependences, and path settings, command line to issue etc...

I am aiming to use Evothings Studio with my students so I need to be able to build and use it myself.

Please help me! Many thanks!!

Hear from you guys soon!

God blesses!!!

Best rgards,
Sanyaade

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: Step by step Compiling Instructions for Evothings Studio

Postby micke » 11:46, 23 Jul 2014

Hi,

Just to be clear, Evothings Studio consists of two parts, the Workbench, which is the desktop application, and the Evothings Client app, which is an Android and iOS app.

If I understand you correctly you want to build the Evothings Workbench application, which is kind of complex and not yet documented. The easy solution is to download Evothings Studio from the download page at http://evothings.com/download/ which includes the Evothings Workbench desktop application. You can tweak and modify the application as you wish, because all of the source code is included. node-webkit is also included.

If you want to build the Workbench application yourself, you need to get the following repositories from GitHub, and put them in a common parent folder, next to each other:

https://github.com/evothings/EvoThingsStudio
https://github.com/evothings/EvoThingsDoc
https://github.com/evothings/EvoThingsExamples
https://github.com/evothings/EvoThingsClient
https://github.com/divineprog/HyperReload

You also need to get node-webkit.

The build script is in the EvoThingsStudio project, in file build.rb. There are several settings that you will need to check, there are more details to this than I can cover in this response. You have to look into the source of build.rb to get the details. Also note that build.rb builds the EvoThingsClient app for Android, which required Apache Cordova and the Android SDK to be installed.

My recommendation is to get the pre-built version from the download page and modify that installation according to your needs.

Do you simply want a runnable package, or do you have some special needs that require you to build everything yourself?

Very best regards, Mikael

sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Re: Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 00:43, 25 Jul 2014

@Mikael,

Many thanks for getting back to me on this issue.

Yes! I need to be able to build it and also be able to do a custom build on both Windows and Linux (not on Mac for now)
There are many reason for this:
1.) customisation and adaptation for academic environment as I will like to use it in my teach classes (with Arduino, STM32, Vex Robotic, etc..)

2.)Portable means my students can run Evothings Workbench from flash memory devices.

3.) If I have to use it in my teaching then understanding of the layout, structure and bit deep down is a must otherwise supporting my Students will be a nightmare. May be spend a week or two
examine the workbench during my summer holiday. I may the able to set assignment that could allow student to write about it.

I will setup the development environment, give a go.= and feedback to you.

Once again many thanks for getting in touch and for your support.

God blesses!!!

Best regards,
Sanyaade

sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Re: Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 00:46, 27 Jul 2014

@Mikael,

It me again. I started to compile Evothings on Windows 8, 64bit but I am having a missing directory/folder problems. Ruby interpreter spills out the following errors:

PS C:\wkdir-1\buildDir\evoThings\EvothingsStudio> ruby build.rb
Building EvothingsStudio version 0.7.3 with node-webkit version 0.8.4
buildPlugin.rb:113:in `block (2 levels) in buildGitVersionFile': Missing source directory: ../EvoThingsStudio (Ru
ror)
from buildPlugin.rb:111:in `each'
from buildPlugin.rb:111:in `block in buildGitVersionFile'
from buildPlugin.rb:103:in `open'
from buildPlugin.rb:103:in `buildGitVersionFile'
from buildPlugin.rb:122:in `buildPreProcess'
from buildHyper.rb:219:in `buildDist'
from buildHyper.rb:325:in `<top (required)>'
from build.rb:11:in `load'
from build.rb:11:in `<main>'
PS C:\wkdir-1\buildDir\evoThings\EvothingsStudio>


The missing source directory is what I dont know if I should create it and which folder is it suppose to be?
On which platform do you normally build Evothings and HyperReload? If it is Linux then I will set one up. I am used both Windows and Linux so I dont have using any one that will help me to build and understand it.

My build directory/layout is as shown below:
EvoBuild:-
EvoThingsStudio
EvoThingsDoc
EvoThingsExamples
EvoThingsClient
HyperReload
cordova-ble
node-webkit-bin-0.8.0

FilePath were set, node.js installed, node-webkit folder was created and the binary was extrated into its folder above.

Cordova was downloaded, setup and test working by building an example app.

Please help! Your supported is highly appreciated!

Hear from you soon!

God blesses!!!

Best regards,
Sanyaade

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: Step by step Compiling Instructions for Evothings Studio

Postby micke » 17:05, 27 Jul 2014

Hi Sanyaade,

Can you see the full path of the missing directory in the log?

I build on a Mac, but we also build on Windows. Will check with my colleagues and see if they have some advice.

If building fails for you, it might still be an option to get a pre-built package and modify the package. All the source files are there, there is no binary code generated by the build, except for the build of EvoThingsClient. Do you also need to build custom versions of the Client App? Or is it Evothings Workbench you wish to modify?

Thank you!

Best regards, Mikael

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: Step by step Compiling Instructions for Evothings Studio

Postby Fredrik » 09:50, 28 Jul 2014

The error "Missing source directory: ../EvoThingsStudio" happens when the directory "../EvoThingsStudio/.git/" does not exist.

Sanyaade, does that directory exist for you?

If not, you will need to use "git clone" to get them. This must be done for every source repo.

sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Re: Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 15:37, 30 Jul 2014

@Mikael
Sorry for my late reply. I have been away to Birmingham and just back to London.
Many thanks for your feedback. I am only building the Evothings Workbench. The EvothingsClient will be done late

@Fredrik
Oh! Thanks for stating that I need to use the git CLI to retrieve the code from the github. I was using the downloaded .zip format.
I will try it tonight and get if I need more help.

May be I should build on Linux first as Linux and Mac have a lot in common. Then take that result to Windows. Ok try out Fredrik suggestion on Windows and see how far I can go.

Many thanks to both of you for your support.

God blesses!!!

best regards,
Sanyaade

sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Re: Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 20:48, 30 Jul 2014

@Mikael, @Fredrik
Many thnaks to you and Fredrik

This time the compilation went well up to building each platform binary then it output error message as shown below which points to an invlaid argument when creating the documentation files.

Please see below and advice

BUILD SUCCESSFUL
Total time: 7 seconds
Copying Hyper to dist dir
c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1375:in `initialize': Invalid argument - ../EvothingsStudio_0.7.3/source/do
cumentation/.git/objects/pack/pack-db7ee7faac969bc972d87a07be294177fcb00b2e.idx (Errno::EINVAL)
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1375:in `open'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1375:in `block in copy_file'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1374:in `open'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1374:in `copy_file'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1342:in `copy'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:463:in `block in copy_entry'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1479:in `call'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1479:in `wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1482:in `block in wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `each'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1482:in `block in wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `each'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1482:in `block in wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `each'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1482:in `block in wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `each'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1481:in `wrap_traverse'
from c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:460:in `copy_entry'
from buildHyper.rb:62:in `buildCopyHyperToDistDir'
from buildHyper.rb:220:in `buildDist'
from buildHyper.rb:325:in `<top (required)>'
from build.rb:11:in `load'
from build.rb:11:in `<main>'

showcase@SHOWCASE1 /c/wkdir-1/Evothings/EvoThingsStudio (master)
$

I have the error on line 4 in the above shown below:
c:/COMPILERS/Ruby200/lib/ruby/2.0.0/fileutils.rb:1375:in `initialize': Invalid argument - ../EvothingsStudio_0.7.3/source/do
cumentation/.git/objects/pack/pack-db7ee7faac969bc972d87a07be294177fcb00b2e.idx (Errno::EINVAL)


It almost build just few things ironing out. Many thanks!

Hear from you soon!

God blesses!!!

Best regards,
Sanyaade

sanyaade
Posts: 18
Joined: 14:28, 08 Apr 2014

Re: Step by step Compiling Instructions for Evothings Studio

Postby sanyaade » 17:39, 02 Aug 2014

Hi All,

Just hit another problems this time on Windows 7 32bit

the error shown below has to do with create folder/directory. There is more than enough space on my drive and I was the admin but don't know why this is happening.
Please help!

Please the bold lines 5 to 8 below:
Install complete for org.apache.cordova.ibeacon on android.
cordova -d plugin add https://github.com/don/BluetoothSerial.git
Calling plugman.fetch on plugin "https://github.com/don/BluetoothSerial.git"
Fetching plugin "https://github.com/don/BluetoothSerial.git" via git clone
Fetching plugin via git-clone command: git clone "https://github.com/don/BluetoothSerial.git" "C:\Users\santiko\AppData\Local\Temp\plugman\g
it\1406996906362"
Error: Command failed: fatal: could not create work tree dir 'C:\Users\santiko\AppData\Local\Temp\plugman\git\1406996906362'.: No such file
or directory


at ChildProcess.exithandler (child_process.js:648:15)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
c:/wkdir/EvoThingsClient/utils.rb:11:in `sh': Command failed (RuntimeError)
from workfile.rb:94:in `addPlugin'
from workfile.rb:135:in `addPlugins'
from workfile.rb:375:in `build'
from workfile.rb:389:in `<main>'
buildHyper.rb:279:in `sh': undefined method `error' for main:Object (NoMethodError)
from buildPlugin.rb:132:in `buildEvoThingsClient'
from buildPlugin.rb:126:in `buildPreProcess'
from buildHyper.rb:219:in `buildDist'
from buildHyper.rb:325:in `<top (required)>'
from build.rb:11:in `load'
from build.rb:11:in `<main>'

santiko@SANYAADE-PC /c/wkdir/EvoThingsStudio (master)
$


Help me!

God blesses!!!

Best regards,
Sanyaade

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: Step by step Compiling Instructions for Evothings Studio

Postby Fredrik » 13:07, 06 Aug 2014

I've never seen this error before, and I can't reproduce it either.

Sorry, but I don't think I can be of any help here.


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 18 guests