Re: errors when trying to build opencv

"David H. Gutteridge" <[email protected]> Sat, 12 Jun 2021 14:33:33 -0400
Newsgroups gmane.os.netbsd.ports.macppc
Message-ID <[email protected]>
Thu, 10 Jun 2021 17:47:12 -0400, Adam Russell wrote:
> There appears to be something wrong in the opencv configs.
> 
> The tests will try to compile cmake/checks/atomic_check.cpp as a test
> for libatomic and will fail.
> 
> I can manually get the same test to compile without issues, however.
> 
> g++ -L/usr/pkg/lib -latomic 
> ./work/opencv-3.4.9/cmake/checks/atomic_check.cpp

This suggests you already have libatomic installed?

> I think this should build OK on this platform but requires a bit more
> effort than I presently have time for. For now I am going to pause this
> effort but if anyone searches the mailing lists with the same error
> perhaps this might help!

Does the following (untested) patch fix things for you? If so, I'll
commit it.

--- Makefile	4 Dec 2020 20:45:23 -0000	1.96
+++ Makefile	12 Jun 2021 16:39:35 -0000
@@ -40,4 +40,5 @@
  .include "../../lang/python/extension.mk"
  .include "../../math/py-numpy/buildlink3.mk"
  .include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/atomic64.mk"
  .include "../../mk/bsd.pkg.mk"

  Regards,

  Dave