Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building example projects in docker #19

Open
mb0zz opened this issue Aug 20, 2024 · 1 comment
Open

Building example projects in docker #19

mb0zz opened this issue Aug 20, 2024 · 1 comment

Comments

@mb0zz
Copy link

mb0zz commented Aug 20, 2024

The docker image builds okay, but the three linked example projects:

  • gnuradio-fm
  • gnuradio-volk
  • gnuradio-benchmark

Don't actually build with android studio as configured by the docker container. There are so far a few issues identified:
1. build.gradle is pointing to a deprecated repository [all projects]
It looks like build.gradle in the root directory of all three are using jcenter() (which is deprecated?). Adding mavenCentral() to the allprojects and buildscript repositories resolved the dependencies not being pulled in.

2. fm and benchmark are referencing different ndk versions than this repo is.
Both gnuradio-fm and gnuradio-benchmark expect the ndk version 20.0....., but the docker container installs 21.3.6528147.

3. gnuradio-fm references a package with a dependency not currently found in mavenCentral(), which is com.androidplot-core:1.5.7 with figplot 1.0.7. The earliest available version I could find on mavenCentral is 1.5.9, but that appears to have deprecated a function used in MainActivity, as when we run it we see an address error (not totally sure about this one).

The first two issues I was able to resolve, the third issue I was not able to fix. Any chance I could get an assist with this?

@bastibl
Copy link
Owner

bastibl commented Aug 29, 2024

I just gave this a try. I replace jcenter with mavenCentral, set the NDK to 21 in project settings, and added

    implementation "com.halfhp.fig:figlib:1.0.11"

to the build.gradle in the app folder. With this changes it builds the APK for me.

But, the example applications are not interesting. So maybe it's not worth investing time in getting the GUI going. I guess with Flutter etc, there are much better options available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants