Closed sagitter closed 3 years ago
Looks like a name conflict because of raw macros in Xlib.h. There's tons of other projects out there that have experienced the same issue. :(
Looks like you're not compiling with -D_PYMOL_NO_MAIN
. Are you compiling with --glut
?
Looks like you're not compiling with
-D_PYMOL_NO_MAIN
. Are you compiling with--glut
?
Yes, but it fails without --glut
, too.
Is not there any chance to fix these errors?
This is ultimately something that Xlib needs to fix, but in the meantime, something like
#ifdef None
#undef None
#endif
above where we define our own None
can likely fix it, but I don't have a system where I can reproduce this error to be sure.
Hi @JarrettSJohnson
I don't know what i'm doing but your suggestion is working:
--- a/layer1/Basis.orig.h 2021-05-10 20:38:37.000000000 +0200
+++ b/layer1/Basis.h 2021-10-05 20:07:14.567410004 +0200
@@ -38,6 +38,10 @@
*/
+#ifdef None
+#undef None
+#endif
+
enum class cCylCap {
None = 0,
Flat = 1,
Here the full build log.
Thanks for giving it a shot. I'll commit to master in just a bit.
Hi all.
pymol-2.5.0
is not compiling inFedora 34
(GCC-11.1.1, Python-3.9) with following errors: