Could you perhaps provide a little more context to what you are trying to achieve? Are you trying to port a dependency of FreeCAD?
What exactly are you running to get that error? I think it could be that your packages and ports tree are out-of-sync, but I’m not entirely sure. If you are running -current (which you should if you are trying to port something) make sure to update to the latest snapshot with sysupgrade and update your packages after the reboot with pkg_add -u. Lastly update your ports tree.
I am running “make” in the freecad directory of jasperla/openbsd-wip.
I think the problem was that my ports tree wasn’t up to date. And as a newbie I was confused about where to get the dependencies. Then I asked, and now I think I must get the dependencies from the ports tree, and not via pkg_add.
Also, is one supposed to run release, stable or current to build these?
This should fail anyways as not all required dependencies have been ported yet.
AFAIK you can use pkg_add but then your ports and packages have to be both up-to-date. Of course ports should always be a little bit ahead than packages since I don’t think snapshots are made after every commit to the ports tree, so I guess there could be times when you will need to use ports to get the newest version/revision of a dependency. I’m used to installing dependencies with pkg_add to avoid having to compile them and so far I haven’t had any issues.
If you are working with ports, you should be using current.
wmayer, quick question: Does occt need to be compiled with VTK support to use it in FreeCAD? Currently there is only oce available on OpenBSD and I’m working on replacing it with occt, but I’m not sure what options to use.
For an overview of the occt compile options see here. From those only FreeType and Tcl/Tk seem to be required.
So how probable is it that you’ve interpreted that the port is even feasible?
Linuxes and BSDs have no binary compatibility, but source is compatible with standard libraries. If the project uses libraries that are non-standard, then we might be looking at a mess.
Why wouldn’t it? FreeCAD is built to be multiplatform.
Yup, welcome to the mess. As explained before, we need to port those non-standard libraries (listed in the first post) before even thinking about porting FreeCAD.