neutrinolabs / xorgxrdp

Xorg drivers for xrdp
Other
428 stars 108 forks source link

building source error, error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’ #260

Open a-stana opened 1 year ago

a-stana commented 1 year ago

hi there, after running the previous steps, executing 'make' results in the following errors:

` CC rdpGlyphs.lo CC rdpPixmap.lo CC rdpInput.lo CC rdpClientCon.lo rdpClientCon.c: In function ‘rdpClientConProcessMsgClientInfo’: rdpClientCon.c:959:31: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’ 959 | if (clientCon->client_info.monitorCount > 0) | ^ rdpClientCon.c:962:84: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’ 962 | client monitor data, monitorCount=%d", clientCon->client_info.monitorCount)); | ^

rdpClientCon.c:56:43: note: in definition of macro ‘LLOGLN’ 56 | do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0) | ^~~~~ rdpClientCon.c:965:50: error: ‘struct xrdp_client_info’ has no member named ‘minfo’ 965 | memcpy(dev->minfo, clientCon->client_info.minfo, sizeof(dev->minfo)); | ^ rdpClientCon.c:966:51: error: ‘struct xrdp_client_info’ has no member named ‘monitorCount’ 966 | dev->monitorCount = clientCon->client_info.monitorCount; | ^ make[3]: *** [Makefile:672: rdpClientCon.lo] Error 1 ` any ideas on what I can do about this? I appreciate any help. thanks

matt335672 commented 1 year ago

It looks like your xrdp version and xorgxrdp versions don't match.

You xorgxrdp version looks to be around 0.2.15, based on those errors. The include file xrdp-client_info.h which you are picking up appears to be from a later version.

Does that make sense?

a-stana commented 1 year ago

hi there matt, thanks for your help and response. your answer makes a lot of sense but this was not the the issue in my case. it seems that i did not rename the source code folders and kept the version numbers within the folder names. after i deleted them and tried again including the move command for renaming the folders it worked. Could that have been the issue? i don't know for sure. thanks a lot.

matt335672 commented 1 year ago

You can build with make V=1 to see exactly what is being passed to the compiler. That might make it clearer where the include file is being picked up from.