Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build error when JKQtPlotter_BUILD_INCLUDE_XITS_FONTS set to OFF #41

Closed
smistad opened this issue Apr 6, 2020 · 1 comment
Closed

Comments

@smistad
Copy link

smistad commented Apr 6, 2020

Turning off the cmake option JKQtPlotter_BUILD_INCLUDE_XITS_FONTS causes the following error on windows (MSVC 2019, Qt 5.14):

jkqtmathtext.obj : error LNK2019: unresolved external symbol "int __cdecl qInitResources_xits(void)" (?qInitResources_xits@@YAHXZ) referenced in function "public: __cdecl JKQTMathText::JKQTMathText(class QObject *)" (??0JKQTMathText@@QEAA@PEAVQObject@@@Z)

Most likely caused by the following line in jkqtmathtext.cpp:

Q_INIT_RESOURCE(xits);
jkriege2 added a commit that referenced this issue Jun 28, 2020
…TS set to OFF", code tried to use XITS-ressources, which were not there oif option is switched off. --> solved by adding optional private preprocessor definition
@jkriege2
Copy link
Owner

Thanks for reporting and sorry for the long wait time ... I fixed the bug with f6505e3.

best,
JAN

@jkriege2 jkriege2 self-assigned this Jun 28, 2020
jkriege2 added a commit that referenced this issue Jun 28, 2020
…TS set to OFF", code tried to use XITS-ressources, which were not there oif option is switched off. --> solved by adding optional private preprocessor definition

(cherry picked from commit f6505e3)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants