comp.lang.ada
 help / color / mirror / Atom feed
* Migrating Ada complier and programs from Windows to LInux
@ 2016-04-04 12:44 ldries46
  2016-04-04 16:46 ` Jeffrey R. Carter
  2016-04-04 17:51 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 10+ messages in thread
From: ldries46 @ 2016-04-04 12:44 UTC (permalink / raw)


I want to migrate some of my programs from windows to Linux. Therefore I 
tried to install GNAT Programming Studio on Linux (XUbuntu).
I do encounter several problems:
1. I can only in the .gpr files direct path for dource directories. With 
relative path the files in my directories are not recognized apart of the 
project This where the with GtkAda delivered gtkada.gpr uses  relative path.
2. When building a very simple program I encounter several errors in the 
building phase with files not found (.so files) and and therefore other 
error probably depemdent on these files.

I suspect that there is somthing wrong with one or more Path variables but 
cannot find which variables and what the variables should be

L. Dries 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-04 12:44 Migrating Ada complier and programs from Windows to LInux ldries46
@ 2016-04-04 16:46 ` Jeffrey R. Carter
  2016-04-04 17:51 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 10+ messages in thread
From: Jeffrey R. Carter @ 2016-04-04 16:46 UTC (permalink / raw)


On 04/04/2016 05:44 AM, ldries46 wrote:
> I want to migrate some of my programs from windows to Linux. Therefore I tried
> to install GNAT Programming Studio on Linux (XUbuntu).

How did you do this? The normal way to do this on a Debian-derived Linux
distribution such as (X)Ubuntu is to install GNAT, GPS, and gprbuild through
your "software-manager" or "package-manager" program, possibly Synaptic. You
might also use the command line

sudo apt-get install gnat gprbuild

Either way, this will install a recent version of FSF GNAT with everything in
the right place, and everything should work fine.

> I do encounter several problems:
> 1. I can only in the .gpr files direct path for dource directories. With
> relative path the files in my directories are not recognized apart of the
> project This where the with GtkAda delivered gtkada.gpr uses  relative path.
> 2. When building a very simple program I encounter several errors in the
> building phase with files not found (.so files) and and therefore other error
> probably depemdent on these files.
> 
> I suspect that there is somthing wrong with one or more Path variables but
> cannot find which variables and what the variables should be

I've never encountered your problem 1., but 2. sounds like a known issue using
AdaCore versions of GNAT on Debian-based Linux. AdaCore's GNAT, IIRC, is
developed for Red Hat Linux, which puts some libraries in different locations
from Debian. This results in AdaCore GNAT looking for things in places where
they aren't. The simple solution to this is to use the FSF GNAT provided by
Debian; another is to put links in the places AdaCore GNAT expects things that
link to where they actually are in Debian.

-- 
Jeff Carter
"Hold your temper. Count ten.... Now let 'er go.
You got a good aim."
Never Give a Sucker an Even Break
105


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-04 12:44 Migrating Ada complier and programs from Windows to LInux ldries46
  2016-04-04 16:46 ` Jeffrey R. Carter
@ 2016-04-04 17:51 ` Dmitry A. Kazakov
  2016-04-05 10:36   ` ldries46
  1 sibling, 1 reply; 10+ messages in thread
From: Dmitry A. Kazakov @ 2016-04-04 17:51 UTC (permalink / raw)


On 2016-04-04 14:44, ldries46 wrote:
> I want to migrate some of my programs from windows to Linux. Therefore I
> tried to install GNAT Programming Studio on Linux (XUbuntu).

AFAIK, FSF Debian GPS is still GCC 4.8, while the actual GNAT GCC 5.x. 
Basically, there is no usable GPS for Linux, IMO.

> I do encounter several problems:
> 1. I can only in the .gpr files direct path for dource directories. With
> relative path the files in my directories are not recognized apart of
> the project This where the with GtkAda delivered gtkada.gpr uses
> relative path.

There is no official release of GtkAda for GTK 3.x for Linux.

Then, there are serious issues with the gprbuild under Linux.

You should use gnatmake regardless warnings it issues. That in turn 
precludes GPS. (In earlier version you could fool GPS by writing a shell 
script named gprbuild that calls gnatmake from inside. It does not work 
well now.)

> 2. When building a very simple program I encounter several errors in the
> building phase with files not found (.so files) and and therefore other
> error probably depemdent on these files.

You have a broken project file.

> I suspect that there is somthing wrong with one or more Path variables
> but cannot find which variables and what the variables should be

I do developing under Windows and build the results under various Linux 
distributions and machines. Everything works, including GtkAda.

You don't need to fix Path variables to make it working.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-04 17:51 ` Dmitry A. Kazakov
@ 2016-04-05 10:36   ` ldries46
  2016-04-05 12:59     ` Dmitry A. Kazakov
  0 siblings, 1 reply; 10+ messages in thread
From: ldries46 @ 2016-04-05 10:36 UTC (permalink / raw)


As I am momentarily developping on Windows 10 but I want also to b able my 
programs oLinux machines I want to run the same version of the developping 
environment on both systems. Is a list of environment variables available to 
run the GPS correctly on XUbuntu or should I switch to another version of 
Linux and which?

"Dmitry A. Kazakov"  schreef in bericht news:ndu9j7$gq8$1@gioia.aioe.org...

On 2016-04-04 14:44, ldries46 wrote:
> I want to migrate some of my programs from windows to Linux. Therefore I
> tried to install GNAT Programming Studio on Linux (XUbuntu).

AFAIK, FSF Debian GPS is still GCC 4.8, while the actual GNAT GCC 5.x.
Basically, there is no usable GPS for Linux, IMO.

> I do encounter several problems:
> 1. I can only in the .gpr files direct path for dource directories. With
> relative path the files in my directories are not recognized apart of
> the project This where the with GtkAda delivered gtkada.gpr uses
> relative path.

There is no official release of GtkAda for GTK 3.x for Linux.

Then, there are serious issues with the gprbuild under Linux.

You should use gnatmake regardless warnings it issues. That in turn
precludes GPS. (In earlier version you could fool GPS by writing a shell
script named gprbuild that calls gnatmake from inside. It does not work
well now.)

> 2. When building a very simple program I encounter several errors in the
> building phase with files not found (.so files) and and therefore other
> error probably depemdent on these files.

You have a broken project file.

> I suspect that there is somthing wrong with one or more Path variables
> but cannot find which variables and what the variables should be

I do developing under Windows and build the results under various Linux
distributions and machines. Everything works, including GtkAda.

You don't need to fix Path variables to make it working.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-05 10:36   ` ldries46
@ 2016-04-05 12:59     ` Dmitry A. Kazakov
  2016-04-05 15:22       ` ldries46
  0 siblings, 1 reply; 10+ messages in thread
From: Dmitry A. Kazakov @ 2016-04-05 12:59 UTC (permalink / raw)


On 05/04/2016 12:36, ldries46 wrote:
> As I am momentarily developping on Windows 10 but I want also to b able
> my programs oLinux machines I want to run the same version of the
> developping environment on both systems. Is a list of environment
> variables available to run the GPS correctly on XUbuntu or should I
> switch to another version of Linux and which?

If you are developing under Windows, what for do you need Linux GPS?

You need exactly three things under Linux

1. GNAT
2. SSH server [MobaXterm on the Windows' side]
3. Rsync server or else VBox shared folder [Samba shares do not work 
right, unfortunately]

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-05 12:59     ` Dmitry A. Kazakov
@ 2016-04-05 15:22       ` ldries46
  2016-04-05 15:45         ` ldries46
  2016-04-05 15:51         ` Dmitry A. Kazakov
  0 siblings, 2 replies; 10+ messages in thread
From: ldries46 @ 2016-04-05 15:22 UTC (permalink / raw)


The reason that I want to have developping environment is that there are 
differences between Windows and Linux that cannot be solved in an automatic 
way. like for instance filenames when they use different partitionsor when 
in windows they are not case sensitive.

"Dmitry A. Kazakov"  schreef in bericht news:ne0csa$1kj0$1@gioia.aioe.org...

On 05/04/2016 12:36, ldries46 wrote:
> As I am momentarily developping on Windows 10 but I want also to b able
> my programs oLinux machines I want to run the same version of the
> developping environment on both systems. Is a list of environment
> variables available to run the GPS correctly on XUbuntu or should I
> switch to another version of Linux and which?

If you are developing under Windows, what for do you need Linux GPS?

You need exactly three things under Linux

1. GNAT
2. SSH server [MobaXterm on the Windows' side]
3. Rsync server or else VBox shared folder [Samba shares do not work
right, unfortunately]

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-05 15:22       ` ldries46
@ 2016-04-05 15:45         ` ldries46
  2016-04-05 15:51         ` Dmitry A. Kazakov
  1 sibling, 0 replies; 10+ messages in thread
From: ldries46 @ 2016-04-05 15:45 UTC (permalink / raw)


I found the problems finally.
Problem 1: had o do with the case sensitivity of Linux with respect to 
Windows
Problem 2: was solved by adding the correct path to LD_LIBRARY_PATH. With 
Gtkada installed at /usr/gtkada I used /usr/gtkada/lib

"ldries46"  schreef in bericht news:5703d845$0$4293$e4fe514c@news.kpn.nl...

The reason that I want to have developping environment is that there are
differences between Windows and Linux that cannot be solved in an automatic
way. like for instance filenames when they use different partitionsor when
in windows they are not case sensitive.

"Dmitry A. Kazakov"  schreef in bericht news:ne0csa$1kj0$1@gioia.aioe.org...

On 05/04/2016 12:36, ldries46 wrote:
> As I am momentarily developping on Windows 10 but I want also to b able
> my programs oLinux machines I want to run the same version of the
> developping environment on both systems. Is a list of environment
> variables available to run the GPS correctly on XUbuntu or should I
> switch to another version of Linux and which?

If you are developing under Windows, what for do you need Linux GPS?

You need exactly three things under Linux

1. GNAT
2. SSH server [MobaXterm on the Windows' side]
3. Rsync server or else VBox shared folder [Samba shares do not work
right, unfortunately]

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-05 15:22       ` ldries46
  2016-04-05 15:45         ` ldries46
@ 2016-04-05 15:51         ` Dmitry A. Kazakov
  2016-04-07  9:18           ` vincent.diemunsch
  1 sibling, 1 reply; 10+ messages in thread
From: Dmitry A. Kazakov @ 2016-04-05 15:51 UTC (permalink / raw)


On 2016-04-05 17:22, ldries46 wrote:
> The reason that I want to have developping environment is that there are
> differences between Windows and Linux that cannot be solved in an
> automatic way. like for instance filenames when they use different
> partitionsor when in windows they are not case sensitive.

There is no such differences. There are certain rules to follow to make 
it portable, that's all. Regarding filenames, you should not use 
Ada.Directories, that is not portable. Since you are using GtkAda 
anyway, use GIO instead of Ada.Directories. GIO is portable.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-05 15:51         ` Dmitry A. Kazakov
@ 2016-04-07  9:18           ` vincent.diemunsch
  2016-04-07  9:37             ` Dmitry A. Kazakov
  0 siblings, 1 reply; 10+ messages in thread
From: vincent.diemunsch @ 2016-04-07  9:18 UTC (permalink / raw)


Le mardi 5 avril 2016 17:52:06 UTC+2, Dmitry A. Kazakov a écrit :
> Regarding filenames, you should not use 
> Ada.Directories, that is not portable. Since you are using GtkAda 
> anyway, use GIO instead of Ada.Directories. GIO is portable.

Hello Dimitry,

could you elaborate ? Why is Ada.Directories not portable ? What is the key point GIO offers that allows portability ?

Regards,

Vincent

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Migrating Ada complier and programs from Windows to LInux
  2016-04-07  9:18           ` vincent.diemunsch
@ 2016-04-07  9:37             ` Dmitry A. Kazakov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry A. Kazakov @ 2016-04-07  9:37 UTC (permalink / raw)


On 07/04/2016 11:18, vincent.diemunsch@gmail.com wrote:
> Le mardi 5 avril 2016 17:52:06 UTC+2, Dmitry A. Kazakov a écrit :
>> Regarding filenames, you should not use
>> Ada.Directories, that is not portable. Since you are using GtkAda
>> anyway, use GIO instead of Ada.Directories. GIO is portable.
>
> could you elaborate ? Why is Ada.Directories not portable ? What is
> the key point GIO offers that allows portability ?

GIO specifically tells that filenames are UTF-8, even on Windows, which 
is ASCII/UTF-16 (newer versions) or ASCII/UCS-2 (older versions).

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-07  9:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-04 12:44 Migrating Ada complier and programs from Windows to LInux ldries46
2016-04-04 16:46 ` Jeffrey R. Carter
2016-04-04 17:51 ` Dmitry A. Kazakov
2016-04-05 10:36   ` ldries46
2016-04-05 12:59     ` Dmitry A. Kazakov
2016-04-05 15:22       ` ldries46
2016-04-05 15:45         ` ldries46
2016-04-05 15:51         ` Dmitry A. Kazakov
2016-04-07  9:18           ` vincent.diemunsch
2016-04-07  9:37             ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox