Skip to content
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

/opt/X11/include/xorg/dixfontstr.h:30:10: fatal error: 'X11/fonts/libxfont2.h' file not found #187

Open
nashford77 opened this issue Mar 26, 2021 · 7 comments

Comments

@nashford77
Copy link

/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in module
CC rdpDraw.lo
In file included from rdpDraw.c:44:
/opt/X11/include/xorg/dixfontstr.h:30:10: fatal error: 'X11/fonts/libxfont2.h' file not found
#include <X11/fonts/libxfont2.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [rdpDraw.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
noel@Noels-Mac-Mini-M1 xorgxrdp %

Any Ideas?

@matt335672
Copy link
Member

It's not clear what system you're on, but on a debian derivative that file is provided by the libxfont-dev package:-

$ find /usr/include/ -name libxfont2.h
/usr/include/X11/fonts/libxfont2.h
$ dpkg -S /usr/include/X11/fonts/libxfont2.h
libxfont-dev: /usr/include/X11/fonts/libxfont2.h

So you'll need to install whatever provides that on your system.

@nashford77
Copy link
Author

nashford77 commented Mar 26, 2021 via email

@matt335672
Copy link
Member

That, I'm afraid, I can't help you with. OSX isn't one of our supported platforms. I didn't think the main desktop was written to run on X11 any more.

@JeffersonQin
Copy link

I got that problem too just now. What I did is that I directly modified the file /opt/X11/include/xorg/dixfontstr.h. I changed the include statement into following:

#include "../X11/fonts/libxfont2.h"

and that worked for me. I successfully deployed the rdp server on macOS.

image

@JeffersonQin
Copy link

Check this page: https://github.com/neutrinolabs/xrdp/wiki/Building-on-OSX-(not-official)

I've just modified the troubleshooting part of wiki.

@Zekfad
Copy link

Zekfad commented Sep 23, 2021

I've used this to fix this error on mac os big sur:

export CPPFLAGS="-I/usr/local/opt/openssl/include -I/opt/X11/include"

@AlickH
Copy link

AlickH commented Aug 31, 2023

find another way to solve this pronlem: just copy the X11 folder into the xorg folder and make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants