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/HEAD/tree/trunk/java_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
[info] How to compile the dev console
- AndreyB
- Site Admin
- Posts: 14333
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
How to compile the dev console
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: How to compile the dev console
neat! seams there is InelliJ for Mac!
don't know tho why would I need it
don't know tho why would I need it
- AndreyB
- Site Admin
- Posts: 14333
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: How to compile the dev console
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.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- Tambralinga
- donator
- Posts: 174
- Joined: Wed Jun 18, 2014 8:36 am
- Location: Bangkok, Thailand
Re: How to compile the dev console
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.
- Ignore Externals update.
then
- Test compiling.
* 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
- 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.
- Ignore Externals update.
then
- Test compiling.
* 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
+66 8 5357 5159
- Tambralinga
- donator
- Posts: 174
- Joined: Wed Jun 18, 2014 8:36 am
- Location: Bangkok, Thailand
Re: How to compile the dev console
puff wrote:neat! seams there is InelliJ for Mac!
don't know tho why would I need it
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
+66 8 5357 5159
Re: How to compile the dev console
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:
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:
FIY:
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...
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)
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
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)
Re: How to compile the dev console
I was having trouble compiling the configuration parser. I got:
This is with openjkd javac 11.0.11 on Ubuntu 18.04. According to the internets, the class layout changed with 9, and I need to downgrade to 8: https://github.com/AuthorizeNet/sdk-java/issues/175
Once I installed openjdk-8, I was able to compile:
Code: Select all
[javac] /home/scott/src/rusefi/java_console/inifile/src/main/java/com/rusefi/tune/xml/Constant.java:3: error: package javax.xml.bind.annotation does not exist
[javac] import javax.xml.bind.annotation.XmlAttribute;
[javac] ^
...
Once I installed openjdk-8, I was able to compile:
Code: Select all
sudo apt install openjdk-8-jdk-headless
sudo update-alternatives --config javac
sudo update-alternatives --config java
- AndreyB
- Site Admin
- Posts: 14333
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: How to compile the dev console
This is related to https://github.com/rusefi/rusefi/issues/1526 and https://github.com/rusefi/rusefi/issues/3128 help is needed on both
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute