Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   CrossKylix: linux-kompilat läuft nicht.... (https://www.delphipraxis.net/41644-crosskylix-linux-kompilat-laeuft-nicht.html)

Aenogym 6. Mär 2005 12:37


CrossKylix: linux-kompilat läuft nicht....
 
hi,

ich schonwieder mit crosskylix. :roll:
ich habe jetzt mal ein standard hello world programm geschrieben:

Delphi-Quellcode:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

begin
  writeln('Hello World');
  readln;
end.
so weit so gut. die windows-exe läuft problemlos. nur die linux binary lässt sich nicht ausführen. ich bekomme immer den fehler "permission denied", sogar, wenn ich als root angemeldet bin. hab das auf meinem rechner und auf meinem root-server probiert..... beide male das problem.

crosskylix gibt mir beim compilieren keinen fehler zurück.
ich benutze kylix 3 open edition.
könnt ihr mir helfen?

danke,
aenogym

arbu man 6. Mär 2005 13:18

Re: CrossKylix: linux-kompilat läuft nicht....
 
Wie führst du den dein Programm auf Linux aus ?

Aenogym 6. Mär 2005 13:24

Re: CrossKylix: linux-kompilat läuft nicht....
 
Zitat:

Zitat von arbu man
Wie führst du den dein Programm auf Linux aus ?

per klick aufs icon im konqueror. da passiert nix.
über die konsole ins verzeichnis wechseln und dann:
Code:
 ./project1
dann bekomme ich
Zitat:

aenogym@linux: # Permission Denied
(war jetzt aus dem kopf. aber mehr infos stehen nicht dabei)

Aenogym

arbu man 6. Mär 2005 13:26

Re: CrossKylix: linux-kompilat läuft nicht....
 
Dann könnte es Daran liegen das die runlibs nicht installiert sind

Aenogym 6. Mär 2005 13:27

Re: CrossKylix: linux-kompilat läuft nicht....
 
Zitat:

Zitat von arbu man
Dann könnte es Daran liegen das die runlibs nicht installiert sind

okay.... und was sind das? :roll: :)
doch nicht etwa eine art runtime?

Binärbaum 6. Mär 2005 13:50

Re: CrossKylix: linux-kompilat läuft nicht....
 
Also ich habe das Programm mit FPC (von http://www.freepascal.org ) kompiliert und es läuft ohne Probleme (obwohl beim kompilieren eine Warnung kam):
Code:
[dirk@pinguin fpc]$ fpc hallo.pas
Free Pascal Compiler version 1.9.6 [2004/12/31] for i386
Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for i386
Compiling hallo.pas
hallo.pas(3,2) Warning: APPTYPE is not supported by the target OS
Linking hallo
10 Lines compiled, 0.5 sec
[dirk@pinguin fpc]$ ls
hallo*  hallo.o hallo.pas
[dirk@pinguin fpc]$ ./hallo
Hello World

[dirk@pinguin fpc]$
MfG
Binärbaum

Aenogym 6. Mär 2005 13:57

Re: CrossKylix: linux-kompilat läuft nicht....
 
hi binärbaum,

danke für deine mühe. dass der code funktioniert, sollte klar sein. mit crosskylix kann ich es ja auch erfolgreich kompilieren (64kb). ich denke das kompilat ist einwandfrei.

arbu man sprach die "runlibs" an, die ich evtl. nicht installiert habe. ich kenn mich noch nicht soooo mit linux aus und weiß daher nicht, was das sind. ich vermute mal, es ist eine art runtime. im crosskylix ordner finde ich mehrere dateien aus dem unterordner "lib". ich weiß jedoch nichts damit anzufangen :?:

Aenogym

SniperBeamer 6. Mär 2005 13:59

Re: CrossKylix: linux-kompilat läuft nicht....
 
Wenn du vorher
Code:
chmod 755 project1
ausführst, müsste es gehen.

arbu man 6. Mär 2005 14:08

Re: CrossKylix: linux-kompilat läuft nicht....
 
Kylix Programm benötigen bibioteken damit sie laufen und wenn diese auf dem linux nicht vorhanden sind laufen kylix programme nicht

Binärbaum 6. Mär 2005 14:09

Re: CrossKylix: linux-kompilat läuft nicht....
 
Zitat:

Zitat von arbu man
Kylix Programm benötigen bibioteken damit sie laufen und wenn diese auf dem linux nicht vorhanden sind laufen kylix programme nicht

Diese müssten doch bei der Installation von Kylix mit installiert werden, oder nicht?


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:17 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz