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

Generation of rfbconfig.h and rfbint.h #79

Closed
cinemast opened this issue May 26, 2015 · 9 comments
Closed

Generation of rfbconfig.h and rfbint.h #79

cinemast opened this issue May 26, 2015 · 9 comments

Comments

@cinemast
Copy link
Contributor

Hi!

At debian we currently have troubles with multi-arch support for libvncserver because of the dynamic generation of the above mentioned headers. Is this really required?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786822

Can you help us out with that? How would it influence if we only generated those files on an amd64 build machine and reuse it for all the other archs?

How does the WORDS_BIGENDIAN influence the compilation?

Thank you in advance.

@bk138
Copy link
Member

bk138 commented May 28, 2015

I'll have a look. Maybe @dscho can provide some insights on this as well...

@dscho
Copy link
Contributor

dscho commented May 28, 2015

IIRC the rfbint.h was written out due to a lack of stdint.h in MinGW headers back in the days.

Unfortunately, I do not think that we can do anything about generating rfbconfig.h. It prevents incompatible .so libraries to be picked up (e.g. when the struct assumes that libjpeg is available and sets aside a couple of fields to use it, but libjpeg is actually not available as per the libvncserver.so).

@cinemast
Copy link
Contributor Author

I see. But what about the WORDS_BIGENDIAN? How does it influence the build process. Can this maybe be moved to a header which is not exported to /usr/include?

@cinemast
Copy link
Contributor Author

I think it is only used by common/md5.c

@bk138
Copy link
Member

bk138 commented May 28, 2015

To start with, https://github.com/LibVNC/libvncserver/tree/gen-headers-rework removes rfbint.h generation, which should be reasonable nowadays.

@bk138
Copy link
Member

bk138 commented May 28, 2015

97f442e now relies (as md5sum.c did already) on endian.h instead of doing build system tests. Please comment.

@dscho
Copy link
Contributor

dscho commented May 28, 2015

I guess if anybody wants to get LibVNCServer to compile on Windows again, they should fix it (IIRC there was no endian.h in MinGW nor in Visual Studio's headers when I last tried to compile that). So I am fine with your change.

@cinemast
Copy link
Contributor Author

Thank you for being so supportive on this :)

I will take those two commits as patches to the debian package. I assume they will be integrated in the next release of libvncserver?

@bk138
Copy link
Member

bk138 commented May 28, 2015

Yep.

@bk138 bk138 closed this as completed May 28, 2015
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

3 participants