Forum

× CodeTyphon Linux OS Development, discussions and problems

Question CodeTyphon on Chakra Project Linux

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1667 by Manos S. Pappas
CodeTyphon on Chakra Project Linux was created by Manos S. Pappas
Hello sir Sternas,

Thank you for the work you've put in releasing CodeTyphon v2.50.

For the next version can you support the Chakra Project Linux distribution? It is based (losely) on Arch Linux, it's 100% KDE based.
CodeTyphon 2.50 fails to compile and install on this distro, as the installation script incorrectly detects an Ubuntu distribution.
You can download Chakra from chakra-linux.org

Thank you very much in advance.

Best Regards,
Manos S. Pappas

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago #1672 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
We will try sir
The partition manager of Chakra linux
is a sad story...

CodeTyphon Architect and Programmer

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1674 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
What's the problem with Chakra's partition manager (KDE partition manager)?
How can I help you?
I've installed Chakra 2012.2 (Archimedes) ISO both on a real and a vm (VBox) without issues...

Best Regards,
Manos S. Pappas

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1675 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
Next week, we will try
to install Chakra Linux again...

CodeTyphon Architect and Programmer
Last edit: 6 years 10 months ago by Sternas Stefanos.

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago - 6 years 10 months ago #1711 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
Hello,

In order to support Chakra Project GNU/Linux (the official name), you only need to do this:

- Add an extra check to ScriptsLin/ln_All_Functions.sh for distribution 100 (Ubuntu Linux) because Chakra also has /etc/lsb-release and /etc/chakra-release. The correct way to detect Ubuntu is by checking if /etc/lsb-release exists AND /etc/chakra-release does not exist otherwise the script will detect Chakra as Ubuntu.
- Add an extra conditional to ArchLinux for Chakra.

In ScriptsLin/ln_All_Functions.sh, go to line 170 and change from
if [ -f /etc/lsb-release ] ; then
to
if [ -f /etc/lsb-release ] && [ ! -f /etc/chakra-release ] ; then

In line 238 from
 elif [ -f /etc/arch-release ] ; then
   OS_VerNum=750
   OS_VerStr="Arch Linux"
change to
 elif [ -f /etc/arch-release ] ; then
   OS_VerNum=750
   OS_VerStr="Arch Linux"
  elif [ -f /etc/chakra-release ] ; then
   OS_VerNum=750
   OS_VerStr="Chakra Project GNU/Linux"

Now the system is indentified properly and the system libraries are handled correctly.
The next step - and I need some help with it - is to change the Lazarus build procedure
in order to build the IDE using Qt4 interface instead of gtk2, directly from source
(i.e without the need to have a gtk Lazarus installed). This is necessary since Chakra Project
does not endorse the use of gtk applications directly (and their dependencies).

I am investigating this, but any help - regarding building Lazarus for Qt4 - is greatly appreciated.

Best Regards,
Manos S. Pappas
Last edit: 6 years 10 months ago by Manos S. Pappas. Reason: Script changes

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1712 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
Thanks Sir
we will put your MOD to next CT release
and we always need your help, to make CT better... :)

QT4 is our the next task, we like KDE 4.8

CodeTyphon Architect and Programmer
Last edit: 6 years 10 months ago by Sternas Stefanos.
The following user(s) said Thank You: Konstantinos Papadoulas, Manos S. Pappas

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago - 6 years 10 months ago #1713 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
Thank you sir Sternas for your kind words.

I've managed to build Lazarus SmallIDE with Qt4 using CodeTyphon 2.5.
Before I provide the necessary steps, here is some quick info regarding CT and Chakra/Qt.

Chakra is a 100% KDE dedicated distribution with a PC-BSD/Free-BSD inspired architecture.
Although it started like an ArchLinux fork, is no longer based on it (even if it provides support
for it's tools). The system uses Qt4 exclusively (i.e no gtk2 library dependencies are available)
and it's optimized for it (gtk2 applications like Firefox are available as bundles/packages that
operate on their own appspace, so that the system remains gtk2 free).

After installing the ArchLinux system libraries required for CT, in order to build Lazarus so that
it uses Qt4 from the start, you need to do the following:

1. Download the necessary Qt4 Pascal bindings for your architecture (x86/amd64) from here:
users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
2. Extract the package somewhere and as a root user copy the libQt4Pas* shared objects to /usr/lib
(just make sure you select the correct libraries for your processor architecture, i.e do not put 32-bit libraries
in a 64-bit installation, it won't work). Alternatively, you can download the source from this page
and build the bindings from source (I used the supplied binaries). Make sure these .so files are
symlinked correctly
, for example
/usr/lib/libQt4Pas.so -> /usr/lib/libQt4Pas.so.5.2.5
/usr/lib/libQt4Pas.so.5 -> /usr/lib/libQt4Pas.so.5.2.5
/usr/lib/libQt4Pas.so.5.2 -> /usr/lib/libQt4Pas.so.5.2.5
3. As a root user, issue the following commands
ldconfig
ldconfig -p | grep libQt4Pas*
and if everything is correct, you should see these libraries matched.
4. Go to ScriptsLin/ln_Lazarus32_Build_Small.sh (or ScriptsLin/ln_Lazarus64_Build_Small.sh) and change line 58 from
$vmake clean all PP=$vfpcexedir/$vfpcexec INSTALL_PREFIX=/usr/lib/codetyphon/lazarus/
to
$vmake clean all LCL_PLATFORM=qt PP=$vfpcexedir/$vfpcexec INSTALL_PREFIX=/usr/lib/codetyphon/lazarus/
5. You can now build Lazarus SmallIDE (32 or 64-bit) completely from source using Qt4.

So far building BigIDE fails due to some problems with GtkGlx(?) components, but I will try to investigate more.

Please note that CodeTyphon Center does not work at all under Chakra, because it was built using Gtk2.
Any ideas on how to recompile it using Qt4 are highly appreciated.

Best Regards,
Manos S. Pappas
Attachments:
Last edit: 6 years 10 months ago by Manos S. Pappas.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1715 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
Sorry for my delay
but now we are ready to play...
soon, our news

CodeTyphon Architect and Programmer
Attachments:
Last edit: 6 years 10 months ago by Sternas Stefanos.

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1717 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux

sternas wrote: Sorry for my delay
but now we are ready to play...
soon, our news


No problem, take your time.
I suggest you try the steps mentioned above and enlighten us regarding compiling BigIDE successfully (and providing a CodeTyphon Center built using Qt).

Best Regards,
Manos S. Pappas

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1718 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
It's not so simple, my friend

Chakra Linux is a 'pure' KDE desktop OS,
which means it comes only in one flavor which is KDE.
It doesn't have Gnome libraries :ohmy:
so, you can't install Gnome 3 on Chakra Linux or Gnome system Libraries.

You can, however, install some of the popular GTK/Gnome apps in Chakra.
The OS comes with a tool called "Cinstall or Bungle Manager",
which allows you to install GTK applications.
By using this tool you can install: Firefox, Thunderbird and GIMP etc

But, the Chakra team wants to keep KDE and GTK dependencies separate,
so, GTK applications installed at "user virtual folder mode"

And this is our problem

Chakra Linux is "Special"

We will try to make a "limited" CodeTyphon installation for QT,
with Lazarus "small IDE" for QT4

Some CT (updated) installation scripts with support for Chakra Linux
in the Zip file

please put your MODs at
ln1_Install_SysLibraries_For_ChakraLinux.sh

to be continued ...

CodeTyphon Architect and Programmer
Attachments:
Last edit: 6 years 10 months ago by Sternas Stefanos.

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1719 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
Thanks for the info sir Sternas.
I will try your scripts also and report.

So far I have managed to compile SmallIDE perfectly using only Qt4 and skipping Gtk2 altogether.
The problem relies to BigIDE because there are some components that their makefile is somehow
"hardcoded" to Gtk.

If we manage to compile BigIDE to use Qt4 exclusively - as in Chakra - almost 90% of the work
required for MacOSX port is done. So, it is not only Chakra that benefits from CT, but Mac also.
The reason is because MacOSX does not have Gtk2 at all - only via X11 emulation and most users
do not have it - so it is important to make CT work with Qt4 on all levels.

To be continued.

Best Regards,
Manos S. Pappas

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1730 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
The updated scripts do not work, they need fixing.
Attached you'll find the new scripts; changes were made to ln_All_Functions.sh, ln_Lazarus32_Build.sh, ln_Lazarus32_Build_Small.sh, ln_Lazarus64_Build.sh and ln_Lazarus64_Build_Small.sh.

With the updated scripts it is possible using CT 2.50 to build a Lazarus SmallIDE under Chakra, using only Qt4.
Building BigIDE fails because the build system cannot find a missing definition Gtk2Glx.
I do not know what else to do in order to overcome this situation.

Before trying to compile FPC and Lazarus under Chakra Linux, you need to install bindings for Qt4.
Follow these steps:

1. Go to users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html and download the library source for Linux/X11.
2. Extract the file somewhere.
3. Go to the extracted folder and enter the following commands:
qmake
sudo make install
Upon successfull completion, the bindings are properly compiled and installed for your architecture.
You can now enter the CodeTyphon source installation directory and start building Lazarus/FPC with install.sh.

CodeTyphon Center cannot work because CT 2.50 does not include it's source code.
I assume that Mr. Sternas will try to build a Qt4 version with this IDE for next version.

Best Regards,
Manos S. Pappas
Attachments:

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1731 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
Thanks Sir
we start our tests with Ubuntu 11.10 (64bit)
with KDE 4.7.4 libraries from Kubuntu Linux
(no spare PC in our lab at this time, 2xFreeBSD+2xSolaris+4xWindows+6xLinux)

Finally we:
1) build QT4pas libraries (I forgotten how slow C++ is :blink: )
2) build Small Lazarus IDE for QT4
3) build CodeTyphon Center for Qt (CodeTyphon_ln64_qt.ex)

now it's time to test this minimum CT configuration and to Chakra Linux...

oh, BigIDE request time
..

CodeTyphon Architect and Programmer
Attachments:
Last edit: 6 years 10 months ago by Sternas Stefanos.
The following user(s) said Thank You: Konstantinos Papadoulas, xcod

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1732 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux
News update:

Successfully compiled lazarus-svn - not CodeTyphon edition - BigIDE with LCL_PLATFORM=qt under Chakra Linux x64.
The build procedure used the Qt4 bindings (compiled from source) and fpc 2.7.1 from installed CodeTyphon.

My guess is that some CodeTyphon Lazarus component is hardcoded to gtk2 (opengl?) and forbids CodeTyphon BigIDE to build.
Let's hope that mr. Sternas does his magic and gives us CT BigIDE under Chakra :cheer:

Best Regards,
Manos S. Pappas

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1733 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
Sir, we finish
all CodeTyphon installation/run procedures and actions

LAB CT version,
can run and with QT libraries on Linux 32/64 and FreeBSD 32/64

For Chakra Linux this is default action

Now we must port some packages of BigIDE to QT4
..

CodeTyphon Architect and Programmer
Attachments:
Last edit: 6 years 10 months ago by Sternas Stefanos.
The following user(s) said Thank You: Konstantinos Papadoulas, xcod, Manos S. Pappas

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

  • Konstantinos Papadoulas
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1734 by Konstantinos Papadoulas
Replied by Konstantinos Papadoulas on topic CodeTyphon on Chakra Project Linux
Unbelievable....

With the addition of Qt support, CT Studio will be the absolute and uncopetitive product for Object Pascal programming.

Kostas

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 10 months ago - 6 years 10 months ago #1745 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
After 2 days
in the code-world... :blink:

we finally port 80% of CT BigIDE components to QT4

Some problems at the building procedure of CT BigIDE, on Linux OSes with only QT framework
like Chakra linux, but we will also solve these...

On Linux or FreeBSD with both QT and GTK framework (like Ubuntu with kubuntu-desktop, or PC-BSD)
lab CodeTyphon can build GTK and QT applications.


Screens from Chakra linux 64

CodeTyphon Architect and Programmer
Last edit: 6 years 10 months ago by Sternas Stefanos.
The following user(s) said Thank You: Konstantinos Papadoulas, Miquel Matas, xcod, Manos S. Pappas

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

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 10 months ago #1746 by Manos S. Pappas
Replied by Manos S. Pappas on topic CodeTyphon on Chakra Project Linux

sternas wrote: After 2 days
in the code-world... :blink:

we finally port 80% of CT BigIDE components to QT4

Some problems at the building procedure of CT BigIDE, on Linux OSes with only QT framework
like Chakra linux, but we will also solve these...
[/b]


Great news mr.Sternas.

Real-life tests have shown that Qt applications (using Smartlinking) consume far less memory when running than their "traditional" Gtk2 counterparts (all tests done under Linux kernel). And using Qt has the advantage that makes development for even more platforms (Nokia) feasible.

Best Regards,
Manos S. Pappas

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

More
6 years 9 months ago #1779 by Bryan Mohr
Replied by Bryan Mohr on topic CodeTyphon on Chakra Project Linux
That sounds great! I would much prefer to use QT4 widgets. I'm using Kubuntu but would really appreciate hearing about when the conversion is close to being completed. Thank you for all that you've done already! CodeTyphon is an excellent piece of work! Many kudos to you!

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 8 months ago - 6 years 8 months ago #1845 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon on Chakra Project Linux
And the last action of "QT4 Lab open Item"
success building of BigIDE on Chakra linux (Chakra-2012.04-Archimedes i686/x86_64)
2 weeks of DEV work...

So, we prepare the release of CodeTyphon ver 2.60

CodeTyphon Architect and Programmer
Attachments:
Last edit: 6 years 8 months ago by Sternas Stefanos.
The following user(s) said Thank You: Miquel Matas, xcod, Manos S. Pappas

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