dept2 / qtmultimedia-gphoto

Qt 5 Multimedia framework gphoto2 camera plugin
25 stars 11 forks source link

GPhoto2 : File Missings #12

Open kopierreko opened 3 years ago

kopierreko commented 3 years ago

Hello,

Do you know if there is a specific way to install / compile it on MacOS ? I have some troubles (functions missing).

I have installed the libgphoto2 with brew, I found the headers in usr/local/include/gphoto2 and the dylib in usr/local/bin

I modified the .pro : LIBS += -L/usr/local/lib -lgphoto2 INCLUDEPATH += /usr/local/include

And here is the error : Undefined symbols for architecture x86_64: "_gp_port_info_list_count", referenced from: GPhotoWorker::init() in gphotoworker.o "_gp_port_info_list_free", referenced from: GPhotoWorker::GPhotoWorker() in gphotoworker.o "_gp_port_info_list_get_info", referenced from: GPhotoWorker::getPortInfo(int, bool*) in gphotoworker.o "_gp_port_info_list_load", referenced from: GPhotoWorker::init() in gphotoworker.o "_gp_port_info_list_lookup_path", referenced from: GPhotoWorker::getPortInfo(int, bool*) in gphotoworker.o "_gp_port_info_list_new", referenced from: GPhotoWorker::GPhotoWorker() in gphotoworker.o "_gp_port_info_new", referenced from: GPhotoWorker::getPortInfo(int, bool*) in gphotoworker.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libgphoto.dylib] Error 1

I will continue to search if I find a solution...

Thanks

kopierreko commented 3 years ago

We just found the solution by comparing with a friend ; I had to modify the .pro with LIBS += -L/usr/local/lib -lbgphoto2 -lbgphoto2_port to have no error on Catalina.

Specifically, I also have to add INCLUDEPATH += /usr/local/include but it is another problem.

So here is the .pro to compile it on MacOS (Cataline and Mojave tested) after running "brew install gphoto2"

gphoto.pro.zip

Le 3 janv. 2021 à 20:10, Christian Bauer notifications@github.com a écrit :

 Did you install the devlib too?

sudo apt-get install git gphoto2 libgphoto2-dev — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cyberbobs commented 3 years ago

Well, it's pretty amazing it works since I haven't tested this plugin on macOS at all :) Will try to look into this when I can get my hands on Mac.