Trouble compiling BoofAndroidDemo (not finding boofcv.android.gui.VideoDisplayActivity)

363 views
Skip to first unread message

Omkar Rath

unread,
Feb 16, 2014, 7:40:31 PM2/16/14
to boo...@googlegroups.com
There are a couple of things I have tried that were NOT suggested. Could be related.

So -

1. git clone https://github.com/lessthanoptimal/BoofAndroidDemo

2. Imported as "Existing Android Code into Workspace". Using Eclipse Juno on Mac OS X (Maverick)

3. Copied libraries BoofCV/BoofCVAndroid/DDogleg/EJML/GeoRegression[.jar] from the VideoActivity project (did this to eradicate a bunch of other reference errors).

4. Plus this error is still reported on the "Problems" tab:
Description    Resource    Path    Location    Type
The project was not built since its build path is incomplete. Cannot find the class file for georegression.struct.shapes.EllipseRotated_F64. Fix the build path then try building this project    DemoMain        Unknown    Java Problem
The type georegression.struct.shapes.EllipseRotated_F64 cannot be resolved. It is indirectly referenced from required .class files    ShapeFittingActivity.java    /DemoMain/src/org/boofcv/android    line 1    Java Problem

5. Does not look like JDK 6 or 7 as of yet. Nor does it look like based on this to move to IntelliJ.

Thanks.

Peter A

unread,
Feb 16, 2014, 10:09:34 PM2/16/14
to boofcv
Code from the android demonstration got migrated over to the core boofcv code, which is what's causing those compilation problems.  Unfortunately you will need to checkout and manually compile 4 libraries to get it running.  EJML, DDogleg, GeoRegression, and BoofCV.   Still need to write a script to create nightly builds of all those libraries which can be downloaded...

- Peter


--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
"Now, now my good man, this is no time for making enemies."    — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.

Omkar Rath

unread,
Feb 18, 2014, 11:33:53 PM2/18/14
to boo...@googlegroups.com
Peter,

On downloading BoofCV (git clone https://github.com/lessthanoptimal/BoofCV) and running 'ant' in the "main" directory I get 2 compile errors viz.

 -     [javac] /Users/omkarrath/BoofCV/main/ip/src/boofcv/factory/transform/wavelet/FactoryWaveletDaub.java:29: error: package org.ejml.interfaces.linsol does not exist
    [javac] import org.ejml.interfaces.linsol.LinearSolver;
    [javac]                                  ^

-     [javac] /Users/omkarrath/BoofCV/main/ip/src/boofcv/factory/transform/wavelet/FactoryWaveletDaub.java:207: error: cannot find symbol
    [javac]             LinearSolver<DenseMatrix64F> solver = LinearSolverFactory.linear(N);
    [javac]             ^

So whilst there was an EJML.jar in the BoofCV source already, I got the EJML source, compiled it and replaced the one in BoofCV but alas to no avail.

TIA,

Omkar

Peter A

unread,
Feb 19, 2014, 12:29:25 AM2/19/14
to boofcv
I just checked any everything that's committed is up to date.  If you are on linux you can essentially cut and paste the directions here:

http://boofcv.org/index.php?title=Download:BoofCV#Bleeding_Edge

That's what I just did and everything appears to be working.  Before you try that, make sure you have the absolute latest source code.  There have been some recent commits.

On a related note, using bamboo was investigated yesterday for use in continuous integration.  Unfortunately the stand alone application can't be used on the hosting server since it is too resource intensive.  Atlasian does offer a version which they host, but it requires you to use amazon cloud service, which costs money.  Looking for an alternative now.  Worst case a script could be written that just checks to see if everything compiles.

- Peter

Omkar Rath

unread,
Feb 22, 2014, 1:44:57 AM2/22/14
to boo...@googlegroups.com
Peter,

Thanks. Built the libraries (suggested in the URL below) from scratch, as also the BoofCVAndroid.jar (and so not using the one that came with an older Android projec).

Close but no cigar.

Down to last 7 errors (below) :


Description    Resource    Path    Location    Type
The method erode8(ImageUInt8, int, ImageUInt8) in the type BinaryImageOps is not applicable for the arguments (ImageUInt8, ImageUInt8)    BinaryDisplayActivity.java    /DemoMain/src/org/boofcv/android    line 120    Java Problem
The method erode4(ImageUInt8, int, ImageUInt8) in the type BinaryImageOps is not applicable for the arguments (ImageUInt8, ImageUInt8)    BinaryDisplayActivity.java    /DemoMain/src/org/boofcv/android    line 116    Java Problem
The method dilate8(ImageUInt8, int, ImageUInt8) in the type BinaryImageOps is not applicable for the arguments (ImageUInt8, ImageUInt8)    BinaryDisplayActivity.java    /DemoMain/src/org/boofcv/android    line 112    Java Problem
The constructor SfotConfig(Class<ImageUInt8>) is undefined    ObjectTrackerActivity.java    /DemoMain/src/org/boofcv/android    line 111    Java Problem
The method dilate4(ImageUInt8, int, ImageUInt8) in the type BinaryImageOps is not applicable for the arguments (ImageUInt8, ImageUInt8)    BinaryDisplayActivity.java    /DemoMain/src/org/boofcv/android    line 108    Java Problem
The method sparseFlow(SfotConfig, Class<T>, Class<D>) in the type FactoryTrackerObjectQuad is not applicable for the arguments (SfotConfig)    ObjectTrackerActivity.java    /DemoMain/src/org/boofcv/android    line 114    Java Problem
The constructor LinearContourLabelChang2004(int) is undefined    ShapeFittingActivity.java    /DemoMain/src/org/boofcv/android    line 99    Java Problem

Peter A

unread,
Feb 22, 2014, 10:14:05 AM2/22/14
to boofcv
BoofAndroidDemo had not been updated for all the recent changes.  That has been fixed and all of those errors should go away after you pull the latest changes!

- Peter

Omkar Rath

unread,
Feb 24, 2014, 1:05:52 AM2/24/14
to boo...@googlegroups.com
Yep, the latest sources for Android demo work fine.

Thx.
Reply all
Reply to author
Forward
0 new messages