Re: On ubuntu 10.04 cannot find"libpyglib -2.0-python.so.0"

Ludovic Brenta <[email protected]> Wed, 15 Sep 2010 16:52:51 +0200
Newsgroups gmane.comp.ide.gps.user
Message-ID <a333a64e84208d654a0d4a69a7095941@localhost>
Francesco Piraneo G. wrote:
> Actually my problem is that when I try to compile a project I get the 
> following:
> 
> [2010-09-15 16:22:59] No file selected
> [2010-09-15 16:22:59] Invalid context, cannot build
> 
> My project source file contains:
> 
> ---
> project TempConverter is
> 
>     for Object_Dir use 
> "../../Scaricati/gnat-2010-i686-gnu-linux-libc2.3-bin";
>     for Main use ("TemperatureConverter.adb");
> 
> end TempConverter;
> ---
> 
> Everything works fine in windows so I think it's a platform related
> problem.

I suspect this has to do with the fact that Linux filesystems are always
case-sensitive whereas Windows filesystems are not. What happens if you
rename the file TemperatureConverter.adb to temperatureconverter.adb?

(and maybe you should follow the Ada Quality and Style Guide convention:
Temperature_Converter, temperature_converter.adb).

About your first problem (finding shared libraries): Linux does not use
$PATH to locate shared libraries, it uses $LD_LIBRARY_PATH.  Maybe you
should check that when running GPS from GNAT GPL 2010 (/usr/bin/gnat-gps
does not have this problem as it only uses the default library path).

HTH

-- 
Ludovic Brenta.