Archive for August, 2020

Getting Cross with CrossVCL

Monday, August 17th, 2020

Thought I would give CrossVCL VirtualTreeView support a look see, but when I installed it I couldn’t even run any sample applications.  Kept getting “ld-linux.exe: error: cannot find -lGL”.  Being a Linux newbie I searched the KSDEV CrossVCL issue forum and FAQ thought I was onto something, but after expanding the compiler messages I discovered it was GTK3 related.

A little googling and I found this post which explains that if you want to compile apps for GTK3 you need to change the version of the GTK3 libs that come with Ubuntu 18.04 LTS.

To use gtk2 or gtk3 apps you don’t need to install anything. But, if you want to develop (or even just compile) apps this is what you’re looking for:

sudo apt-get install libgtk-3-dev

After issuing the command above and updating the SDK I was able to compile and run CrossVCL apps.  No need to get cross, just the correct libs.

Another GExperts GEM

Tuesday, August 11th, 2020

I’ve used GExperts for some time, and I keep finding gold nuggets or gems as the saying goes, that make it easier to accomplish day to day tasks.

GIT may be  a great version control system, but it probably contributes to a lot of task switching, which can impact productivity.  For instance, I often need to switch branches to address smaller issues, or make a fix for something QA has found during testing of a fix (hey..sh..it happens…).  Each time I do so, all the files I had open in the IDE for that particular issue, are lost in terms of knowing which ones they were.  AFAIK (as far as I know) there is no way to have the IDE save this information such that when you switch branches it will be preserved.  The IDE will save the current open file list in a project DSK file so it can restore them, but if you have the DSK file in version control, switching branches will replace it.  DSKs are normally not versioned because sharing them between developers is not desirable.  If it’s not in version control, saving it on a different branch will overwrite the list of files.  What is the solution?

One potential solution is to use GExperts Favorites feature.  You can create folders for each set of files (by project or issue # for instance),  Then just add the files you want and next time you switch you can easily re-open the files of interest from your favorites.  It even has the ability to add your Favorites to the File menu.

One of the great things about Delphi’s IDE is the OpenTools API which allows for such extensive add-ins, and Thomas Mueller has put a lot of effort in maintaining and evolving the project.  Thanks!