PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

suse 10.0 mm5-terrain

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
krishna



Joined: 17 Apr 2006
Posts: 1

PostPosted: Thu Apr 20, 2006 5:50 pm    Post subject: suse 10.0 mm5-terrain Reply with quote

Hi all,
I have installed suse10.0 in my pc. I am trying to compile terrain and it complains about the library lx11.a in /usr/local/ncarg/lib. I donot have the library in that directory. By the way i downloaded the PGI compiled binaries for the NCAR graphics from their web site.
Thanks in advance for any help.
Krishna
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Fri Apr 21, 2006 10:07 am    Post subject: Reply with quote

Hi Krishna,

I'm assuming that your using the 64-bit version of SuSE 10? If so, change the LOCAL_LIBRARIES variable in "linux" section of the Terrrain Makefile to point to the 64-bit versions of the X11, system, and PGI libraries. I also changed "-lf2c" to "-g77libs".

Change:
Code:
               grep Linux .tmpfile ; \
        if [ $$? = 0 ]; then echo "Compiling for Linux" ;               \
                ( $(CD) src ; $(MAKE) all                               \
                "RM             = $(RM)"        "RM_LIST        = $(RM_LIST)"   \
                "LN             = $(LN)"        "MACH           = SGI"          \
                "MAKE           = $(MAKE)"      "CPP            = /lib/cpp"     \
                "CPPFLAGS       = -I. -C -traditional -D$(NCARGRAPHICS) -DRECLENBYTE"   \
                "FC             = pgf90"        "FCFLAGS        = -I. -byteswapio"\
                "LDOPTIONS      = "             "CFLAGS         = -I."          \
                "LOCAL_LIBRARIES= -L$(NCARG_ROOT)/lib -L/usr/X11R6/lib
-lncarg -lncarg_gks -lncarg_c -lX11 -L$(PGI)/linux86/lib  -L/usr/lib -lf2c" ) ; \

To:
Code:
               grep Linux .tmpfile ; \
        if [ $$? = 0 ]; then echo "Compiling for Linux" ;               \
                ( $(CD) src ; $(MAKE) all                               \
                "RM             = $(RM)"        "RM_LIST        = $(RM_LIST)"   \
                "LN             = $(LN)"        "MACH           = SGI"          \
                "MAKE           = $(MAKE)"      "CPP            = /lib/cpp"     \
                "CPPFLAGS       = -I. -C -traditional -D$(NCARGRAPHICS) -DRECLENBYTE"   \
                "FC             = pgf90"        "FCFLAGS        = -I. -byteswapio"\
                "LDOPTIONS      = "             "CFLAGS         = -I."          \
                "LOCAL_LIBRARIES= -L$(NCARG_ROOT)/lib -L/usr/X11R6/lib64
-lncarg -lncarg_gks -lncarg_c -lX11 -L$(PGI)/linux86-64/lib  -L/usr/lib64 -lg77libs" ) ; \


Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group