Welcome, Guest
Username: Password: Remember me
CodeTyphon Linux OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5256

  • J.F.
  • J.F.'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi all, I'm new in this arena (not in Pascal) and I'm trying CT 4.7 (FPC 2.7.1, SVN 43727) under Ubuntu 13.10. I start the (big) IDE and do the following:
1. Build and run Form1 example. It runs but when I click close icon in window the message ".. not responding" arises. I can chose to Force Quit and I receive "SIGKILL" exception. This is not fine but ok, I'm just closing the form.

2. I add a Label to the example Form1 and the code:
begin
Form1.Labe1.Caption := 'anytext';
Then I build and run the program and I receive "external exception: SIGSEGV" when code reaches the only line after begin. So, the form doesn't run at all.
Any help or suggestion about what can be wrong?
Thanks in advance.

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5257

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir, Ubuntu 13.10 Unity use QT library and not GTK2 (default at previews Ubuntu versions)
please try to build CT for QT platform, from CTCenter settings
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5261

  • J.F.
  • J.F.'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi, first of all thanks for the quick answer.

I've follow your goal and explain results.
1. Close CT and open CTC.
2. In menu CodeTyphon/Settings select QT4. A message indicates to run 3
3. As indicated in 2, in menu HostPC/install System Libraries
4. In Typhon-IDE/Remove and build Typhon Big IDE
This doesn't finish properly cause the IDE doesn't appear in the options of CTC anymore.

I realize that in CodeTyphon menu appears build QT4pas libraries. I chose it (maybe is not correct) and see the error (I think the same that doesn't allow build the IDE). Here the message of that (just some one dots removed to see code in a more compact way):
Start Action at 11-3-14 13:25:35
_______________________________________________________________
---------------------------------------------------------
      Unzip qt4pas.7z
---------------------------------------------------------
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
---------------------------------------------------------
      Try to Build QT4pas Libraries
---------------------------------------------------------
------------- Qt Info --------------------------
/usr/lib/codetyphon/ScriptsLin/ln_Typhon1_Build_QT4pas.sh: line 48: cd: /usr/lib/codetyphon/qt4pas: No such file or directory
qmake: could not find a Qt installation of ''
-------------- Build QT4pas ------------------------------
qmake: could not find a Qt installation of ''
sudo: no tty present and no askpass program specified
---------------------------------------
[ERROR]: QT4pas Libraries Don't Build...???
_______________________________________________________________
 
Terminate Action at 11-3-14 13:25:39
Total time: 00:00:03.092
ExitCode : 0

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5262

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir
read here for "Sudo"

"sudo" root privileges
To use "Run Embedded" method you must add
YourUser ALL = (ALL) NOPASSWD: ALL
to /etc/sudoers file help

CTCenter CommandBox can NOT write to Linux Console (Yet...)
it's read only for script execute Console.
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5265

  • J.F.
  • J.F.'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
I've started CTC with sudo. If I understood well is what it was wrong. After that I went directly to the option CodeTyphon/Build QT4pas libraries. Now, there are a lot of "Extracting..." and at the end the same message. I copy the last part of the command box window.
Extracting  qt4pas/src
Extracting  qt4pas
Everything is Ok

Folders: 2
Files: 657
Size:       3706103
Compressed: 337560
---------------------------------------------------------
      Try to Build QT4pas Libraries
---------------------------------------------------------
------------- Qt Info --------------------------
qmake: could not find a Qt installation of ''
-------------- Build QT4pas ------------------------------
qmake: could not find a Qt installation of ''
make: *** No rule to make target `install'.  Stop.
---------------------------------------
[ERROR]: QT4pas Libraries Don't Build...???
_______________________________________________________________
 
Terminate Action at 12-3-14 09:35:48
Total time: 00:00:03.522
ExitCode : 0

I'm not sure if that is what I should do. I will remove all CT and start all over again. I'm afraid firstly I did something wrong with user privileges.
Thanks for your help. I will come again when I'm sure all the previous steps are ok.

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 1 month ago #5266

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Yes Reinstall CT and select from
setup QT platform
we test CT 4.8 on Ubuntu 14.04 now, soon our preview
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 4 weeks ago #5285

  • J.F.
  • J.F.'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Well, after reinstall everything I think the mystery is solved. There is my mistake or a bug or both. I try to explain.
Starting from the initial form, I add a button and a label to the form and put the following code.
begin
  Form1.Label1.Caption := 'anytext';
end.
This produce the exception.

However if I use the following code attached to the button
procedure TForm1.Button1Click(Sender: TObject);
begin
  Form1.Label1.Caption := 'anytext';
end;
end.
This works properly. I.e. although both programs compile and build only the second works. It seems that the Unit doesn't admit code outside procedures. I don't know if this comes from compiler, program or language definition. I'm from old times of TP5.5 and I thought that the initialization of a program was allowed outside procedure structures in the begin-end. section.

Ok. Thanks anyway for the help, comments and suggestions...

Please Log in or Create an account to join the conversation.

Error running CT example form in Ubuntu 13.10 10 years 4 weeks ago #5286

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Thanks Sir
Yes, "unit doesn't admit code outside procedures
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1