Jump to content

Ultra App Kit: Compiling C++ projects on Linux


Josh
 Share

Recommended Posts

How to compile C++ projects on Linux:

It's very simple to install all the dependencies you need to work with Ultra App Kit projects:

sudo apt install build-essential
sudo apt-get install libx11-dev
sudo apt-get install libxmu-dev
sudo apt install libxft-dev
sudo apt install libxcursor-dev

Create your project in the project manager.

Launch VSCode.

Select the File > Open Folder menu item.

Select the folder of your new project and open it.

Install the "ms-vscode.cpptools" and "ms-vscode.makefile-tools" extensions.

In the makefile tools panel, set "Configuration" to "Debug", "Build target" to "Linux", and "Launch target" your application's name.

vsc.png.862c17f2a1ebc2db93b6b7e87836059f.png

In the same panel, press the build button to compile your project and the debug button to launch. Do not switch to the normal build / run panel because it will not work with C++ projects.

A makefile is provided, so you may be able to use that with other tools, but VSCode is the recommended IDE.

Your compiled applications will probably run on all distros of Linux without any need to install any extra dependencies.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

In Visual Code to be able to use Go To Definitions and intellisense

 

Ctrl Shift P

select C/C++ Edit configurations

 

Add to the includePath

"/home/your user here/.steam/debian-installation/steamapps/common/UltraAppKit/Include/**"

A json file (c_cpp_properties.json) will be created in your .vscode.

 

Think they have some bugs, i had to add the UltraEngine.h to forcedInclude and after all started to work.

https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp

 

  • Thanks 2

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

  • 5 months later...

Maybe include a "VS Studio, VS code and Code::Blocks IDE setup" section in the  Learn/reference page under a new "IDE Setup" selection, so new users don't get lost and don't need to search for how to setup the IDE and Ultra App Kit so everything is as easy to get started as possible.

Link to comment
Share on other sites

it is Not all there.

Error of the UltraEngine.h in the project, in VS code is Not fixed there.

IDE setup is missing things related to setting up the IDE with an Ultra App project itself.

On 6/23/2021 at 2:48 AM, aiaf said:

In Visual Code to be able to use Go To Definitions and intellisense

 

Ctrl Shift P

select C/C++ Edit configurations

 

Add to the includePath



"/home/your user here/.steam/debian-installation/steamapps/common/UltraAppKit/Include/**"

A json file (c_cpp_properties.json) will be created in your .vscode.

 

Think they have some bugs, i had to add the UltraEngine.h to forcedInclude and after all started to work.

https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp

 

Things like this are missing from the Learn/reference guide

Link to comment
Share on other sites

  • 2 months later...
On 12/7/2021 at 9:55 AM, Azure_Zero said:

Maybe include a "VS Studio, VS code and Code::Blocks IDE setup" section in the  Learn/reference page under a new "IDE Setup" selection, so new users don't get lost and don't need to search for how to setup the IDE and Ultra App Kit so everything is as easy to get started as possible.

If there were to be a solution like this that's more "cross platform" or whatever, cmake would be the answer.

VSCode can use cmake out of the box via terminal, but much easier with the cmaketools plugin.

cmake can generate project files for IDE's:

cmake .. -G"Visual Studio 10"
cmake .. -G"CodeBlocks - Unix Makefiles"

 

I've personally never used this, so I have no clue how effective it is.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...