Open jascase901 opened 3 years ago
I had a similar problem. Solved that by adding DEPENDS += "wxwidgets"
to my recipe .bb file.
With that, I could compile the recipe using standard cmake syntax described at wxwidgets docs:
find_package(wxWidgets COMPONENTS core base REQUIRED)
include(${wxWidgets_USE_FILE})
...
target_link_libraries(APP PUBLIC ${wxWidgets_LIBRARIES})
Is there an update on this? I'm struggling to build an application with the SDK for my image containing wxWidgets. Same error as @jascase901.
My image .bb contains IMAGE_INSTALL += " wxwidgets" and DEPENDS += " wxwidgets". I'm using Yocto 3.1 Dunfell.
you have to generate the SDK after doing these changes.
I can build applications that depend of wx using bitbake. But if I try to make an sdk (
bitbake wx-image-sdk -c populate_sdk
). and build a sample application getLooking at my sys root directory. there is no wx-config, which is hwat findwxwidgets uses to set the include, and library dirs. There is a wxrc, which is functionally the same thing as wx-config, but trying to use it returns my system wx libraries in /usr/local