If it's complaining that "_main" was not found... that's not part of OpenImageIO, it's from your app.
Is it possible that you're telling the linker to make a "universal" binary (multiple architectures), but you compiled the module that contains your main() function with the flags that make only one architecture? > On Jan 29, 2022, at 2:44 PM, Dariusz <dari...@dariuszmakowski.com> wrote: > > Hey > > I'm trying to wrap my head around how can I get this library to run on M1 arm > arch. > Ive used brew install openimageio & that went "well". > But when I try to link it/use it in my cmake project via > > > find_package(OpenImageIO CONFIG REQUIRED) > target_link_libraries(testApp OpenImageIO::OpenImageIO > OpenImateIO::OpenImageIO_Util) > > I get this error : > > _main in testApp.cpp.o > > ld: sumbol(s) not found for architecture arm64. > > I tried to install with VCPKG, but that refused outright to install > openimageIO. I looked on brew website and this lib is marked green for > arm/universal arch sooo... > Do I need to pass some argument to build it for arm or something? > > Really really really need this lib on mac... > > Regards > Dariusz > > > -- > DARIUSZ MAKOWSKi > CGI-Photographer > 07 590 530 854 > dari...@dariuszmakowski.com > www.dariuszmakowski.com > > > -- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org