Hi, On Tue, Oct 17, 2023 at 09:21:27AM +0000, Dave Hitchman wrote: > Oh I dont know. This is getting to be a bit annoying. > I had already included the inherit cmake line but now it seems maybe that you > dont need to put any cmake commands in... not 100% sure, no one seems to > explain this, I am not convinced. > However I want some extra flags and I have read that you should be able to: > TARGET_CFLAGS += "-DBUILD_PYTHON_BINDINGS=ON -DBUILD_SHARED=ON > -DBUILD_TOOLS=ON"
Don't put these into CFLAGS. I presume you want to give these to CMake via EXTRA_OECMAKE variable to be used at do_configure time. Check poky tree for documentation and examples, docs are also here: https://docs.yoctoproject.org/dev/singleindex.html#cmake > but building that gives me > + cd > /home/dave/Documents/Kymati/yocto/build/tmp/work/cortexa53-crypto-phytec-linux/libkymati/1.0-r0/build > + do_configure > + cd > /home/dave/Documents/Kymati/yocto/build/tmp/work/cortexa53-crypto-phytec-linux/libkymati/1.0-r0/git > + TARGET_CFLAGS:=-DBUILD_PYTHON_BINDINGS=ON -DBUILD_SHARED=ON -DBUILD_TOOLS=ON > > /home/dave/Documents/Kymati/yocto/build/tmp/work/cortexa53-crypto-phytec-linux/libkymati/1.0-r0/temp/run.do_configure.991537: > 159: TARGET_CFLAGS:=-DBUILD_PYTHON_BINDINGS=ON -DBUILD_SHARED=ON > -DBUILD_TOOLS=ON: not found > > Is there a good, really works, actually sets extra flags, really shows and > explains with comments and everything example I can look at? This bitbake is > clearly clever, so is cmake, but in honesty I really gave up trying to > understand any of it and just want it to work, writing the code is one thing > but these build systems are a fight all of their own that takes longer than > the code to solve the universe Build systems are hard. I'm sure someone will invent another one to solve all issues and resurrect all old ones. :) Cheers, -Mikko
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61368): https://lists.yoctoproject.org/g/yocto/message/61368 Mute This Topic: https://lists.yoctoproject.org/mt/101998042/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-