How to make Linux platform available in existent console applications

The process of migrating your existing console applications to the Linux platform (recently added with Delphi 10.2 Tokyo) begins adding the new “64-bit Linux” platform to the “Target Platforms” of your project.

Generally, everything goes smooth and you simply have to select “64-bit Linux” from the combobox in the “Select platform” dialog.

If you can’t find the entry in the list, maybe you are experiencing what happened to me today. After a quick check, it seems to me the problem was in the value of the “FrameworkType” node of the DPROJ file of the existent console app I was trying to compile for Linux.

Simply open the dproj file with a text editor and change the value of FrameworkType from “VCL” to “None” (that is the value you get if you create a new console application from scratch in Delphi 10.2 Tokyo) and the issue is fixed.