simulton / QSchematic

A library that allows creating diagrams such as flowcharts or even proper engineering schematics within a Qt application.
https://simulton.com
MIT License
231 stars 60 forks source link

ninja: error: CMakeFiles/impl-Debug.ninja:675: multiple rules generate qschematic/Debug/qschematicd.lib #50

Closed aboelens closed 9 months ago

aboelens commented 9 months ago

Building QSchematic on windows 10 I get the error message:

ninja: error: CMakeFiles/impl-Debug.ninja:675: multiple rules generate qschematic/Debug/qschematicd.lib

This is due to the static and shared library having the same name. Either removing the shared or static target from the CMakeList.txt gets rid of the error message.

Tectu commented 9 months ago

Quick question: Does that happen when you use Visual Studio?

aboelens commented 9 months ago

Hi Joel,

That is building from PowerShell.

Met vriendelijke groet / Kind regards,

Arnout Boelens Principal Researcher Thermal Processes R&D - Rolling, Finishing & Measurement T: +31 (0) 251 495 136

Sensitivity: general

From: Joel Bodenmann @.> Sent: Tuesday, November 21, 2023 9:31 PM To: simulton/QSchematic @.> Cc: Boelens, Arnout @.>; Author @.> Subject: Re: [simulton/QSchematic] ninja: error: CMakeFiles/impl-Debug.ninja:675: multiple rules generate qschematic/Debug/qschematicd.lib (Issue #50)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification External email

Quick question: Is that using Visual Studio?

— Reply to this email directly, view it on GitHubhttps://github.com/simulton/QSchematic/issues/50#issuecomment-1821632889, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEFFXO33IIEMTBHEYDNROQ3YFUFRDAVCNFSM6AAAAAA7VB5GDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGYZTEOBYHE. You are receiving this because you authored the thread.Message ID: @.**@.>>


This transmission is confidential and must not be used or disclosed by anyone other than the intended recipient. Neither Tata Steel Europe Limited nor any of its subsidiaries can accept any responsibility for any use or misuse of the transmission by anyone.

For address and company registration details of certain entities within the Tata Steel Europe group of companies, please visit https://www.tatasteeleurope.com/en/legal-notice/entities


Tectu commented 9 months ago

This problem has been popping up on the Windows side before. I'll get that fixed but that might take a couple of days (definitely not before the weekend).

I suggest that you remove the corresponding CMake add_library() call to either the static or the shared library until we've fixed this in the upstream repository.

aboelens commented 9 months ago

Thanks! Will do

Tectu commented 9 months ago

This should now be fixed in the current master branch. Can you please check?

Note that you'll have to manually supply the correspondingly updated version of GPDS which also suffered from this problem. See https://github.com/simulton/gpds/issues/16

Tectu commented 9 months ago

The 1.8.1 release should have fixed this issue. Thank you for reporting!