* error with SDK that supports Qt creator
@ 2025-07-21 3:23 Crane
2025-07-21 20:49 ` [yocto] " Crane
0 siblings, 1 reply; 6+ messages in thread
From: Crane @ 2025-07-21 3:23 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 855 bytes --]
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:
>
> 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
[-- Attachment #2: Type: text/html, Size: 1087 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto] error with SDK that supports Qt creator
2025-07-21 3:23 error with SDK that supports Qt creator Crane
@ 2025-07-21 20:49 ` Crane
2025-07-21 21:55 ` Khem Raj
0 siblings, 1 reply; 6+ messages in thread
From: Crane @ 2025-07-21 20:49 UTC (permalink / raw)
To: Crane, yocto
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2010 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto] error with SDK that supports Qt creator
2025-07-21 20:49 ` [yocto] " Crane
@ 2025-07-21 21:55 ` Khem Raj
2025-07-23 3:30 ` Crane
0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2025-07-21 21:55 UTC (permalink / raw)
To: yocto, crane2018
On Mon, Jul 21, 2025 at 1:49 PM Crane via lists.yoctoproject.org
<crane2018=gmail.com@lists.yoctoproject.org> wrote:
>
> 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
>
> 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: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto] error with SDK that supports Qt creator
2025-07-21 21:55 ` Khem Raj
@ 2025-07-23 3:30 ` Crane
2025-07-23 14:09 ` Crane
0 siblings, 1 reply; 6+ messages in thread
From: Crane @ 2025-07-23 3:30 UTC (permalink / raw)
To: Khem Raj, yocto
[-- Attachment #1: Type: text/plain, Size: 2860 bytes --]
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?
>
> 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'
>
[-- Attachment #2: Type: text/html, Size: 3930 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto] error with SDK that supports Qt creator
2025-07-23 3:30 ` Crane
@ 2025-07-23 14:09 ` Crane
2025-07-28 1:55 ` Crane
0 siblings, 1 reply; 6+ messages in thread
From: Crane @ 2025-07-23 14:09 UTC (permalink / raw)
To: Crane, yocto
[-- Attachment #1: Type: text/plain, Size: 96 bytes --]
Tried to clean uninative-tarball and built it again. And it seems not working to address this.
[-- Attachment #2: Type: text/html, Size: 107 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto] error with SDK that supports Qt creator
2025-07-23 14:09 ` Crane
@ 2025-07-28 1:55 ` Crane
0 siblings, 0 replies; 6+ messages in thread
From: Crane @ 2025-07-28 1:55 UTC (permalink / raw)
To: Crane, yocto
[-- Attachment #1: Type: text/plain, Size: 97 bytes --]
It doesn't work for meta-toolchain-qt5 somehow.
Chang to meta-toolchain-qt6 and it works fine.
[-- Attachment #2: Type: text/html, Size: 125 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-07-28 1:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-21 3:23 error with SDK that supports Qt creator Crane
2025-07-21 20:49 ` [yocto] " Crane
2025-07-21 21:55 ` Khem Raj
2025-07-23 3:30 ` Crane
2025-07-23 14:09 ` Crane
2025-07-28 1:55 ` Crane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).