Opened 11 years ago

Closed 9 years ago

#41320 closed submission (fixed)

submission: xcrysden

Reported by: dstrubbe (David Strubbe) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager), ltalirz (Leopold Talirz), dstrubbe (David Strubbe)
Port: xcrysden

Description

New port xcrysden, a molecular visualization program. It depends on mesa702, a port I just submitted in #41319, since it won't work with current versions of mesa.

Attachments (4)

Portfile (4.7 KB) - added by dstrubbe (David Strubbe) 11 years ago.
patch-Makefile.diff (2.7 KB) - added by dstrubbe (David Strubbe) 11 years ago.
patch-tests-crystals.tcl.diff (1.4 KB) - added by dstrubbe (David Strubbe) 11 years ago.
patch-Tcl-wnOpen.tcl.diff (930 bytes) - added by dstrubbe (David Strubbe) 11 years ago.

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by dstrubbe (David Strubbe)

Attachment: Portfile added

Changed 11 years ago by dstrubbe (David Strubbe)

Attachment: patch-Makefile.diff added

Changed 11 years ago by dstrubbe (David Strubbe)

Changed 11 years ago by dstrubbe (David Strubbe)

Attachment: patch-Tcl-wnOpen.tcl.diff added

comment:1 in reply to:  description Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to dstrubbe@…:

It depends on mesa702, a port I just submitted in #41319, since it won't work with current versions of mesa.

What is the problem with newer versions of mesa?

comment:2 Changed 11 years ago by dstrubbe (David Strubbe)

Here is the situation, judging from my own experience and those of others on the XCrySDen email list: on Snow Leopard, XCrySDen worked fine with mesa 7.11. On Lion, XCrySDen with mesa > 7.0.2 would run, but be more or less unusable due to flickering of the graphics. On Mountain Lion, XCrySDen with mesa > 7.0.2 (or GL from /usr/X11R6/lib, /System/Library/Frameworks/OpenGL.framework/Libraries, or /opt/X11/lib) crashes on initializing the window with an error of the form:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0xffffffff
  Serial number of failed request:  566
  Current serial number in output stream:  567

Specifically I tried mesa 8.0.4 and 7.11.2. I tried to use some earlier versions of mesa but had trouble building them. It certainly would be preferable to use current mesa rather than a separate old version, but I was not able to figure out how. If anyone has suggestions of what might be the trouble or how to proceed in debugging, I'll give it a try. I do know that the problems with mesa 8 are not essential since mesa 8 works on Ubuntu with XCrySDen.

comment:3 Changed 11 years ago by dstrubbe (David Strubbe)

A bit more info:

  • mesa @8.0.4+iglx : xcrysden cannot compile because libGL.dylib and libGLU.dylib are broken links.
    lrwxr-xr-x  1 root  admin  14 Nov 13 17:45 /opt/local/lib/libGLU.dylib -> libGLU.1.dylib
    lrwxr-xr-x  1 root  admin  13 Nov 13 17:45 /opt/local/lib/libGL.dylib -> libGL.1.dylib
    
  • mesa @7.8.2_2: same problem as 7.11.2, 8.0.4.
  • mesa @7.6.1, mesa @7.4.2: errors compiling. (I know, not surprising that old Portfiles don't necessarily work anymore since many things have changed.) main.log errors beginning with this:
    :info:build /usr/bin/clang -I. -Iinclude -Iinclude/internal -DGLX_ALIAS_UNSUPPORTED -I/opt/local/include -I/opt/local/include -Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT -DPUBLIC=""  -I/opt/local/include -Os -c glxcmds.c
    :info:build clang: warning: argument unused during compilation: '-ggdb3'
    :info:build In file included from glxcmds.c:41:
    :info:build In file included from ./apple_glx_context.h:36:
    :info:build In file included from /System/Library/Frameworks/OpenGL.framework/Headers/CGLContext.h:9:
    :info:build /System/Library/Frameworks/OpenGL.framework/Headers/gliDispatch.h:844:2: error: type name requires a specifier or qualifier
    :info:build         GLsync (*fence_sync) (GLIContext ctx, GLenum condition, GLbitfield flags);
    :info:build         ^
    

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 11 years ago by ltalirz (Leopold Talirz)

Cc: leopold.talirz@… added

Cc Me!

comment:6 Changed 10 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added

Cc Me!

comment:7 Changed 9 years ago by dstrubbe (David Strubbe)

Resolution: fixed
Status: newclosed

A new patch to the Tcl scripts for XCrySDen allows it to work with the current version of Mesa (and the system OpenGL, for that matter), so I have just committed a Portfile that no longer needs an old Mesa 7.0.2, in r140738.

Note: See TracTickets for help on using tickets.