← Back to team overview

ubuntu-phone team mailing list archive

Re: Compiererror while porting to Xperia Neo V

 

Hello,

I got it working now by commenting out
#    AudioResampler.cpp.arm      \
#    AudioPolicyService.cpp
in the fremeworks/av/services/audioflinger/Android.mk
and commenting out
#    libaudioflinger \
in the build/target/prouduct/base.mk

I know, that this is not the best solution, but I successfully have build the image. Now I only have to flash it.

Thanks,
Daniel Winzen

Am 03.03.2013 14:34, schrieb Jeremy Morales:
Not saying that is it, but its a possibility. Try creating a virtual machine running Ubuntu 12.04 and see if the compile goes.


On Sun, Mar 3, 2013 at 6:28 AM, Daniel Winzen <d@xxxxxxxxxx <mailto:d@xxxxxxxxxx>> wrote:

    I'm running on Ubuntu raring, I installed the
    oracle-java6-installer, but not all necessary are installed, a few
    weren't able to resolve the right dependency:

    Die folgenden Pakete haben unerfüllte Abhängigkeiten:
     libgl1-mesa-dev : Hängt ab von: mesa-common-dev (=
    9.0.2-0ubuntu1) soll aber nicht installiert werden
                       Hängt ab von: libx11-dev soll aber nicht
    installiert werden
                       Hängt ab von: libx11-xcb-dev soll aber nicht
    installiert werden
                       Hängt ab von: libxdamage-dev soll aber nicht
    installiert werden
                       Hängt ab von: libxext-dev soll aber nicht
    installiert werden
                       Hängt ab von: libxfixes-dev soll aber nicht
    installiert werden
                       Hängt ab von: libxxf86vm-dev soll aber nicht
    installiert werden
     libgl1-mesa-glx:i386 : Hängt ab von: libx11-6:i386 (>=
    2:1.4.99.1) soll aber nicht installiert werden
                            Hängt ab von: libx11-xcb1:i386 soll aber
    nicht installiert werden
                            Hängt ab von: libxdamage1:i386 (>= 1:1.1)
    soll aber nicht installiert werden
                            Hängt ab von: libxext6:i386 soll aber
    nicht installiert werden
                            Hängt ab von: libxfixes3:i386 soll aber
    nicht installiert werden
                            Hängt ab von: libxxf86vm1:i386 soll aber
    nicht installiert werden
     libx11-dev:i386 : Hängt ab von: libx11-6:i386 (= 2:1.5.0-1) soll
    aber nicht installiert werden
    E: Probleme können nicht korrigiert werden, Sie haben
    zurückgehaltene defekte Pakete.


    Am 03.03.2013 14:10, schrieb Jeremy Morales:
    Did you make sure to get all the necessary apt packages? What
    java are you running? What version of Ubuntu are you developing on?


    On Sun, Mar 3, 2013 at 6:08 AM, Jeremy Morales
    <ajaxx20020@xxxxxxxxx <mailto:ajaxx20020@xxxxxxxxx>> wrote:

        Alright, I was just reading about this error and it was
        saying a problem with 4.7, but I guess thats not it then.


        On Sun, Mar 3, 2013 at 5:57 AM, Daniel Winzen <d@xxxxxxxxxx
        <mailto:d@xxxxxxxxxx>> wrote:

            I'm using the default toolchain, automatically chosen by
            "brunch haida".

            Am 03.03.2013 13:48, schrieb Jeremy Morales:
            What toolchain are you using?


            On Sun, Mar 3, 2013 at 3:41 AM, Daniel Winzen
            <d@xxxxxxxxxx <mailto:d@xxxxxxxxxx>> wrote:

                Hello, I just rebuild everything and got a more
                detailed error this time:

                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                warning: missing initializer for member
                'audio_policy_service_ops::open_input_on_module'
                [-Wmissing-field-initializers]
                make: ***
                [/home/daniel/xperia/out/target/product/haida/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o]
                Fehler 1
                make: *** Warte auf noch nicht beendete Prozesse...
                In file included from
                frameworks/av/services/audioflinger/AudioFlinger.cpp:60:0:
                frameworks/av/services/audioflinger/AudioFlinger.h:
                In constructor
                'android::AudioFlinger::DirectAudioTrack::DirectAudioTrack(const
                android::sp<android::AudioFlinger>&, int,
                android::AudioFlinger::AudioSessionDescriptor*,
                android::IDirectTrackClient*, audio_output_flags_t)':
                frameworks/av/services/audioflinger/AudioFlinger.h:1516:26:
                warning:
                'android::AudioFlinger::DirectAudioTrack::mAudioFlinger'
                will be initialized after [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.h:1464:14:
                warning:   'int
                android::AudioFlinger::DirectAudioTrack::mOutput'
                [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp:6131:1:
                warning:   when initialized here [-Wreorder]
                In file included from
                frameworks/av/services/audioflinger/AudioFlinger.cpp:60:0:
                frameworks/av/services/audioflinger/AudioFlinger.h:1464:14:
                warning:
                'android::AudioFlinger::DirectAudioTrack::mOutput'
                will be initialized after [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.h:1463:33:
                warning:
                'android::AudioFlinger::AudioSessionDescriptor*
                android::AudioFlinger::DirectAudioTrack::mOutputDesc' [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp:6131:1:
                warning:   when initialized here [-Wreorder]
                In file included from
                frameworks/av/services/audioflinger/AudioFlinger.cpp:60:0:
                frameworks/av/services/audioflinger/AudioFlinger.h:1463:33:
                warning:
                'android::AudioFlinger::DirectAudioTrack::mOutputDesc'
                will be initialized after [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.h:1462:29:
                warning: 'android::IDirectTrackClient*
                android::AudioFlinger::DirectAudioTrack::mClient'
                [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp:6131:1:
                warning:   when initialized here [-Wreorder]
                In file included from
                frameworks/av/services/audioflinger/AudioFlinger.cpp:60:0:
                frameworks/av/services/audioflinger/AudioFlinger.h:1496:14:
                warning:
                'android::AudioFlinger::DirectAudioTrack::mEffectConfigChanged'
                will be initialized after [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.h:1494:14:
                warning:   'bool
                android::AudioFlinger::DirectAudioTrack::mKillEffectsThread'
                [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp:6131:1:
                warning:   when initialized here [-Wreorder]
                In file included from
                frameworks/av/services/audioflinger/AudioFlinger.cpp:60:0:
                frameworks/av/services/audioflinger/AudioFlinger.h:1494:14:
                warning:
                'android::AudioFlinger::DirectAudioTrack::mKillEffectsThread'
                will be initialized after [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.h:1466:30:
                warning: 'audio_output_flags_t
                android::AudioFlinger::DirectAudioTrack::mFlag'
                [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp:6131:1:
                warning:   when initialized here [-Wreorder]
                frameworks/av/services/audioflinger/AudioFlinger.cpp: In
                member function
                'android::sp<android::AudioFlinger::EffectModule>
                android::AudioFlinger::EffectChain::getEffectFromIndex_l(int)':
                frameworks/av/services/audioflinger/AudioFlinger.cpp:10044:40:
                warning: comparison between signed and unsigned
                integer expressions [-Wsign-compare]

                Hope someone can help me,
                Daniel Winzen

                Am 03.03.2013 08:25, schrieb Daniel Winzen:
                Hello, I'm not using CM10.1, because CM10 is the
                latest for my Neo V.

                I cloned the repository with "phablet-dev-bootstrap
                xperia"
                I added these lines to the manifest.xml:
                  <project path="device/semc/haida"
                name="CyanogenMod/android_device_semc_haida"
                remote="github" revision="refs/heads/jellybean" />
                  <project path="device/semc/mogami-common"
                name="CyanogenMod/android_device_semc_mogami-common" remote="github"
                revision="refs/heads/jellybean" />
                  <project path="hardware/somc/dash"
                name="CyanogenMod/android_hardware_sony_DASH"
                remote="github" revision="refs/heads/cm-10.1" />
                  <project path="hardware/ti/fmradio"
                name="CyanogenMod/android_hardware_ti_fmradio"
                remote="github" revision="refs/heads/jellybean" />
                  <project path="device/semc/msm7x30-common"
                name="CyanogenMod/android_device_semc_msm7x30-common"
                remote="github" revision="refs/heads/jellybean" />
                  <project path="kernel/semc/msm7x30"
                name="CyanogenMod/semc-kernel-msm7x30"
                remote="github" revision="refs/heads/jellybean" />
                I updated the repository with
                "phablet-dev-bootstrap -c xperia"
                I downloaded the latest nightly for my device
                http://download.cyanogenmod.org/?device=haida
                (24.02.13)
                Then I looked in the
                "device/semc/haida/extract-files.sh" and extracted
                the binary files manually.
                I started ./setup-makefiles.sh
                I removed the ",nosuid" in
                "device/semc/msm7x30-common/prebuild/fstab.semc".
                I updated the kernelconfiguration for my device in
                "/kernel/semc/msm7x30/arch/arm/configs/cyanogen_haida_defgonfig"
                as follows:
                CONFIG_SYSVIPC=y
                CONFIG_NAMESPACES=y
                CONFIG_UTS_NS=y
                CONFIG_IPC_NS=y
                CONFIG_USER_NS=y
                CONFIG_PID_NS=y
                CONFIG_NET_NS=y
                CONFIG_DEVTMPFS=y
                CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
                CONFIG_FSNOTIFY=y
                CONFIG_DNOTIFY=y
                CONFIG_INOTIFY_USER=y
                CONFIG_FANOTIFY=y
                CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
                CONFIG_FSNOTIFY=y
                CONFIG_SWAP=y
                # CONFIG_ANDROID_PARANOID_NETWORK is not set
                Then I added " chmod 0666
                /sys/class/leds/lcd-backlight/brightness" to the
                "device/semc/mogami-common/prebuild/init.semc.rc"
                After all these changes, I tryed ".
                build/envsetup.sh" and "brunch haida" but the build
                stopped after one or two minutes, because I'm not a
                programmer yet, I just disabled the failing modules
                in "device/semc/msm7x30-common/msm7x30.mk
                <http://msm7x30.mk>": I commented "libOmxVdec \"
                out and in "device/semc/mogami-common" I commented
                out "Fmapplication \".
                Then I started "brunch haida" again, but after a
                while I got this error:
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                sorry, unimplemented: non-trivial designated
                initializers not supported
                frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                warning: missing initializer for member
                'audio_policy_service_ops::open_input_on_module'
                [-Wmissing-field-initializers]
                make: ***
                [/home/daniel/xperia/out/target/product/haida/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o]
                Error 1

                Thanks for your help,
                Daniel Winzen

                Am 03.03.2013 00:55, schrieb f69m:
                First of all: can you compile CM 10.1? If not
                there might be something weird on your system.
                What system are you running on?

                Given you can compile CM 10.1, can you give more
                details on what you have done, so I can try to
                reproduce that? Maybe then I can help.
                Please document your steps, starting from cloning
                the phablet repositories.
                This includes changes to the manifest and changes
                to your device/kernel images.

                Not sure the whole list is interested, you find my
                email in the header. ;-)


                On 03/02/2013 11:57 PM, Andrew Black wrote:

                I am having the precise same error while trying
                to port to the HTC sensation. Any clues would be
                much appreciated.

                On 2 Mar 2013 22:54, "Daniel Winzen"
                <d@xxxxxxxxxx <mailto:d@xxxxxxxxxx>> wrote:

                    Hello,

                    While porting to Xperia Neo V I run "brunch
                    haida", but I get this error:
                    frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                    sorry, unimplemented: non-trivial designated
                    initializers not supported
                    frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                    sorry, unimplemented: non-trivial designated
                    initializers not supported
                    frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                    sorry, unimplemented: non-trivial designated
                    initializers not supported
                    frameworks/av/services/audioflinger/AudioPolicyService.cpp:1571:5:
                    warning: missing initializer for member
                    'audio_policy_service_ops::open_input_on_module'
                    [-Wmissing-field-initializers]
                    make: ***
                    [/home/daniel/xperia/out/target/product/haida/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o]
                    Error 1

                    Can anybody help, pleas?

                    Thanks,
                    Daniel Winzen

-- Daniel Winzen
                    d@xxxxxxxxxx <mailto:d@xxxxxxxxxx>
                    My Websites:
                    https://launchpad.net/~q-d
                    <https://launchpad.net/%7Eq-d>
                    http://manual.audacityteam.org/man/User:Daniel
                    http://l10n.gnome.org/users/DanWin/
                    https://www.transifex.com/accounts/profile/DanWin/
                    https://github.com/DanWin


-- Mailing list:
                    https://launchpad.net/~ubuntu-phone
                    <https://launchpad.net/%7Eubuntu-phone>
                    Post to     :
                    ubuntu-phone@xxxxxxxxxxxxxxxxxxx
                    <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
                    Unsubscribe :
                    https://launchpad.net/~ubuntu-phone
                    <https://launchpad.net/%7Eubuntu-phone>
                    More help   : https://help.launchpad.net/ListHelp








-- Daniel Winzen
                d@xxxxxxxxxx  <mailto:d@xxxxxxxxxx>
                My Websites:
                https://launchpad.net/~q-d  <https://launchpad.net/%7Eq-d>
                http://manual.audacityteam.org/man/User:Daniel
                http://l10n.gnome.org/users/DanWin/
                https://www.transifex.com/accounts/profile/DanWin/
                https://github.com/DanWin


-- Daniel Winzen
                d@xxxxxxxxxx  <mailto:d@xxxxxxxxxx>
                My Websites:
                https://launchpad.net/~q-d  <https://launchpad.net/%7Eq-d>
                http://manual.audacityteam.org/man/User:Daniel
                http://l10n.gnome.org/users/DanWin/
                https://www.transifex.com/accounts/profile/DanWin/
                https://github.com/DanWin


                --
                Mailing list: https://launchpad.net/~ubuntu-phone
                <https://launchpad.net/%7Eubuntu-phone>
                Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
                <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
                Unsubscribe : https://launchpad.net/~ubuntu-phone
                <https://launchpad.net/%7Eubuntu-phone>
                More help   : https://help.launchpad.net/ListHelp




-- Daniel Winzen
            d@xxxxxxxxxx  <mailto:d@xxxxxxxxxx>
            My Websites:
            https://launchpad.net/~q-d  <https://launchpad.net/%7Eq-d>
            http://manual.audacityteam.org/man/User:Daniel
            http://l10n.gnome.org/users/DanWin/
            https://www.transifex.com/accounts/profile/DanWin/
            https://github.com/DanWin





-- Daniel Winzen
    d@xxxxxxxxxx  <mailto:d@xxxxxxxxxx>
    My Websites:
    https://launchpad.net/~q-d  <https://launchpad.net/%7Eq-d>
    http://manual.audacityteam.org/man/User:Daniel
    http://l10n.gnome.org/users/DanWin/
    https://www.transifex.com/accounts/profile/DanWin/
    https://github.com/DanWin




--
Daniel Winzen
d@xxxxxxxxxx
My Websites:
https://launchpad.net/~q-d
http://manual.audacityteam.org/man/User:Daniel
http://l10n.gnome.org/users/DanWin/
https://www.transifex.com/accounts/profile/DanWin/
https://github.com/DanWin


References