Hi, isn't this the same as this script should do ?
https://code.qt.io/cgit/yocto/meta-boot2qt.git/tree/meta-boot2qt/files/configure-qtcreator.sh Dominik Am 12/18/19 um 12:07 PM schrieb Юрий Лунёв via Development: > Hello, > > Thank you so much! It worked! > > $SDKTOOL rmTC --id "ProjectExplorer.ToolChain.Gcc:myir.gcc" > $SDKTOOL addTC --id "ProjectExplorer.ToolChain.Gcc:myir.gcc" \ > --language C \ > --name "Myir GCC" \ > --path > ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc \ > --abi arm-linux-generic-elf-32bit \ > --supportedAbis arm-linux-generic-elf-32bit \ > ProjectExplorer.GccToolChain.PlatformCodeGenFlags > QVariantList:-mthumb,-mfpu=neon-vfpv4,-mfloat-abi=hard,-mcpu=cortex-a7 > > I can post complete file, if that’s an interest to anyone. Basically, > I wrote a script to automatically add a Yocto toolchain to Qt Creator. > >> 18 дек. 2019 г., в 10:18, Eike Ziller <[email protected] >> <mailto:[email protected]>> написал(а): >> >> As far as I read the code, it should be >> >> "QVariantList:-mthumb,-mfpu=neon-vfpv4,etc" >> >> i.e. type is QVariantList and the value is a comma-separated list of >> strings. Individual elements cannot contain ‘,’ themselves. >> >> Br, Eike >> >>> On Dec 16, 2019, at 15:35, Юрий Лунёв via Development >>> <[email protected] <mailto:[email protected]>> wrote: >>> >>> Hello, >>> >>> I’m trying to figure out the syntax of sdktool so that I could set >>> up my custom Yocto-built SDK in automatic and manageable way. >>> >>> What I’m stuck with now is the command to add a toolchain: >>> $SDKTOOL addTC --id «ProjectExplorer.ToolChain.Gcc:me.gcc" \ >>> --language C \ >>> --name "Myir GCC" \ >>> --path >>> ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc >>> \ >>> --abi arm-linux-generic-elf-32bit \ >>> --supportedAbis arm-linux-generic-elf-32bit \ >>> ProjectExplorer.GccToolChain.PlatformCodeGenFlags >>> QString:"-mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7" >>> >>> >>> What happens is that PlatformCodeGenFlags appear as a single >>> variable quoted by ‘ from both sides. And the compiler fails this way. >>> >>> I found out that there’s a way to specify QStringList instead, but I >>> can’t figure out the syntax. It’s something related to QVariant, >>> QVariantList etc, and there isn’t documentation for it, or I’m too >>> blind to find that. >>> >>> How do I say something like the following) >>> $SDKTOOL addTC --id «ProjectExplorer.ToolChain.Gcc:me.gcc" \ >>> --language C \ >>> --name "Myir GCC" \ >>> --path >>> ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc >>> \ >>> --abi arm-linux-generic-elf-32bit \ >>> --supportedAbis arm-linux-generic-elf-32bit \ >>> ProjectExplorer.GccToolChain.PlatformCodeGenFlags QStringList: >>> '-mthumb’, '-mfpu=neon-vfpv4', 'mfloat-abi=hard’, '-mcpu=cortex-a7’ >>> >>> Best regards, Yury Lunyov. >>> _______________________________________________ >>> Development mailing list >>> [email protected] <mailto:[email protected]> >>> https://lists.qt-project.org/listinfo/development >> >> -- >> Eike Ziller >> Principal Software Engineer >> >> The Qt Company GmbH >> Erich-Thilo-Straße 10 >> D-12489 Berlin >> [email protected] <mailto:[email protected]> >> http://qt.io >> Geschäftsführer: Mika Pälsi, >> Juha Varelius, Mika Harjuaho >> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht >> Charlottenburg, HRB 144331 B >> > > С уважением, Юрий Лунёв > > > _______________________________________________ > Development mailing list > [email protected] > https://lists.qt-project.org/listinfo/development _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
