I am posting this as a new topic, because it is a new issue:
I have spend thelast three days researching a problem on Windows. The linker would take hours to build a project that took him minutes to link. Now I have found that this caused by the external libraries that are included in the project file for building the SharedCode library, which is redundant, because they are included in project file for the binary. It looks like it causes the linker a lot of time to process the redundancy.
I have now removed the external dependencies and the resource file from the SharedCode project and now, I got a Windows project I can work with. It is unfortunate though, because we use Projucer heavily and rely on the ability to generate Windows projects for the build server, which means we hardly have to leave our primary development platform, which is Mac OS.
With this behavior, we are forced to manually post process the WIndows project files.
Yes, this has been an issue for some time - it was raised when this was first introduced but nothing has happened about it. I think at the time I was the only voice, so maybe if there are more people raising awareness it might get changed.
I just go into the shared project setting and remove the libraries from the librarian settings after an update in projucer, but it would be nice not to have to do this.
In the past it was also suggested to change the LTO settings but this never had any effect for me, though this may have changed and I haven’t tried this for some time.
I assume, that it has not affected Roli developers that much, because they don’t rely on external libraries that much. I don’t know, why it is has become a problem now. Maybe changes in the latest Mircrosoft tools add to the problem as well.
This fixes the issue with the dependencies, now I need to find a way to suppress the inclusion of resources.rc in the SharedCode project. I have spend some time tracing the Projucer code, but I would not find the step, where it gets included in the project.
Thank you, that fixed that issue too. Now our workflow is restored. I hope the changes will make into the master branch at some point. I don’t fell good about patching Juce.
bump. any comments from the JUCE devs as to whether we can make this standard in Projucer - I’ve never understood the need to link extra libraries multiple times.
Yeah, I struggle with this issue also. With link-time optimization enabled, my SharedCode .lib file ends up around 3GB – completely unusable.
Aside from that, the character limit in the textEditor for the ‘additional include directories’ in the Projucer doesn’t fit all the directories I need to include, and I’ve had to develop some scripts to achieve this as a workaround.
Are you sure? The commit is here and it made it’s way onto the master branch with the 5.3.2 update so the Projucer from the latest JUCE website download should have the fix in. Have you re-saved your project?