Hello,
I was wondering if I could get some help with getting the SDK for ASI cams up and running.
My machine is running Fedora 28. I am very new to Linux operating systems (and quite a novice in programming as well), so quite likely this is a generic "Linux ignorance" problem...
I have downloaded the SDK package and unpacked it. The contents are in my home user directory (/home/<myuser>/ASI_linux_mac_SDK). I also have OpenCV installed on my computer (the whole goal of this exercise is to use some ASI120mm cams with OpenCV). In the /home/<myuser>/ASI_linux_mac_SDK/demo directory, I see two cpp programs and a Makefile (as well as a bin directory). If I run the make command, it gives me the following.
/usr/bin/ld: cannot find -lopencv_core
/usr/bin/ld: cannot find -lopencv_highgui
/usr/bin/ld: cannot find -lopencv_imgproc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.so when searching for -lstd+++
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make: *** Error 1
It seems like it's having trouble finding something in OpenCV. Looking at the Makefile, I see this line:
OPENCV = -lopencv_core -lopencv_highgui -lopencv_imgproc#$(shell pkg-config --cflags opencv) $(shell pkg-config --libs opencv) -I/usr/include/opencv2
Now, after some digging, I see that in the /usr/local/include directory, there is an opencv and opencv2. Going to opencv2, I see that there are directories for core, highgui, and imgproc. I tried changing the line in the Makefile from what it was to this:
OPENCV = -lopencv_core -lopencv_highgui -lopencv_imgproc#$(shell pkg-config --cflags opencv) $(shell pkg-config --libs opencv) -I/usr/local/include/opencv2
Basically just changing the -I/usr/include/opencv2 --> -I/usr/local/include/opencv2. I have no idea what that argument does, but changing it did not help. It was just a shot in the dark.
How do I resolve this? My apologies if this is something that is obvious.
Thanks,
Jacob