[PyMOL] linker errors on win32?

2003-08-22 Thread Tina Li
Hello,

I was following instructions in setup/INSTALL.win32 (as in pymol-0_90-src.tgz)
to build PyMOL. I have all the external components (glut, zlib, libpng) in
place. When I tried

python setup.py build

It generated linker errors:

C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL /nologo
/INCREME
NTAL:NO /LIBPATH:win32/lib /LIBPATH:C:\Python22\libs opengl32.lib glu32.lib
glut
32.lib libpng.lib zlib.lib /EXPORT:init_cmd
build\temp.win32-2.2\Release\Block.o [...more .obj here...]
...
   Creating library build\temp.win32-2.2\Release\_cmd.lib and object
build\temp.win32-2.2\Release\_cmd.exp
Map.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
MemoryDebug.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
Basis.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
Ray.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
Map.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
MemoryDebug.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
Basis.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
Ray.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
Map.obj : error LNK2001: unresolved external symbol _MemoryCacheCalloc
MemoryDebug.obj : error LNK2001: unresolved external symbol
_MemoryCacheRealloc
main.obj : error LNK2001: unresolved external symbol _MemoryCacheDone
main.obj : error LNK2001: unresolved external symbol _MemoryCacheInit
build\lib.win32-2.2\pymol\_cmd.pyd : fatal error LNK1120: 6 unresolved
externals

error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe"'
failed with exit status 1120

I wonder if I'm missing a particular library.


Thanks much,

Tina





RE: [PyMOL] linker errors on win32?

2003-08-22 Thread Warren L. DeLano
Tina,

"layer0/MemoryCache.c" is missing from the list of sources in
the setup.py file.  If you add that in right after the
"layer0/MemoryDebug.c", it should build.

Sorry about that!

Cheers,
Warren


--
mailto:war...@delanoscientific.com
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154 
Fax   (650)-593-4020

> -Original Message-
> From: pymol-users-ad...@lists.sourceforge.net [mailto:pymol-users-
> ad...@lists.sourceforge.net] On Behalf Of Tina Li
> Sent: Friday, August 22, 2003 10:31 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] linker errors on win32?
> 
> Hello,
> 
> I was following instructions in setup/INSTALL.win32 (as in pymol-0_90-
> src.tgz)
> to build PyMOL. I have all the external components (glut, zlib,
libpng) in
> place. When I tried
> 
> python setup.py build
> 
> It generated linker errors:
> 
> C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL
/nologo
> /INCREME
> NTAL:NO /LIBPATH:win32/lib /LIBPATH:C:\Python22\libs opengl32.lib
> glu32.lib
> glut
> 32.lib libpng.lib zlib.lib /EXPORT:init_cmd
> build\temp.win32-2.2\Release\Block.o [...more .obj here...]
> ...
>Creating library build\temp.win32-2.2\Release\_cmd.lib and object
> build\temp.win32-2.2\Release\_cmd.exp
> Map.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
> MemoryDebug.obj : error LNK2001: unresolved external symbol
> _MemoryCacheFree
> Basis.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
> Ray.obj : error LNK2001: unresolved external symbol _MemoryCacheFree
> Map.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
> MemoryDebug.obj : error LNK2001: unresolved external symbol
> _MemoryCacheMalloc
> Basis.obj : error LNK2001: unresolved external symbol
_MemoryCacheMalloc
> Ray.obj : error LNK2001: unresolved external symbol _MemoryCacheMalloc
> Map.obj : error LNK2001: unresolved external symbol _MemoryCacheCalloc
> MemoryDebug.obj : error LNK2001: unresolved external symbol
> _MemoryCacheRealloc
> main.obj : error LNK2001: unresolved external symbol _MemoryCacheDone
> main.obj : error LNK2001: unresolved external symbol _MemoryCacheInit
> build\lib.win32-2.2\pymol\_cmd.pyd : fatal error LNK1120: 6 unresolved
> externals
> 
> error: command '"C:\Program Files\Microsoft Visual
> Studio\VC98\BIN\link.exe"'
> failed with exit status 1120
> 
> I wonder if I'm missing a particular library.
> 
> 
> Thanks much,
> 
> Tina
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single
machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click
> here:http://www.vmware.com/wl/offer/358/0
> ___
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users




[PyMOL] Back of surface

2003-08-22 Thread Jose Avalos
Dear all:

I would like to know how to keep the back of a surface (cut via the slab)
dark rather than white (when using a wite background) once I ray trace the
image.

Thank you in advance

Jose



[PyMOL] problems updating Mandrake packages

2003-08-22 Thread Austin

Hello,
I'm the maintainer for the pymol package in Mandrake Linux.
I recently updated it to 0.90, but it won't run now.  I'm not a python expert, 
so maybe someone here could help me interpret the following error?


[aus...@gamma373-165 SOURCES]$ pymol.com
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/pymol/__init__.py", line 92, in ?
import pymol
  File "/usr/lib/python2.3/site-packages/pymol/__init__.py", line 300, in ?
import _cmd
ImportError: /usr/lib/libpng.so.3: undefined symbol: deflate

We're currently using python 2.3, pil 1.1.4, libpng 1.2.5.

Any suggestions would be appreciated, as I'm supposed to have this working by 
Wednesday.  I'm not on the list, so a cc would also be appreciated.


Thanks,
Austin
--
Austin Acton Hon.B.Sc.
 Synthetic Organic Chemist, Teaching Assistant
   Department of Chemistry, York University, Toronto
 MandrakeClub Volunteer (www.mandrakeclub.com)
 homepage: www.groundstate.ca