xorgxrdp icon indicating copy to clipboard operation
xorgxrdp copied to clipboard

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

Open nashford77 opened this issue 3 years ago • 7 comments

/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?

nashford77 avatar Mar 26 '21 15:03 nashford77

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.

matt335672 avatar Mar 26 '21 16:03 matt335672

I got it to work after this, it's osx, brew install has a package for the fonts. That said I now have a black screen when I RDP to this ... Wondering why in that

On Fri, Mar 26, 2021, 12:29 PM matt335672 @.***> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/neutrinolabs/xorgxrdp/issues/187#issuecomment-808354596, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSSJU4533E6INPOEDRYZ33TFSY63ANCNFSM4Z3UYERA .

nashford77 avatar Mar 26 '21 16:03 nashford77

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.

matt335672 avatar Mar 26 '21 16:03 matt335672

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 avatar Apr 05 '21 13:04 JeffersonQin

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

I've just modified the troubleshooting part of wiki.

JeffersonQin avatar Apr 15 '21 05:04 JeffersonQin

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"

Zekfad avatar Sep 23 '21 16:09 Zekfad

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

AlickH avatar Aug 31 '23 16:08 AlickH