[WIP] OpenBSD Port

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
thyssentishman
Posts: 64
Joined: Mon May 16, 2022 10:35 am

Re: [WIP] OpenBSD Port

Post by thyssentishman »

Another question @wmayer: Based on this, FreeCAD's source includes the source code of libarea, zipios++, zlib and quarter. An external Zipios++ provided by the OS can be used with FREECAD_USE_EXTERNAL_ZIPIOS=ON. Can this be done for the other included libraries as well? Usually OpenBSD ports try to use shared libraries as much as possible, but I'm not sure if this is a good idea with the included libraries in FreeCAD. Have they been specifically modified for FreeCAD?
wmayer
Founder
Posts: 19944
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [WIP] OpenBSD Port

Post by wmayer »

zlib code is not part of the FreeCAD code base. A CMake switch only exists for zipios++ but neither for Quarter and libarea. Furthermore, the Quarter code has changes compared to the original code to better fulfil our needs.
thyssentishman
Posts: 64
Joined: Mon May 16, 2022 10:35 am

Re: [WIP] OpenBSD Port

Post by thyssentishman »

wmayer wrote: Mon Sep 18, 2023 4:24 pm zlib code is not part of the FreeCAD code base
I see, so the wiki is outdated.
wmayer wrote: Mon Sep 18, 2023 4:24 pm A CMake switch only exists for zipios++ but neither for Quarter and libarea. Furthermore, the Quarter code has changes compared to the original code to better fulfil our needs.
Does this mean that an external libarea can be used?
wmayer
Founder
Posts: 19944
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [WIP] OpenBSD Port

Post by wmayer »

I see, so the wiki is outdated.
No, it's correct. It's relevant if you build a LibPack on Windows but for all UNIX systems you usually can use a system package.
Does this mean that an external libarea can be used?
No idea. Maybe ask a maintainer of the Path module.

@sliptonic
@mlampert
thyssentishman
Posts: 64
Joined: Mon May 16, 2022 10:35 am

Re: [WIP] OpenBSD Port

Post by thyssentishman »

wmayer wrote: Mon Sep 18, 2023 4:40 pm No, it's correct. It's relevant if you build a LibPack on Windows but for all UNIX systems you usually can use a system package.
Got it, sorry for the assumption.
thyssentishman
Posts: 64
Joined: Mon May 16, 2022 10:35 am

Re: [WIP] OpenBSD Port

Post by thyssentishman »

wmayer wrote: Mon Sep 18, 2023 4:40 pm No idea. Maybe ask a maintainer of the Path module.
@sliptonic, @mlampert: Would it be an issue to use an external libarea instead of the one included in the FreeCAD sources? The FreeBSD port appears to be doing so, but with the Heeksa/libarea and not with danielfalck/libarea which is referenced here.
User avatar
yorik
Founder
Posts: 13452
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [WIP] OpenBSD Port

Post by yorik »

wmayer wrote: Mon Sep 18, 2023 12:23 pm I didn't expect that SoQt is still used in Arch but to me it looks the corresponding function isn't used any more.
@yorik
Should this code be removed?
Sorry for the delay... Yes, I don't think SoQt is used in any workbench anymore.
wmayer
Founder
Posts: 19944
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [WIP] OpenBSD Port

Post by wmayer »

yorik wrote: Thu Sep 21, 2023 8:29 am Yes, I don't think SoQt is used in any workbench anymore.
SoQt is still used in Arch and the question is whether OfflineRenderingUtils.viewer() can be removed.
User avatar
yorik
Founder
Posts: 13452
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [WIP] OpenBSD Port

Post by yorik »

Oh your're right... :oops:

Well this module is not used in FreeCAD itself, it's made to be used by other modules, addons, platforms... That viewer was actually just an example, I think it should be reformed to use a quarter widget anyway... So yes, I think we can safely remove it
User avatar
onekk
Veteran
Posts: 5603
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [WIP] OpenBSD Port

Post by onekk »

yorik wrote: Fri Sep 22, 2023 1:02 pm ...
So yes, I think we can safely remove it
Only for information on Arch Linux soqt is requested as dependency by python-pivy.

I've found it when I've updated my Artix Linux distribution deleting all the dependencies on Arch Linux packages, so I've had to install all the packages that Artix Linux has not repackaged (Artix Linux is an Arch derivative without SystemD), in the process I've found that on Arch Linux these packages are needed to run FreeCAD but are not (yet, hopefully) packaged for Artix Linux:

- opencascade > freeimage > jxrlib
- med-openmpi (community) > hdf5-openmpi
- python-pivy > soqt > coin
- libspnav

Kind Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Post Reply