Hello, I usually get along pretty well with oF but I am finding myself out of my depth in this case.
Camera SDK
I am trying to use the SDK for a CMOS camera made by ZWO. The SDK comes from the ZWO website and (spoiler alert) the contents are:
demo/
bin/
x86/
main_SDK2_video_mac
test_gui2_snap
test_gui2_video
main_SDK2_snap.cpp
main_SDK2_video_mac.cpp
main_SDK2_video.cpp
Makefile
readme.txt
doc/
ASICamera2 Software Development Kit.pdf
include/
ASICamera2.h
lib/
armv6/
libASICamera2.a
libASICamera2.so
libASICamera2.so.1.16.3
armv7/
libASICamera2.a
libASICamera2.so
libASICamera2.so.1.16.3
armv8/
libASICamera2.a
libASICamera2.so
libASICamera2.so.1.16.3
asi.rules
mac/
libASICamera2.a
libASICamera2.dylib
libASICamera2.dylib.1.16.3
README.txt
x64/
libASICamera2.a
libASICamera2.so
libASICamera2.so.1.16.3
x86/
libASICamera2.a
libASICamera2.so
libASICamera2.so.1.16.3
license.txt
My Attempts
There might be some holes in this because I worked on a bulk of it last week. I’ve also looked through the SDK examples, etc., but I’m still writing this post so the docs weren’t that helpful for me. I took some guidance from a few places but this is the only source I still have around.
Add Directly to Project
I brought ASICamera2.h
into my project, imported that header file into a CPP file, and code completion seems to work as expected. In my target settings I added the macos
folder from the SDK to Link Binary With Libraries
list. I have also tried other variations like adding a higher-lever folder, adding each of the system folders with the *.a
and *.so
files, and just adding the *.a
file(s).
As Addon
I also tried doing approximately the same process by modifying an empty add-on template, adding it with projectGenerator
.
Error
Add Directly to Project
When I Build for My Mac
(an M1) the main issue seems to be ld: symbol(s) not found for architecture x86_64
. When I Build for My Mac (Rosetta)
I am currently getting the same error but I thought that last week it showed just ...x86
(or was it ...x64
? I know I should know, but, ugh).
As Addon
I don’t recall what happened and I have so little faith in my work there that I won’t bother re-creating unless this seems like this is where the answer lies.