Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Help with compiling...

Help with compiling...
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Location: CIncinnat, OH USA
Status: Offline
Reply With Quote
Mar 31, 2001, 12:20 AM
 
I am trying to compile a molecular image viewing program called Molscript. I made a few changes to the Makefile but cannot get it to finish compiling. I keep getting the following:

[localhost:/usr/local/molscript-2.1.2] root# make
cc -o molscript molscript.tab.o global.o lex.o col.o select.o state.o graphics.o segment.o coord.o xform.o postscript.o raster3d.o vrml.o regex.o clib/clib.a -lm
/usr/bin/ld: Undefined symbols:
_eps_set
_eps_set_bw
_eps_set_scale
_gifi_set
_jpgi_set
_jpgi_set_quality
_ogl_set
_ogl_set_accum
_pngi_set
_pngi_set_compression
_sgii_set
_glutStrokeRoman
make: *** [molscript] Error 1

I know a lot of this is program specific, but what does the "Error 1" mean?

Sorry for the newbie question, but I used to use this program on our IRIX system and want to try it on my mac.

In case anyone is interested, the program is at http://www.avatar.se/molscript/

Thanks.

Sam V.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Mar 31, 2001, 04:01 AM
 

A quick guess from name of those undefine functions, I think you miss some file format process libraries/routines.

The Error 1 is from `make' and tells you the cc does not finish its job.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Mar 31, 2001, 04:49 AM
 

A quick guess from name of those undefine functions, I think you miss some file format process libraries/routines.

The Error 1 is from `make' and tells you the cc does not finish its job.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Mar 31, 2001, 04:57 AM
 

A quick guess from name of those undefine functions, I think you miss some file format process libraries/routines.

The Error 1 is from `make' and tells you the cc does not finish its job.
     
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 31, 2001, 08:22 AM
 
They are missing functions.

Your missing the support libraries for various output formats.

See: http://www.avatar.se/molscript/doc/links.html#libraries

If you cannot get or compile those libraries first, you need to somehow
tell the molscript compile to not use those formats.
     
volcs  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Location: CIncinnat, OH USA
Status: Offline
Reply With Quote
Mar 31, 2001, 09:39 AM
 
Thanks for the replies.
The makefile that I am using is, according to the instructions, supposed to work without any installed external libraries.

From the installation instructions:

"However, the basic implementation of MolScript (with the PostScript, Raster3D and VRML 2.0 output modes) needs no external software, and is straightforward to compile. "

But I still get the above error when I try to complie.

Any other thoughts?

-Sam V.
     
volcs  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Location: CIncinnat, OH USA
Status: Offline
Reply With Quote
Mar 31, 2001, 10:41 AM
 
OK. Got it. I needed to reinstall the source folder and do the basic makefile. It worked fine.

Now I need to get Ghostscript installed so I can view PS files. This is providing to be more difficult...

-Sam
     
volcs  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Location: CIncinnat, OH USA
Status: Offline
Reply With Quote
Mar 31, 2001, 11:47 AM
 
I'm getting pretty far on compiling Ghostscript...I get caught when it looks for the X11 libraries. I can't find them and don't think they are part of X. Any ideas?
     
Junior Member
Join Date: Mar 2001
Status: Offline
Reply With Quote
Mar 31, 2001, 01:03 PM
 
In case you're not aware, there's already a carbonized PostScript viewer out, called MacGhostView.

See www.kiffe.com/macghostview.html

-Peter
     
volcs  (op)
Fresh-Faced Recruit
Join Date: Mar 2001
Location: CIncinnat, OH USA
Status: Offline
Reply With Quote
Mar 31, 2001, 01:35 PM
 
Thanks Peter. That is very helpful. I had given up on compiling Ghostscript and was using Photoshop in Classic. This is much better, though.

I am trying to complie Rayshade now (to render the molecular output files from molscript).

The Configure file from Rayshade asks me where my C libraries are located... They are not in /usr/local or /usr/lib. Where are they kept?
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Chicago, IL USA
Status: Offline
Reply With Quote
Apr 1, 2001, 11:57 AM
 
Remove -lm from the LIBS line. OSX has this functionality without having the library.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Apr 1, 2001, 05:07 PM
 
Originally posted by thel:
Remove -lm from the LIBS line. OSX has this functionality without having the library.
This is no longer needed. OS X 10.0 still functions with -lms included, since it was such a pain to remove them all, but it might be linked against automatically, i don't know.
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Cambridge, MA
Status: Offline
Reply With Quote
Apr 1, 2001, 05:14 PM
 

libm.dylib is a link to libSystem.dylib, and libSystem.dylib is again a link to libSystem.B.dylib.

It looks like functions that you might expect from -lm are included in libSystem.B.dylib.

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2