Re: ps_start problems in idl 7.1 [message #69447] |
Thu, 07 January 2010 13:46 |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Jan 7, 6:17 pm, "Mr.G" <gameplay...@gmail.com> wrote:
> You are right that I removed the library file gl_driver.so because I
> had a segmentation fault when I run IDL.
> The problem was due to the conflict between gl_driver.so and the newer
> versions of ubuntu.
No, that is not your problem. Removing that file simply keeps IDL from
trying to use the hardware Open GL. It has nothing to do with your
problem (and it is the solution when IDL crashes because of hardware
Open GL).
What happened is that, as David suggested, your IDL cannot find the
files of its standard library, because its directory is missing from
your path. That has broken a lot more than just those routines you
mentioned, very little is working now. You can confirm it by looking
at the result of print, !path.
My guess is that you have the environment variable IDL_PATH being set
to something that does not include <IDL_DEFAULT>, which is where IDL's
libraries live.
|
|
|
Re: ps_start problems in idl 7.1 [message #69448 is a reply to message #69447] |
Thu, 07 January 2010 12:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mr.G wites:
> You are right that I removed the library file gl_driver.so because I
> had a segmentation fault when I run IDL.
> The problem was due to the conflict between gl_driver.so and the newer
> versions of ubuntu.
>
> Is there anyway to bypass this? (other than install an older version
> of unbuntu?)
Oh, right. Get_Screen_Size() creates an object graphics window
in order to determine the dimensions of the display.
You could write your own Get_Screen_Size()function and put
it on your path ahead of IDL's. You will have to hard code
your display resolution into the function. My display is
1680 by 1050.
Function Get_Screen_Size
RETURN, [1680,1050]
END
I don't know anything about Unbuntu, except that the latest
version "sucks." :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: ps_start problems in idl 7.1 [message #69449 is a reply to message #69448] |
Thu, 07 January 2010 12:17  |
Mr.G
Messages: 5 Registered: December 2009
|
Junior Member |
|
|
David,
Thanks a bunch!
You are right that I removed the library file gl_driver.so because I
had a segmentation fault when I run IDL.
The problem was due to the conflict between gl_driver.so and the newer
versions of ubuntu.
Is there anyway to bypass this? (other than install an older version
of unbuntu?)
On Jan 7, 1:09 pm, David Fanning <n...@dfanning.com> wrote:
> Mr.G wites:
>
>> I was using IDL6 before and the "ps_start.pro" "ps_end.pro" worked
>> just fine. However, after I reinstalled my linux system and idl7.1,
>> this two programs does not seem to work properly. Does anyone has the
>> same problem? Does anyone (hmm...David) knows how to resolve this
>> problem?
>
> The problem appears to be that the normal IDL lib file
> is not on your IDL path! Get_Screen_Size is an IDL
> library routine.
>
> How have you set your IDL path up? When you print it out,
> what do you find on it? Can you find the IDL lib subdirectory?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|
Re: ps_start problems in idl 7.1 [message #69450 is a reply to message #69449] |
Thu, 07 January 2010 11:09  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mr.G wites:
> I was using IDL6 before and the "ps_start.pro" "ps_end.pro" worked
> just fine. However, after I reinstalled my linux system and idl7.1,
> this two programs does not seem to work properly. Does anyone has the
> same problem? Does anyone (hmm...David) knows how to resolve this
> problem?
The problem appears to be that the normal IDL lib file
is not on your IDL path! Get_Screen_Size is an IDL
library routine.
How have you set your IDL path up? When you print it out,
what do you find on it? Can you find the IDL lib subdirectory?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|