Skip to contentSkip to conversation

error with SDK that supports Qt creator

DISCUSSION Crane 2 participants 6 messages Jul 21, 2025 – Jul 28, 2025

lore
Share & tools
lore

Crane

author
#0 lore raw

Hello,

I am building SDK using populate_sdk that support Qt creator.

All are configured correctly except Qt version is considered invalid after adding qmake from <sysroots>/x86_64-pokysdk-linux/usr/bin.

Further check discovers this result:

Quoted 10 lines
crane@vmUbuntu2204:~/work/project/$ which qmake
/opt/poky/0.1/sysroots/x86_64-pokysdk-linux/usr/bin/qmake
crane@vmUbuntu2204:~/work/project/$ qmake -v
QMake version 3.1
Using Qt version 5.15.13 in
/home/crane/work/yocto/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtbase/5.15.13+git/recipe-sysroot/opt/poky/0.1/sysroots/x86_64-pokysdk-linux/usr/lib

crane@vmUbuntu2204:~/work/project/$

Obviously it doesn't point to the correct path. Qt libraries are in <sysroots>/usr/lib directory. What might be the cause?

Any input is appreciated.

Thanks!
Crane

author
#1 lore raw

qt.conf is missing.
But after adding qt.conf, Qt creators reports " *Qt version is not properly installed, please run make install".* *"qmake -query" returns valid absolte paths.*
*qt tools moc, rcc and uic are present.*
*Still missing files.*

*"bitbake <image> -c populate_sdk" or "bitbake meta-toolchain-qt5" should be used?*

Thanks!
Crane

#2 lore raw
Quoted 8 lines · Crane via lists.yoctoproject.org

qt.conf is missing.
But after adding qt.conf, Qt creators reports "Qt version is not properly installed, please run make install". "qmake -query" returns valid absolte paths.
qt tools moc, rcc and uic are present.
Still missing files.

"bitbake <image> -c populate_sdk" or "bitbake meta-toolchain-qt5" should be used?

you need to inherit populate_sdk_qt5|6 in the image which is used to build the SDK
I think building meta-toolchain-qt5 or meta-toolchain-qt6 sets up the toolchain with
right bits

Quoted 13 lines

Thanks!
Crane

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#65698): https://lists.yoctoproject.org/g/yocto/message/65698
Mute This Topic: https://lists.yoctoproject.org/mt/114262984/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw

Thanks Raj.

I am building meta-toolchain-qt5 and come across this error and couldn't find the solution. Doing "-c cleanall" on the recipe qtxmlpatterns doesn't work for this error. Any idea?

Quoted 58 lines

ERROR: qtxmlpatterns-native-5.15.13+git-r0 do_populate_sysroot: Error
executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure
was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:uninative_changeinterp(d)
0003:
File:
'/home/crane/work/yocto/build/../sources/poky/meta/classes-global/uninative.bbclass',
lineno: 179, function: uninative_changeinterp
0175:            if not elf.isDynamic():
0176:                continue
0177:
0178:            os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR)
*** 0179:            subprocess.check_output(("patchelf-uninative",
"--set-interpreter", d.getVar("UNINATIVE_LOADER"), f),
stderr=subprocess.STDOUT)
0180:            os.chmod(f, s[stat.ST_MODE])
0181:}
File: '/usr/lib/python3.10/subprocess.py', lineno: 421, function:
check_output
0417:        else:
0418:            empty = b''
0419:        kwargs['input'] = empty
0420:
*** 0421:    return run(*popenargs, stdout=PIPE, timeout=timeout,
check=True,
0422:               **kwargs).stdout
0423:
0424:
0425:class CompletedProcess(object):
File: '/usr/lib/python3.10/subprocess.py', lineno: 526, function: run
0522:            # We don't call process.wait() as .__exit__ does that for
us.
0523:            raise
0524:        retcode = process.poll()
0525:        if check and retcode:
*** 0526:            raise CalledProcessError(retcode, process.args,
0527:                                     output=stdout, stderr=stderr)
0528:    return CompletedProcess(process.args, retcode, stdout, stderr)
0529:
0530:
Exception: subprocess.CalledProcessError: Command '('patchelf-uninative',
'--set-interpreter',
'/home/crane/work/yocto/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2', '/home/crane/work/yocto/build/tmp/work/x86_64-linux/qtxmlpatterns-native/5.15.13+git/sstate-build-populate_sysroot/recipe-sysroot-native/usr/bin/xmlpatternsvalidator')' returned non-zero exit status 1.
Subprocess output:
patchelf: section header table out of bounds
ERROR: Logfile of failure stored in:
/home/crane/work/yocto/build/tmp/work/x86_64-linux/qtxmlpatterns-native/5.15.13+git/temp/log.do_populate_sysroot.103564

ERROR: Task (virtual:native:/home/crane/work/yocto/build/../sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_populate_sysroot) failed with exit code '1'

author
#4 lore raw

Tried to clean uninative-tarball and built it again. And it seems not working to address this.

author
#5 lore raw

It doesn't work for meta-toolchain-qt5 somehow.
Chang to meta-toolchain-qt6 and it works fine.