LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   error when compiling xboard - xt headers not found (https://www.linuxquestions.org/questions/centos-111/error-when-compiling-xboard-xt-headers-not-found-4175717732/)

sirius57 10-13-2022 08:44 PM

error when compiling xboard - xt headers not found
 
Hello, I run ./configure in a terminal on the xboard source code and at the end of the output is: xt headers not found.I have made sure kernel-devel and kernel-headers are installed as well as texinfo.After searching, I can not find any reference for xt headers. I am running centos 7 32 bit in virtualbox with guest additions installed.The xboard source code compiles for all platforms.

bathory 10-15-2022 01:35 AM

Quote:

Originally Posted by sirius57 (Post 6386235)
Hello, I run ./configure in a terminal on the xboard source code and at the end of the output is: xt headers not found.I have made sure kernel-devel and kernel-headers are installed as well as texinfo.After searching, I can not find any reference for xt headers. I am running centos 7 32 bit in virtualbox with guest additions installed.The xboard source code compiles for all platforms.

I guess you need to install libXt-devel package.

sirius57 10-15-2022 11:13 AM

Thank you. I was able to run ./configure and it created a makefile. However, at the end of make, there was a fatal error:
xboard.c:147:27: fatal error: X11/Xmu/Atoms.h: No such file or directory
#include <X11/Xmu/Atoms.h>
^
compilation terminated.

Am I missing another devel package?

bathory 10-15-2022 11:32 AM

Quote:

Originally Posted by sirius57 (Post 6386566)
Thank you. I was able to run ./configure and it created a makefile. However, at the end of make, there was a fatal error:
xboard.c:147:27: fatal error: X11/Xmu/Atoms.h: No such file or directory
#include <X11/Xmu/Atoms.h>
^
compilation terminated.

Am I missing another devel package?

Yes, you miss libXmu-devel
FYI you can use yum to find the package containing missing file(s):
Code:

yum provides "*X11/Xmu/Atoms.h"
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.in2p3.fr
 * epel: mirror.in2p3.fr
 * extras: mirror.in2p3.fr
 * updates: mirror.in2p3.fr
libXmu-devel-1.1.2-2.el7.i686 : X.Org X11 libXmu development package
Repo        : base
Matched from:
Filename    : /usr/include/X11/Xmu/Atoms.h



libXmu-devel-1.1.2-2.el7.x86_64 : X.Org X11 libXmu development package
Repo        : base
Matched from:
Filename    : /usr/include/X11/Xmu/Atoms.h


sirius57 10-15-2022 12:09 PM

I used your example of finding missing packages on another error and I was able to compile xboard.When xboard is run there is a font error:
@localhost xboard-4.4.2]$ xboard
xboard: no fonts match pattern -*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*

is the yum syntax the same for finding missing fonts?

sirius57 10-15-2022 02:15 PM

I used yum to install additional fonts, but did not contain the helvetica font. I did searching and found helvetica.ttf and that should contain all the helvetica fonts. I will place it in /usr/share/fonts/ and create a sub-folder /myfonts/
And run: sudo fc-cache -f -v /usr/share/fonts/myfonts/

bathory 10-17-2022 03:59 AM

Quote:

Originally Posted by sirius57 (Post 6386579)
xboard: no fonts match pattern -*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*

Searching for this error gives many hits, so it looks like xborad does not work well with recent distros X-windows system, regarding fonts.
Perhaps the 2 answers here could work in your case, or else take a look also at the other search results.

Regards

sirius57 10-23-2022 12:49 PM

I recompiled the code by the example in the link and had the same complaint about the font. I am searching for the font package. Tried eboard and received a different complaint when compiling. Not giving up. I read that the centos repository data base can be broken by using 3rd party repositories.A 3rd party repository called the snap store claims to work with centos7. I would prefer to compile the code and avoid the risk of breaking the system. Any thoughts on 3rd party repositories?

bathory 10-27-2022 02:21 AM

Quote:

Originally Posted by sirius57 (Post 6388165)
I recompiled the code by the example in the link and had the same complaint about the font. I am searching for the font package. Tried eboard and received a different complaint when compiling. Not giving up. I read that the centos repository data base can be broken by using 3rd party repositories.A 3rd party repository called the snap store claims to work with centos7. I would prefer to compile the code and avoid the risk of breaking the system. Any thoughts on 3rd party repositories?

I don't think that there is a risk to break your system using third party repositories.
I've used EPEL in Centos6 and Centos7 without any problems...


All times are GMT -5. The time now is 03:42 PM.