Porting FreeCAD to BSD (NetBSD and cousins) and other stuff

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
User avatar
Kunda1
Posts: 3543
Joined: Thu Jan 05, 2017 9:03 pm

Re: Porting FreeCAD to BSD (NetBSD and cousins) and other stuff

Postby Kunda1 » Tue Jan 08, 2019 11:59 pm

https://github.com/luzpaz/freecad-dependencies#freecad
The FreeBSD port maintainers are great. Qt 5.12 is supported on ports I bet we could get them to support pyside and shiboken as well. Then subsequently be able to get 0.18 supported when it's released

Edit: tracking downstream tickets for pyside2 and shiboken2 for FreeBSD at https://github.com/luzpaz/FreeCAD-depen ... /issues/41
Last edited by Kunda1 on Wed Jan 09, 2019 1:07 pm, edited 1 time in total.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
gh2
Posts: 3
Joined: Tue Jan 08, 2019 1:14 pm

Re: Porting FreeCAD to BSD (NetBSD and cousins) and other stuff

Postby gh2 » Wed Jan 09, 2019 10:32 am

OpenSUSE
FreeCAD is typically installed with: zypper install FreeCAD

I tried emulate LINUX on NetBSD:
cd /usr/pkgsrc/misc/rpm/
make install clean distclean clean-depends
cd /usr/pkgsrc/emulators/suse131_base
make install clean distclean clean-depends
cd /usr/pkgsrc/emulators/suse131_compat
make install clean distclean clean-depends
cd /usr/pkgsrc/emulators/suse131_x11
make install clean distclean clean-depends
mount_procfs -o linux procfs /usr/pkg/emul/linux/proc
Edit /etc/fstab and add this line
procfs /usr/pkg/emul/linux/proc procfs ro,linux

But now I don't know how to install zypper. :?:
triplus
Posts: 7777
Joined: Mon Dec 12, 2011 4:45 pm

Re: Porting FreeCAD to BSD (NetBSD and cousins) and other stuff

Postby triplus » Wed Jan 09, 2019 1:48 pm

Hi @gh2

I took another look today and on NetBSD you should be able to install FreeCAD 0.16:

http://pkgsrc.se/search.php

That should i guess therefore just work. As i don't have much experience with BSD read the following more as some general pointers. All the build dependencies seem to be there and therefore you should be able to compile FreeCAD (Py2/Qt4) yourself, by downloading FreeCAD source code, installing build dependencies and compiling FreeCAD after. That is without involving Linux emulation.
show-depends print dependencies for building
This might help you to get a list of FreeCAD 0.16 package build dependencies (pkgsrc). And you can use it when trying to compile FreeCAD yourself.

If you want to involve Linux emulation, that reads somewhat complex:

https://www.netbsd.org/docs/guide/en/chap-linux.html

If i understand it correctly, when enabling Linux emulation, you basically install a package offering the Linux emulation. And some shared libraries are already provided? If libraries like glibc are provided by default i guess running AppImage under Linux emulation might be an option too:

https://github.com/FreeCAD/FreeCAD/releases

But all in all you likely need to be an expert to make it work, therefore good luck!
gh2
Posts: 3
Joined: Tue Jan 08, 2019 1:14 pm

Re: Porting FreeCAD to BSD (NetBSD and cousins) and other stuff

Postby gh2 » Sat Jan 12, 2019 11:51 pm

triplus wrote:
Wed Jan 09, 2019 1:48 pm
Hi triplus

Thanks for answer.
Site http://pkgsrc.se/search.php is strange place. I can't find packages there. Freecad 0.16 is there described in cathegory wip which means work in progress. Official NetBSD repository (http://ftp.netbsd.org/pub/pkgsrc/curren ... EADME.html) has not Freecad and it's dependicies.
I tried to emulate linux following your link https://www.netbsd.org/docs/guide/en/chap-linux.html. So, finaly I installed Acrobad Reader 7 which is Linux application and it works well. But article has warning that Linux mode may not work properly with all applications and there is link to other article.
Since last post I have made some progress about compiling but I'm afraid not enough. I must leave forum.