Re: errors when trying to build opencv
Adam Russell <[email protected]> Thu, 24 Jun 2021 23:12:56 -0400
| Newsgroups | gmane.os.netbsd.ports.macppc |
|---|---|
| Message-ID | <[email protected]> |
David H. Gutteridge wrote: > 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" Thank you for the suggestion, my apologies for the delay in responding! I use gmane for these lists and it seems my earlier response did not send properly through the gmane system. I tried that and get any error stating atomic64.mk cannot be found. I searched and nothing turns up. i.e. find /usr/pkgsrc/mk -name '*atom*' returns nothing libatomic is absolutely installed, I am certain bash-5.0# ls -l /usr/pkg/lib/libatomic* -rw-r--r-- 1 root wheel 80058 Jun 3 20:02 /usr/pkg/lib/libatomic.a -rwxr-xr-x 1 root wheel 966 Jun 3 20:02 /usr/pkg/lib/libatomic.la lrwxr-xr-x 1 root wheel 16 Jun 3 20:02 /usr/pkg/lib/libatomic.so -> libatomic.so.3.0 lrwxr-xr-x 1 root wheel 16 Jun 3 20:02 /usr/pkg/lib/libatomic.so.3 -> libatomic.so.3.0 -rwxr-xr-x 1 root wheel 40896 Jun 3 20:02 /usr/pkg/lib/libatomic.so.3.0