Josh Posted June 22, 2021 Share Posted June 22, 2021 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. 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. 1 Quote 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 More sharing options...
reepblue Posted June 22, 2021 Share Posted June 22, 2021 Hopefully this can go on the Learn page so this information doesn't get lost. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Ma-Shell Posted June 22, 2021 Share Posted June 22, 2021 You can put everything into one line: sudo apt install build-essential libx11-dev libxmu-dev libxft-dev libxcursor-dev No need to retype the password if one of the installations takes longer and only one command to copy 1 Quote Link to comment Share on other sites More sharing options...
aiaf Posted June 23, 2021 Share Posted June 23, 2021 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 2 Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Azure_Zero Posted December 7, 2021 Share Posted December 7, 2021 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. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 7, 2021 Author Share Posted December 7, 2021 All the information is here: https://www.ultraengine.com/learn/CPP/ProjectCreation Quote 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 More sharing options...
Azure_Zero Posted December 7, 2021 Share Posted December 7, 2021 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 Quote Link to comment Share on other sites More sharing options...
jmf Posted March 5, 2022 Share Posted March 5, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.