Author Topic: Configuring CodeBlocks Build for Flatpak  (Read 5963 times)

Offline dthu

  • Single posting newcomer
  • *
  • Posts: 8
Configuring CodeBlocks Build for Flatpak
« on: January 26, 2025, 01:13:08 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7730
    • My Best Post
Re: Configuring CodeBlocks Build for Flatpak
« Reply #1 on: January 26, 2025, 01:40:16 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dthu

  • Single posting newcomer
  • *
  • Posts: 8
Re: Configuring CodeBlocks Build for Flatpak
« Reply #2 on: January 26, 2025, 02:06:33 am »
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.

Offline dthu

  • Single posting newcomer
  • *
  • Posts: 8
Re: Configuring CodeBlocks Build for Flatpak
« Reply #3 on: February 19, 2025, 09:47:27 pm »
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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1695
Re: Configuring CodeBlocks Build for Flatpak
« Reply #4 on: February 19, 2025, 10:12:28 pm »
The flatpak creator may limit access to some folders, this has been usually the problem with missing includes or libraries.

Offline dthu

  • Single posting newcomer
  • *
  • Posts: 8
Re: Configuring CodeBlocks Build for Flatpak
« Reply #5 on: February 20, 2025, 12:12:09 am »
That's not the problem, because everything is in the same space. I can create a project manually.