I'm absolutely stuck on Windows building #Gtk GResource source into a CPP project.
Is anyone an expert?
The problem is that including the code causes MINGW gcc linker to delete the entire of the rest of the project except for the gresource souce, so it obviously won't link with everything missing.
I have no idea why gnu would choose to destroy everything. I would have preferred a build error.
(it doesn't help I don't have a windows machine)
Help me fedi, you're my only hope!
@doctormo is there any way you can dump the build commands?
Can you make a minimal example project that shows the issue?
@doctormo a really over-the-top way of seeing what's going on would be chattr +i on one of the files before it's deleted.
No. I don't have a windows machine so can only see what it's on the CI.
https://gitlab.com/inkscape/inkscape/-/jobs/9492760392
There is nothing else to work from at this time. Though lack of tooling is a serious problem.
@doctormo happy to help, time permitting - you may also be able to use https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/ in a pinch.
I may need some help as I have never built Inkscape from source.
@doctormo stop me if I become more of a hinderance than a help - I have access to multiple Windows machines, Visual Studio and can install whatever, but I am not a C++ developer.
Where are you seeing that the files are deleted?
@joneuhauser @doctormo I gave it a go and could reproduce the issue. The only thing I can think of is try to come up with a minimal example (dll that exports a function, gresources file) and see if it occurs outside of Inkscape