My standard zeus SDK appears to have an issue linking in my applications
dynamic libs…
/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.2.0/real-ld:
cannot find -ldrm_intel
/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.2.0/real-ld:
cannot find -ldrm
/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/9.2.0/real-ld:
cannot find -lclang
collect2: error: ld returned 1 exit status
The libraries are under:
/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/corei7-64-poky-linux/usr/lib/
My CMake build app does not appear to have an issue finding the files:
DRM_INTEL_LIBRARIES:STRING=/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/corei7-64-poky-linux/usr/lib/libdrm_intel.so
DRM_LIBRARIES:STRING=/disk0/scratch/smonsees/sbcbSTD_SDK/limws/3.0.4/sysroots/corei7-64-poky-linux/usr/lib/libdrm.so
It appears to be an issue specifically with the ld…
LDFLAGS= " --sysroot=$ENV{OECORE_TARGET_SYSROOT}
-L$ENV{OECORE_TARGET_SYSROOT}/usr/lib
-L$ENV{OECORE_TARGET_SYSROOT}/usr/lib/x86_64-poky-linux/9.2.0 -lpthread
-pthread -O2 -pipe -Wl,-O1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
It does not appear to be making use of –L’s…
Is there something I might look at/configure (i.e. add paths to search paths) ?
Is there a simple test to validate tool ?
Thanks,
Steve
From: [email protected] <[email protected]> On Behalf Of
Monsees, Steven C (US) via lists.yoctoproject.org
Sent: Sunday, May 2, 2021 1:28 PM
To: [email protected]
Subject: [yocto] #yocto cmake configurations
External Email Alert
This email has been sent from an account outside of the BAE Systems network.
Please treat the email with caution, especially if you are requested to click
on a link, decrypt/open an attachment, or enable macros. For further
information on how to spot phishing, access “Cybersecurity OneSpace Page” and
report phishing by clicking the button “Report Phishing” on the Outlook toolbar.
I am using zeus, standard SDK, cmake…
Can I pre-configure the SDK to setup cmake package search paths ?, say for
find_package, etc. (i.e. detecting external libraries/programs)…
The majority of my env is configuring properly, but I am finding cmake is setup
for a standard linux env with regards to these types of searches, and
I wanted the cmake built in to look at my SDK paths (first by default) when
doing such things as detecting python interpreter, libraries, etc.
I am working on third party package unaware of my SDK setup.
Thanks,
Steve
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53366): https://lists.yoctoproject.org/g/yocto/message/53366
Mute This Topic: https://lists.yoctoproject.org/mt/82532711/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-