[info] How to compile the dev console

It's all about the code!
Post Reply
User avatar
russian
Site Admin
Posts: 9779
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

How to compile the dev console

Post by russian » Tue Oct 28, 2014 1:38 pm

Click here for info on how to compile the firmware

The dev console is written in Java. The source code comes with a IntelliJ IDEA project and ANT build script.

1) You can download Community free open-source edition of IntelliJ IDEA from https://www.jetbrains.com/idea/download/

2) Install it :)

3) Download & install Java JDK (Java Developer Kit. The regular JRE - java runtime environment - would not be enough) version 7 or later

4) Start IDEA and point Open Project at your local folder where you've checked out http://sourceforge.net/p/rusefi/code/HE ... va_console

5) If you get a yellow 'Project SDK is not defined' warning, click on 'Setup SDK' and point at your JDK installation from step #3
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

puff
contributor
contributor
Posts: 2738
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: How to compile the dev console

Post by puff » Tue Oct 28, 2014 1:56 pm

neat! seams there is InelliJ for Mac!

don't know tho why would I need it :D

User avatar
russian
Site Admin
Posts: 9779
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: How to compile the dev console

Post by russian » Tue Oct 28, 2014 2:14 pm

Image

Here you can see that file names are brown, that means that SVN integration is not set properly. File names should be black for unmodified files under SVN control.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
Tambralinga
donator
donator
Posts: 174
Joined: Wed Jun 18, 2014 8:36 am
Location: Bangkok, Thailand

Re: How to compile the dev console

Post by Tambralinga » Tue Oct 28, 2014 3:35 pm

Additional for a beginners guide?
- After installed the IntellJ, We would like to import the project in the subversion like this link http://sourceforge.net/p/rusefi/code/HEAD/tree/trunk/

- Imported the source project... below.
Image

- Ignore Externals update.
Image

then
Image

- Test compiling.
Image

* It is on the Windows 8.1 64bit.
Have a nice project.

For more information please asking for RusEFI.com.
Thanks for RusEFI.com.

Mr.X
;-x
Skype : shiva-p
+66 8 5357 5159

User avatar
Tambralinga
donator
donator
Posts: 174
Joined: Wed Jun 18, 2014 8:36 am
Location: Bangkok, Thailand

Re: How to compile the dev console

Post by Tambralinga » Tue Oct 28, 2014 3:37 pm

puff wrote:neat! seams there is InelliJ for Mac!

don't know tho why would I need it :D

How can I run on Mac osx Lion (7.5), Could you please me how it is step ??
Thanks
;-x
Skype : shiva-p
+66 8 5357 5159

puff
contributor
contributor
Posts: 2738
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: How to compile the dev console

Post by puff » Tue Oct 28, 2014 6:29 pm

okay
I haven't try compiling it on OSX yet (no need so far), but I managed to run the dev console (although it's a bit tricky - I also have 7.5 here)
The tricky part is according to russian, it needs ire 1.7, while my mac says:

Code: Select all

java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Generally speaking, mac os x tracks versions itself, and for some reason it doesn't want to upgrade to 10.7.
So I went to oracle site, downloaded and intalled the parallel version of java runtime environment (if i am not mistaken), and to launch the dev console I am using the following .sh script:

Code: Select all

#!/bin/bash
cd /path/to/java_console_binary
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar rusefi_console.jar /dev/tty.usbmodem261 
FIY:

Code: Select all

 /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
now, when I launch the dev console I start getting some error messages (just on some tabs), but after a while they disappear, so it's probably okay...

Post Reply