Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

error.ManifestParseError: project device/sony/lt26 not found #2

Closed
jerdog opened this Issue · 11 comments

4 participants

@jerdog

When following the instructions to sync, I have created a local_manifest.xml file in the .repo/ directory with the below in the file:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote  name="sony" fetch="git://github.com/sonyxperiadev/" />
  <remove-project name="device/sony/lt26" />
  <project path="device/sony/lt26" name="device-sony-lt26" remote="sony" revision="master" />
</manifest>

I have also unzipped the device files to the directory and I now have vendor/sony/lt26 in my tree.

Then I have ran repo sync and I get the following error:

jerdog@build1 ~/android $ repo sync
Traceback (most recent call last):
  File "/home/jerdog/android/.repo/repo/main.py", line 408, in <module>
    _Main(sys.argv[1:])
  File "/home/jerdog/android/.repo/repo/main.py", line 388, in _Main
    result = repo._Run(argv) or 0
  File "/home/jerdog/android/.repo/repo/main.py", line 122, in _Run
    copts, cargs = cmd.OptionParser.parse_args(argv)
  File "/home/jerdog/android/.repo/repo/command.py", line 45, in OptionParser
    self._Options(self._optparse)
  File "/home/jerdog/android/.repo/repo/subcmds/sync.py", line 147, in _Options
    self.jobs = self.manifest.default.sync_j
  File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 256, in default
    self._Load()
  File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 304, in _Load
    self._ParseManifest(nodes)
  File "/home/jerdog/android/.repo/repo/manifest_xml.py", line 419, in _ParseManifest
    (name))
error.ManifestParseError: project device/sony/lt26 not found
jerdog@build1 ~/android $
@andersson
Collaborator

As device/sony/lt26 is no longer included in the master manifest from Google it's not possible to "remove-project" it, so that line should be removed.

However, as of the 4.2 merge into master branch the resulting images does not boot, the format of boot.img is incorrect and we're lacking some features in the graphics stack - we're investigating how to solve these things.

@jerdog

Excellent - thanks Bjorn. So I can ignore the instructions and not use the local_manifest.xml file.

@agony99

Mmm, i hope you've got it all figured it out by now, but according to the comment above you should remove only the line from the manifest (and keep the local_manifest file)

@agony99 agony99 referenced this issue from a commit in agony99/device-sony-lt26
adn3 README : remove <remove-project> line from local_manifest examples
Issue #2 : "As device/sony/lt26 is no longer included in the master
manifest from Google it's not possible to "remove-project" it, so that
line should be removed."
324a470
@jerdog

thanks guys. I just now got back around to checking this out and noticed that a step was missing in the instructions (or so it seems) as "./build/envsetup.sh" doesn't show up. I had completely forgotten about that step so lunch wasn't working. After running that step, I can run "lunch full_lt26-userdebug" but I get the following error now (after removing the remove-project line from the local_manifest:

jerdog@build1 ~/android $ lunch full_lt26-userdebug
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/sony/lt26/full_lt26.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist.  Stop.

** Don't have a product spec for: 'full_lt26'
** Do you have the right repo manifest?
@agony99

I'm not sure that this is the root cause of your issue, but which version of the AOSP are you targetting ? Could you please try to switch to the 4.2.1 branche (from your build directory, something like "repo init -b android-4.2.1_r1 ; repo sync" should do the trick) and re-lunch ? (NOTE : depending on your connection speed, "repo init -b ..." might take a while...)

@jerdog

:facepunch: duh. It's been so long since I have done this my brain lapsed.

With that being said, after running make it churns for a long time and finally errors out with this:

In file included from cts/suite/audio_quality/lib/src/audio/AudioPlaybackLocal.cpp:29:0:
/home/jerdog/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/sound/asound.h:334:2: error: 'u_int32_t' does not name a type
realmake: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libcts_audio_quality_intermediates/src/audio/AudioPlaybackLocal.o] Error 1
realmake: *** Waiting for unfinished jobs....
@agony99

Probably a dumb question, but does your build env matches the recommendation from http://source.android.com/source/initializing.html (i'm thinking required packages section, stuff like "ia32-libs" etc..) ?

@jerdog

did some searching, and this error

asound.h:334:2: error: 'u_int32_t' does not name a type

is answered here in relations to AOSP 4.2 source - https://coderwall.com/p/2lr87q

I copied the asound.h from the kernel headers as suggested:

cp external/kernel-headers/original/sound/asound.h prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/

and everything worked like a charm. :+1:

@agony99

Good news !
Well, let's hope Bjorn (or someone else) will be able to sort out those issue with the boot.img and graphic stack :)

@jerdog

Everything was fine with my source I just needed to rebase off the correct tree.

@andersson andersson was assigned
@jredestig
Collaborator

Thanks for all of the comments. The README has been updated.

@jredestig jredestig closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.