× CodeTyphon Platforms (Win, GTK2/3, QT4/5, Cocoa, etc) Development, discussions and problems

Question QT4 and Linux

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago - 1 month 2 weeks ago #16087 by Raúl
QT4 and Linux was created by Raúl
Hello,

it's possible to compile Codeyphon and libpasqt 4.0 under Ubuntu? I succeded when using OpenSuse, but I get error messages with Ubuntu:

data loss from "UnicodeString" to "AnsiString"
/usr/local/codetyphon/typhon/ide/ct_main.pp(1420,3) Note: (5025) Local variable "ConfigFile" not used
/usr/local/codetyphon/typhon/ide/ct_main.pp(7987,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(9691,3) Note: (5027) Local variable "c" is assigned but never used
/usr/local/codetyphon/typhon/ide/ct_main.pp(14329,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14338,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14382,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14391,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14400,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14409,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14418,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14427,19) Warning: (5033) Function result does not seem to be set
/usr/local/codetyphon/typhon/ide/ct_main.pp(14436,19) Warning: (5033) Function result does not seem to be set
(9022) Compiling resource ../units/i386-linux/qt/typhon.or
(9015) Linking ../typhon
[b]/usr/bin/ld: se salta el /usr/lib/x86_64-linux-gnu/libQt4Pas.so incompatible mientras se busca -lQt4Pas
/usr/bin/ld: no se puede encontrar -lQt4Pas[/b]
/usr/local/codetyphon/typhon/ide/typhon.pp(137,1) Error: (9013) [b]Error while linking[/b]
/usr/local/codetyphon/typhon/ide/typhon.pp(137,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:4839: typhon] Error 1
make[2]: se sale del directorio '/usr/local/codetyphon/typhon/ide'
make[1]: *** [Makefile:5269: ide] Error 2
make[1]: se sale del directorio '/usr/local/codetyphon/typhon/ide'
make: *** [Makefile:3731: ide] Error 2
mv: no se puede efectuar `stat' sobre 'typhon': No existe el archivo o el directorio
mv: no se puede efectuar `stat' sobre 'typhonstart': No existe el archivo o el directorio
   
 ------------------------------------------------------
   
[INFO]: Clean Tools Directory
   
   
??????????????????????????????????????????????????????????
[ERROR]: Sorry, Typhon32 Small IDE i386-linux-qt4 NOT Build
??????????????????????????????????????????????????????????
   
==============================================================
    Build Typhon32 BIG IDE i386-linux-qt4 for Linux
==============================================================
   
   
[ERROR]: Sorry, Typhon32 from Small-IDE NOT Build
         please remove and build Typhon again...
   
   
==============================================================
  Build Typhon64 Small IDE x86_64-linux-qt4 for Linux
==============================================================
   
  


... and later:


(...)

/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QFrame::setFrameShadow(QFrame::Shadow)' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QRegion::translated(int, int) const' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QComboBox::count() const' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QPalette::QPalette(QPalette const&;)' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QGraphicsScene::setSelectionArea(QPainterPath const&;)' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QVariant::QVariant(QBitArray const&;)' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QMetaObject::trUtf8(char const*, char const*, int) const' sin definir
/usr/bin/ld: /lib/x86_64-linux-gnu//libQt4Pas.so: referencia a `QCalendarWidget::setMaximumDate(QDate const&;)' sin definir
/usr/local/codetyphon/typhon/ide/typhon.pp(137,1) Error: (9013) [b]Error while linking[/b]
/usr/local/codetyphon/typhon/ide/typhon.pp(137,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:4839: typhon] Error 1
make[2]: se sale del directorio '/usr/local/codetyphon/typhon/ide'
make[1]: *** [Makefile:5269: ide] Error 2
make[1]: se sale del directorio '/usr/local/codetyphon/typhon/ide'
make: *** [Makefile:3731: ide] Error 2
mv: no se puede efectuar `stat' sobre 'typhon': No existe el archivo o el directorio
mv: no se puede efectuar `stat' sobre 'typhonstart': No existe el archivo o el directorio
   
 ------------------------------------------------------
   
[INFO]: Clean Tools Directory
   
   
??????????????????????????????????????????????????????????
[ERROR]: Sorry, Typhon64 Small IDE x86_64-linux-qt4 NOT Build
??????????????????????????????????????????????????????????
   
==============================================================
   Build Typhon64 BIG IDE x86_64-linux-qt4 for Linux
==============================================================
   
   
[ERROR]: Sorry, Typhon64 from Small-IDE NOT Build
         please remove and build Typhon again...




regards,

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.
Last edit: 1 month 2 weeks ago by Raúl.

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16088 by Raúl
Replied by Raúl on topic QT4 and Linux
It looks like the library libqt4pas doesn't compile :-(

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16089 by Raúl
Replied by Raúl on topic QT4 and Linux
QT 5 compiles without problem.

regards

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16090 by Raúl
Replied by Raúl on topic QT4 and Linux
I have just found there's a binary library in CT's  folder. What am I doing wrong?

 

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.
Attachments:

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

More
1 month 2 weeks ago - 1 month 2 weeks ago #16091 by Matis A.
Replied by Matis A. on topic QT4 and Linux
First Install from CTCenter libraries for QT4,
then Just

 

For you info Latest Ubuntu,Debian 11 etc NOT have QT4 libraries
Only latest Fedora 34 has QT4 libraries.

PilotLogic Core Programmer
Attachments:
Last edit: 1 month 2 weeks ago by Matis A..

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16092 by Raúl
Replied by Raúl on topic QT4 and Linux
Thanks Matis, I believe there's another problem.

Eventhough I executed the installation of platform libraries from the setup bash script I cant run CTCenter. I get a missing library error. (Ubuntu 20.04).

 

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.
Attachments:

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16093 by Raúl
Replied by Raúl on topic QT4 and Linux
QTWebKit problem. Isn't supposed to be installed when you select 0?

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago #16094 by Raúl
Replied by Raúl on topic QT4 and Linux
By the way, and this is an open question, it's still worthy to compile under QT4 nowadays? Does QT5 is present in all modern distros?

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.

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

  • Raúl
  • Raúl's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 month 2 weeks ago - 1 month 2 weeks ago #16095 by Raúl
Replied by Raúl on topic QT4 and Linux

QTWebKit problem. Isn't supposed to be installed when you select 0?

 

Ok. It seems that libqtwebkit is not any longer available in Ubuntu 20.04. :-/
apt install libqtwebkit4
and 
apt-file search libQtWebKit.so.4

does not work.

regards

Raúl,

Always learning.

Bs.Pharmacy, Bs.Computer Science, MBA.
Last edit: 1 month 2 weeks ago by Raúl.

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

More
1 month 2 weeks ago - 1 month 2 weeks ago #16096 by Matis A.
Replied by Matis A. on topic QT4 and Linux
ALL latest Linux distributions don't support QT4 API anymore.
The same for FreeBSD, NetBSD, OpenBSD and DragonFly OSes.

Some Linux distributions like the latest Fedora 34 have support QT4 API,
but I don't know if the next release of these distributions will support QT4.

Now, the new QT6 API, it's a commercial Library, so the future of QTx "based" desktops (Plasma, LXQT, etc) are NOT so good.
QT4 and QT5 don't have source support anymore.

Put to the above problem and the GTKx problem then
Linux Desktop has a lot of problems.....



To install QT4 or any (Desk libraries) with CTCenter:

1) Set to CTCenter=>CodeTyphon=>Settings=> QT4

 


2) Go to CTCenter=>HostPC=> "Install System Libraries for QT4"

 

Screens from Fedora34-MATE


 

PilotLogic Core Programmer
Attachments:
Last edit: 1 month 2 weeks ago by Matis A..

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