Author Topic: LibrePCB  (Read 313 times)

Michael

  • Newbie
  • *
  • Posts: 29
  • Karma: +4/-0
    • View Profile
LibrePCB
« on: January 20, 2026, 07:50:46 am »
A question to the C++ programmers:

Is it technically possible to port LibrePCB to OS/2? Do we have the necessary prerequisites for this? Or would the effort be excessive...

https://librepcb.org/


Dave Yeo

  • Hero Member
  • *****
  • Posts: 5668
  • Karma: +145/-1
    • View Profile
Re: LibrePCB
« Reply #1 on: January 20, 2026, 08:16:54 am »
Quickly looking. It is a Qt app, which we support. It has a dependency on OpenGL, which we don't have (well a really old one) so without it, no 3D support. The killer is it mentions a Rust Crate. We don't have a Rust port and it might not be possible to build with Rust on 32 bit platforms due to lack of memory. Whether the Rust is a hard dependency or not is not obvious but likely is.
Bed time here, might look better at it tomorrow.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5605
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: LibrePCB
« Reply #2 on: January 20, 2026, 03:42:12 pm »
Hello

The Gemini AI tells me that LibrePCB started using the Rust Toolchain in version 1.3, but it may be right or wrong.

Maybe LibrePCB 1.2.0 can compile.
https://download.librepcb.org/releases/1.2.0/

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5668
  • Karma: +145/-1
    • View Profile
Re: LibrePCB
« Reply #3 on: January 20, 2026, 05:56:55 pm »
Hmm, quickly trying librepcb-1.2.0, the build quickly dies here,
Code: [Select]
CMake Error at /@unixroot/usr/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5OpenGL" with
  any of the following names:

    Qt5OpenGLConfig.cmake
    qt5opengl-config.cmake

  Add the installation prefix of "Qt5OpenGL" to CMAKE_PREFIX_PATH or set
  "Qt5OpenGL_DIR" to a directory containing one of the above files.  If
  "Qt5OpenGL" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:188 (find_package)


-- Configuring incomplete, errors occurred!

The readme does claim that OpenGL is optional along with another library. Have to look closer after work.

Michael

  • Newbie
  • *
  • Posts: 29
  • Karma: +4/-0
    • View Profile
Re: LibrePCB
« Reply #4 on: January 20, 2026, 06:29:33 pm »
Thanks Dave for your effort.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1461
  • Karma: +34/-0
    • View Profile
Re: LibrePCB
« Reply #5 on: January 20, 2026, 09:53:40 pm »
Dave!

Hmm, quickly trying librepcb-1.2.0, the build quickly dies here,
...
The readme does claim that OpenGL is optional along with another library. Have to look closer after work.

The author's page (https://developers.librepcb.org/d5/d96/doc_building.html) claims the following can be used to bypass the compilation of 3D viewer of LibrePCB using the folloing option:

Quote
cmake .. -DUSE_GLU=0


Dave Yeo

  • Hero Member
  • *****
  • Posts: 5668
  • Karma: +145/-1
    • View Profile
Re: LibrePCB
« Reply #6 on: January 21, 2026, 12:24:05 am »
Hmm, that also didn't work. I'll have to examine all the cmake files and hopefully find the magic define

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 398
  • Karma: +31/-0
    • View Profile
Re: LibrePCB
« Reply #7 on: January 21, 2026, 09:18:07 am »
We need some OpenGL implementation to get stuff like this running. I don't care if it's slow BTW.

TeLLie

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +19/-0
    • View Profile
Re: LibrePCB
« Reply #8 on: January 21, 2026, 12:54:32 pm »
Hi alll
I disable all the opengl.

Its been build till 50 procent now...

G:\...-1.2.0\librepcb-1.2.0-cmake-3.31_i686-pc-os2-emx_920\apps\librepcb-cli>librepcb-cli.exe --version
LibrePCB CLI Version 1.2.0
File Format 1 (stable)
Git Revision f079fa97b
Qt Version 5.15.2 (compiled against 5.15.2)
OpenCascade N/A
Built at 1/21/26 12:35 PM