Josh 10,847 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 Link to post Share on other sites
reepblue 880 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 Link to post Share on other sites
Ma-Shell 165 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 post Share on other sites
aiaf 261 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 Link to post Share on other sites
Azure_Zero 2 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 post Share on other sites
Josh 10,847 Posted December 7, 2021 Author Share Posted December 7, 2021 All the information is here: https://www.ultraengine.com/learn/CPP/ProjectCreation Quote Link to post Share on other sites
Azure_Zero 2 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 post Share on other sites
jmf 0 Posted March 5 Share Posted March 5 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 post Share on other sites
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.