0
내 질문이 https://github.com/gphoto/libgphoto2/tree/master/examples정의되지 않은 참조
에서 gphoto2에 libgphoto2에 관한 컴파일 libgphoto2/예 나는 "libgphoto2/예/lunkwill - 캐논 - capture.c"(libgphoto2/예에서는 기본적으로 모든이 .c 파일을 컴파일 할 때 보여 같은 오류)
의 gcc -Wall -o TESTOUTPUT -lgphoto2 샘플 트리거 capture.c (libgphoto2 설명서 제안으로)
내가 가진 오류
/tmp/ccg65O2b.o: In function `wait_event_and_download':
sample-trigger-capture.c:(.text+0xad): undefined reference to `gp_camera_wait_for_event'
sample-trigger-capture.c:(.text+0x371): undefined reference to `gp_camera_file_read'
sample-trigger-capture.c:(.text+0x57b): undefined reference to `gp_camera_file_delete'
/tmp/ccg65O2b.o: In function `main':
sample-trigger-capture.c:(.text+0x607): undefined reference to `sample_create_context'
sample-trigger-capture.c:(.text+0x64c): undefined reference to `gp_log_add_func'
sample-trigger-capture.c:(.text+0x658): undefined reference to `gp_camera_new'
sample-trigger-capture.c:(.text+0x66b): undefined reference to `gp_camera_init'
sample-trigger-capture.c:(.text+0x6db): undefined reference to `gp_camera_trigger_capture'
sample-trigger-capture.c:(.text+0x799): undefined reference to `gp_camera_exit'
collect2: error: ld returned 1 exit status
내가 뭘 잘못 했니? 이 명령
의 gcc -Wall -o TESTOUTPUT 샘플 트리거 - capture.c -lgphoto2 -lgphoto2_port
을 시도 안부