News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Configuring CodeBlocks Build for Flatpak

Started by dthu, January 26, 2025, 01:13:08 AM

Previous topic - Next topic

dthu

Hi everyone,

I've updated the CodeBlocks Flatpak to the latest SDK. I'd also like to add dependencies via the plugin system, this environment requires modifying the CodeBlocks configuration so that the libraries are found. This can clearly be done by hand but I doubt most people know how the directories are organized. Is there a way to modify the source to customize the CodeBlocks examples and have them run directly without user intervention? I'd mainly like to know if it's relatively easy or if there are too many files to modify, in which case I'd rule it out.

stahta01

Since Code::Blocks is often reported as not working in flatpaks I suggest getting it to work is the first step.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

dthu

In my local tests it works fine, I've also compiled, used valgrin and gdb. I assume the errors are due to the package being configured to support Wayland, but that has since been removed, hopefully that will fix the errors.
Clearly some software needs to be added to the environment, my plan is to just add some, because the CodeBlocks sandbox will always be limited.

dthu

I don't know if this is the right place for this, I hope I'm corrected if it isn't.

I'm using Code::Blocks r13607, and when trying to create a project for GLFW, when indicating the location of the lib and include folders, the program says it can't find glfw3, but lib contains libglfw.so, libglfw.so.3 and libglfw.so.3.4. I'm using a non-standard path to store the libraries.

Miguel Gimenez

The flatpak creator may limit access to some folders, this has been usually the problem with missing includes or libraries.

dthu

That's not the problem, because everything is in the same space. I can create a project manually.