New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
978b2a786834c7c7cd48542e802e857cd8d9302d brings link problem #174
Comments
On which platform are you trying to build |
intel 11gen + fedora37
…________________________________
From: Josef Heinen ***@***.***>
Sent: Tuesday, March 7, 2023 10:13:57 PM
To: sciapp/gr ***@***.***>
Cc: DragonBillow ***@***.***>; Author ***@***.***>
Subject: Re: [sciapp/gr] 978b2a7 brings link problem (Issue #174)
On which platform are you trying to build gr?
―
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKBJ6AIHI4EVXPLFL6LNTEDW247CLANCNFSM6AAAAAAVSGPUPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
intel 11gen+fedora37+gcc(with ccache)(or clang)
…________________________________
From: 张 龙涛 ***@***.***>
Sent: Tuesday, March 7, 2023 10:23:57 PM
To: sciapp/gr ***@***.***>; sciapp/gr ***@***.***>
Cc: Author ***@***.***>
Subject: Re: [sciapp/gr] 978b2a7 brings link problem (Issue #174)
intel 11gen + fedora37
________________________________
From: Josef Heinen ***@***.***>
Sent: Tuesday, March 7, 2023 10:13:57 PM
To: sciapp/gr ***@***.***>
Cc: DragonBillow ***@***.***>; Author ***@***.***>
Subject: Re: [sciapp/gr] 978b2a7 brings link problem (Issue #174)
On which platform are you trying to build gr?
―
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKBJ6AIHI4EVXPLFL6LNTEDW247CLANCNFSM6AAAAAAVSGPUPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I tried to reproduce the linker errors on a fresh Fedora 37, but couldn't so far. What I did: sudo dnf groupinstall "Development Tools"
sudo dnf install \
cmake \
freetype-devel \
gcc-c++ \
libjpeg-turbo-devel \
libpng-devel \
qhull-devel \
qt5-qtdeclarative-devel
git clone https://github.com/sciapp/gr.git
cd gr
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build How exactly did you try to build GR? |
thanks you for test。I'll test it tommor
…________________________________
From: Ingo Meyer ***@***.***>
Sent: Wednesday, March 8, 2023 5:34:35 PM
To: sciapp/gr ***@***.***>
Cc: DragonBillow ***@***.***>; Author ***@***.***>
Subject: Re: [sciapp/gr] 978b2a7 brings link problem (Issue #174)
I tried to reproduce the linker errors on a fresh Fedora 37, but couldn't so far. What I did:
sudo dnf groupinstall "Development Tools" && \
sudo dnf install \
cmake \
freetype-devel \
gcc-c++ \
libjpeg-turbo-devel \
libpng-devel \
qhull-devel \
qt5-qtdeclarative-devel
git clone https://github.com/sciapp/gr.git
cd gr
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
How exactly did you try to build GR?
Did you try to compile without ccache?
―
Reply to this email directly, view it on GitHub<#174 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKBJ6ANM2LJOF3432DYMLR3W3BHCXANCNFSM6AAAAAAVSGPUPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
no. That is, is it convenient that I don't use ccache or there will be link problems. |
I recorded a video to demonstrate my steps: Peek.2023-03-09.14-40.mp4I'm not quite sure why the result of our build is different. I'll try it later with a fedora container. |
Hi @cathaysia, this would not explain why the issues start with the commit mentioned above, but I noticed the following in the video you recorded: Please make sure to install the FreeType library and header so that it can be found by CMake ( |
OK, install freetype solved link problem. :) |
I have the same link problem. Seems if I don't have freetype, it failed to link.
Does this mean freetype is an optional dependence by design? Or on the contrary, freetype is just a required dependence? |
It should be possible to build GR without freetype, although it is highly recommended to use it for better font rendering. Getting a link error would indicate that freetype was found and used during compilation but that there are issues in the link stage. Could you provide some more details (used system and CMake log)? You can define export VERBOSE=1 before running the build process to get a list of all executed commands. |
@IngoMeyer441 Can you reproduce it? |
What would you expect how 3D text or LaTeX formulas should be rendered without outline fonts (provided by FreeType). What is the reason why you do not want to use the FT libraries? In which environment do you want to use GR? |
In fact I have freetype installed. But now that the gentoo gr package provide the freetype USE option, then it should work, at least it should install successfully. If it's impossible to compile without freetype, then the gentoo gr package should remove the freetype USE option and make it a mandatory dependency. I don't necessarily have to install gr in this case, just want to repair the gentoo package. |
@xiangluoming Yes, I can reproduce this. GR seems to expect Freetype functions even if |
Should be fixed with ee77e31. |
It works. Thank you :) |
when I build gr in 978b2a , it tell me:
978b2a is the first bad commit cause this problem.
The text was updated successfully, but these errors were encountered: