Compilation and running problems

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
WildWolfCJ
Full Member
Posts: 84
Joined: Fri Oct 20, 2023 7:21 am

Compilation and running problems

Post by WildWolfCJ » Wed Nov 01, 2023 9:07 am

WIN10 QCAD3.26.2.5
I downloaded the latest 3.28.2 code from github, but the compilation failed. Then I downloaded the 3.26.2.5 code. Using the vs2022+QT plug-in, I can compile the DEBUG version normally and run successfully, but the compiled RELEASE version appears in the attachment. Error, what should I do to resolve this error?
Attachments
VeryCapture_20231101160710.jpg
VeryCapture_20231101160710.jpg (100.86 KiB) Viewed 3854 times

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Compilation and running problems

Post by CVH » Wed Nov 01, 2023 10:26 am

WildWolfCJ wrote:
Thu Oct 26, 2023 7:24 am
Hi all!
QCAD3.28.2 WINDOWS10
I have purchased the professional version of QCAD.
GitHub only contains the QCAD open source code (QCAD CE) so I see no need in compiling that when you already have a Pro licence.
IMHO that is a major step backwards.

As far as I know the BBox of text entities or the explosion of these text entities in a dxf does not include Pro features.
Meaning that you could share your custom command line script among CE users.
From the moment you are using Pro features then the script itself should avoid running on a CE version.
One should not reverse engineer or even steal proprietary code with the idea of re-distribution, compiled or not.

Read further on this endeavours (Search term "compiling"):
https://www.qcad.org/rsforum/viewtopic. ... ing#p41736
https://www.qcad.org/rsforum/viewtopic. ... ing#p25477
...

Quoting some of Andrews replies:
  • Compiling C++ Plugins can be very involved.
    Are you sure you need a compiled plugin? What are you trying to achieve?
    It might be a lot easier to use the script interface for what you are trying to do.
  • We are unable to provide support for compiling / using QCAD CE
  • Please note that this is code for a script (JavaScript), not C++ code.
    You do not need to compile the script.
    Simply put it in the scripts directory of your QCAD installation in a folder with the same name as the script.
  • ...
Regards,
CVH

WildWolfCJ
Full Member
Posts: 84
Joined: Fri Oct 20, 2023 7:21 am

Re: Compilation and running problems

Post by WildWolfCJ » Wed Nov 01, 2023 1:06 pm

CVH wrote:
Wed Nov 01, 2023 10:26 am
WildWolfCJ wrote:
Thu Oct 26, 2023 7:24 am
Hi all!
QCAD3.28.2 WINDOWS10
I have purchased the professional version of QCAD.
GitHub only contains the QCAD open source code (QCAD CE) so I see no need in compiling that when you already have a Pro licence.
IMHO that is a major step backwards.

As far as I know the BBox of text entities or the explosion of these text entities in a dxf does not include Pro features.
Meaning that you could share your custom command line script among CE users.
From the moment you are using Pro features then the script itself should avoid running on a CE version.
One should not reverse engineer or even steal proprietary code with the idea of re-distribution, compiled or not.

Read further on this endeavours (Search term "compiling"):
https://www.qcad.org/rsforum/viewtopic. ... ing#p41736
https://www.qcad.org/rsforum/viewtopic. ... ing#p25477
...

Quoting some of Andrews replies:
  • Compiling C++ Plugins can be very involved.
    Are you sure you need a compiled plugin? What are you trying to achieve?
    It might be a lot easier to use the script interface for what you are trying to do.
  • We are unable to provide support for compiling / using QCAD CE
  • Please note that this is code for a script (JavaScript), not C++ code.
    You do not need to compile the script.
    Simply put it in the scripts directory of your QCAD installation in a folder with the same name as the script.
  • ...
Regards,
CVH
Thank you very much for your answer. We are using the professional version, but the open source code on github can help me understand the principle better.

Post Reply

Return to “Chat”