Gustaf Waldemarson
Gustaf Waldemarson
> Looking at your example, it seems this is because you do have a cycle in your headers. The rust bridge depends on the > C++ header and the C++...
Appologies for the slow replies, ended up being rather busy during the holidays, forgetting this thread. Anyways: > You probably want to remove this line - I would expect you...
The final executable in this case is a Rust binary called "texture_test", in case it's helpful, here's the full commandline as it is output by `cmake .. && make VERBOSE=1`:...
Actually, it seems like limiting the dependencies to *just* the targets that need it seems to work, although one could argue that it is a bit of a workaround. That...
Seems like using the line `corrosion_link_libraries(gfx imageio-cxx)` still gives a circular dependency even on the `bridge` branch, example output below: ``` CMake Error: The inter-target dependency graph contains the following...
> Did this one not work? I think you would want to link the imageio-cxx crate into your final executable, not an intermediate library. Oh, I think I misunderstood your...
As I was unable to progress with the previous approach, I tried a different tack that I had been thinking of for a while: Using features and environment variables to...
> Well, in CMake a list is just a semicolon delimited string, so you have to pay attention and quote the list variable basically each time you use it to...
Hmm, strange, that didn't actually change anything: ``` cd /Users/gustaf/Documents/git/phd/ocl-spikes/ext/gfx-rs && /opt/homebrew/Cellar/cmake/3.25.1/bin/cmake -E env \ CARGO_FEATURE_CORROSION_INCLUDES=/Users/gustaf/Documents/git/phd/ocl-spikes/src \ CARGO_FEATURE_CORROSION_LINK_LIBS=ccl_common OpenEXR-3_1 OpenEXRUtil-3_1 OpenEXRCore-3_1 Iex-3_1 IlmThread-3_1 Imath-3_1 \ CARGO_FEATURE_CORROSION_LINK_SEARCH=/Users/gustaf/Documents/git/phd/ocl-spikes/build/src /opt/homebrew/Cellar/openexr/3.1.5/lib /opt/homebrew/Cellar/imath/3.1.6/lib ``` Just...
@Kwpolska Apologies for the slow response! But yes, I can confirm that this works: ``` xaldew@ShadowX:~/git/homepage/nikola_blog$ make nikola build Scanning posts............done! . scale_images:output/images/compression-teaser.opt.svg [2024-09-05 10:31:10] WARNING: scale_images: Can't process images/compression-teaser.opt.svg,...