How to run OpenLogViewer from source

OpenLogViewer is a cross-platform data log viewing application originally written by Gufi and new developed and maintained by Ben and Fred. Discuss all things OLV here!
Post Reply
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

How to run OpenLogViewer from source

Post by Fred »

You need to have a JDK installed. If not, get the sun JDK from here:

http://www.oracle.com/technetwork/java/ ... index.html

Note, OpenJDK may work, but is not supported here. If you have troubles, report it to them.

Install Maven3:

http://maven.apache.org/download.html

Clone the source with git:

https://github.com/FreeEMS/OpenLogViewer - Tested commits
https://github.com/fredcooke/OpenLogViewer - Latest back end stuff from me
https://github.com/BenFenner/OpenLogViewer - Latest UI stuff from Ben

You can figure out who has the latest bleeding edge code from this:

https://github.com/gufi/OpenLogViewer/network

NOTE: Downloading a zip/tarball of source will NOT work, the build will fail. You MUST use git to clone a repo.

Enter the source directory in a console and type:

Code: Select all

mvn -DskipTests
Easy.
Last edited by Fred on Wed Nov 14, 2012 3:24 pm, edited 3 times in total.
Reason: Remove ant for #511
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
dandruczyk
LQFP112 - Up with the play
Posts: 100
Joined: Sun Apr 06, 2008 6:30 pm

Re: How to run DataReader from source

Post by dandruczyk »

doesn't work for me:

dave@shrapnel:~/git/DataReader$ ant run
Buildfile: build.xml

BUILD FAILED
/home/dave/git/DataReader/build.xml:14: Cannot find nbproject/profiler-build-impl.xml imported from /home/dave/git/DataReader/build.xml

Total time: 0 seconds
dave@shrapnel:~/git/DataReader$
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: How to run DataReader from source

Post by Fred »

Nor me, but he's fixing it now :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: How to run DataReader from source

Post by Fred »

This app is working and working pretty well as of commit hash 92f70870748ca215c0bdd055ed39cc58bb4ba1b1

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
gearhead
LQFP112 - Up with the play
Posts: 120
Joined: Sun Feb 03, 2008 9:30 pm
Location: Chicago, USA

Re: How to run DataReader from source

Post by gearhead »

Ok, does not run for me either. If I install maven2, it does, but not just ant.

Code: Select all

Buildfile: /home/kgrider/Applications/OLV/build.xml

test-offline:

get-deps:
      [get] Getting: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
      [get] To: /home/kgrider/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

compile:
    [javac] /home/kgrider/Applications/OLV/maven-build.xml:73: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

compile-tests:
    [javac] /home/kgrider/Applications/OLV/maven-build.xml:101: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

test-junit-present:

test-junit-status:

junit-missing:
     [echo] =================================== WARNING ===================================
     [echo]  JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.
     [echo] ===============================================================================

test:

package:

BUILD SUCCESSFUL
Total time: 0 seconds
at this point I have the jar file, but it will not run:

Code: Select all

~/Applications/OLV/target$ java -jar OpenLogViewer-0.0.1-SNAPSHOT.jar 
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
If I install the huge pack called maven, it will compile and run, but I want to keep this lean. What do I need to run this?

Gearhead
gearhead
LQFP112 - Up with the play
Posts: 120
Joined: Sun Feb 03, 2008 9:30 pm
Location: Chicago, USA

Re: How to run DataReader from source

Post by gearhead »

Ok, If I install the huge package that is maven2, I can get it to run. Would like to know how to run it without all 200M of Maven2...

Who is developing this, currently?

It would be nice if it had values on the axes (X and Y) and a legend so that the individual traces could be followed. Also a bit more intuitive as to how to change the color of a trace.

Gearhead
Attachments
OLV.png
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: How to run DataReader from source

Post by Fred »

Gearhead, because you're running a development version, you're using development tools. Maven3 (2 worked? cool, but you should be using 3...) is THE dev tool for Java stuff, ant used to work, gufi broke it. It was an autogenerated build script anyway, and the last generation was not a functional one.

Gufi and I are working on this, intermittently. He put in some UI commits last night, I've not tried them yet, could be good, could be bad.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: How to run OpenLogViewer from source

Post by Fred »

BUMP! I updated the first post :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15405
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: How to run OpenLogViewer from source

Post by Fred »

Bump again, I updated the first post again, to remove ant! Now totally unsupported. Use a release version or maven 3.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply