Menu

#13 Help with compiling

v0.7.1
closed
None
1
2014-12-16
2014-10-27
fuzzlog
No

Hello.

I tried to compile servestream from source but it failed.
I use linux and i fetched servstream from svn
I then created the local.properties and set the correct path
But when i run ant it gives this error:

ant clean debug
Buildfile: /home/work/Work/adt-bundle-linux-x86_64-20140702/servestream-code/build.xml

-check-env:
[checkenv] Android SDK Tools Revision 23.0.5
[checkenv] Installed at /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk

-setup:
[echo] Project Name: ServeStream
[gettype] Project Type: Application

-pre-clean:

clean:

BUILD FAILED
/home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/tools/ant/build.xml:459: /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7 resolve to a path with no project.properties file for project /home/work/Work/adt-bundle-linux-x86_64-20140702/servestream-code

What is the problem here?
Regards and thx for the help

Discussion

  • William Seemann

    William Seemann - 2014-10-27

    It looks like you need to navigate to /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat and run android update project --path . to generate a project.properties file. Also, make sure the appcompat library is also added to the project.properties file found in the root ServeStream directory. Let me know if that helps.

     
  • fuzzlog

    fuzzlog - 2014-11-03

    Thanks for trying to help. I guess you have better things to do then teaching how to build your app. But I would appreciate your help here!

    Still can't get it to build.
    So basically this is what I did:
    The sdk is in this path: /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk
    The NDK is in this path: /home/work/Work/adt-bundle-linux-x86_64-20140702/ndk

    I fetchted servstream which is now in:
    /home/work/Work/adt-bundle-linux-x86_64-20140702/servstream-code

    Inside servestream-code I did:
    android update project --path . and added the ndk and sdk path to the local.properties file

    as suggested by you i went to /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat and did android update project --path . and also added the sdk and ndk path to the local.properties file there.

    I think one last peace is missing because i still get the error.

    If you find some time, i'd be glad to read a solution here.
    thx.

     

    Last edit: fuzzlog 2014-11-04
  • fuzzlog

    fuzzlog - 2014-11-04

    I think I got a little bit further but still I cannot compile it.

    This is where I got to:

    work@workplace-T410s:~/Work/src/opt/software/servestream-code$ ant clean debug
    Buildfile: /home/work/Work/src/opt/software/servestream-code/build.xml

    -check-env:
    [checkenv] Android SDK Tools Revision 23.0.5
    [checkenv] Installed at /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk

    -setup:
    [echo] Project Name: ServeStream
    [gettype] Project Type: Application

    -pre-clean:

    clean:
    [getlibpath] Library dependencies:
    [getlibpath]
    [getlibpath] ------------------
    [getlibpath] Ordered libraries:

    BUILD FAILED
    /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/tools/ant/build.xml:470: Invalid file: /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/build.xml

    Total time: 0 seconds

    Any Idea?

     
  • William Seemann

    William Seemann - 2014-11-05

    What are the contents of /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/build.xml. The log says the file is invalid.

     
  • fuzzlog

    fuzzlog - 2014-11-06

    Yes, this file seemd to be broken. Error is gone but compiling stucks at another stage.

    there seem to be a mismatch of the file android-support-v7-appcompat.jar.

    So i get this error:

    [dependency] Ordered libraries:
    [dependency] /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat
    [dependency]
    [dependency] ------------------
    [dependency] Found 2 versions of android-support-v7-appcompat.jar in the dependency list,
    [dependency] but not all the versions are identical (check is based on SHA-1 only at this time).
    [dependency] All versions of the libraries must be the same at this time.
    [dependency] Versions found are:
    [dependency] Path: /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar
    [dependency] Length: 520038
    [dependency] SHA-1: 4a3c67dee4051a6bb47c877c6115ba4b1a246afb
    [dependency] Path: /home/work/Work/src/opt/software/servestream-code/libs/android-support-v7-appcompat.jar
    [dependency] Length: 351603
    [dependency] SHA-1: aaa3ec7d7bfb3446a9190c5b1f601f1eb94745e7

    So I deleted the /home/work/Work/src/opt/software/servestream-code/libs/android-support-v7-appcompat.jar and copied it over from /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar

    Thing is that this gives new errors like:
    [aapt] /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/res/values-v21/styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    [aapt]
    [aapt] /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/res/values-v21/styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    [aapt]
    [aapt] /home/work/Work/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/res/values-v21/styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.

    I tried to use the android-support-v7-appcompat.jar you provide but this also gives errors.

    Any idea how to solve this mismatch?
    Cheers.

     
  • William Seemann

    William Seemann - 2014-11-06

    I just updated the support libraries which should fix your build errors. Perform a fresh checkout and make sure your build target is API 21.

     
  • fuzzlog

    fuzzlog - 2014-11-07

    It works now. Thanks for your help and thanks a lot for the nice app! It's a really useful peace of software.

     
  • William Seemann

    William Seemann - 2014-12-16

    No problem, I'm glad you find it useful.

     
  • William Seemann

    William Seemann - 2014-12-16
    • status: open --> closed
    • assigned_to: William Seemann
     

Log in to post a comment.