이제이 동적 라이브러리를 사용하는 동적 라이브러리 및 명령 줄 일러스트 프로그램을 구축 중입니다.Mac에서 동적 라이브러리 경로 오류가 발생했습니다.
/user/xxx/develop/debug/libdynamic.dylib
/user/xxx/develop/debug/illustration
그림 프로그램이 내 컴퓨터에서 잘 작동 할 수, 내 동료에게 동적 라이브러리뿐만 아니라 그림 프로그램을 보내고 그는를 실행합니다 : 라이브러리와 그림 프로그램은 같은 폴더에 그의 컴퓨터에서 그림 프로그램입니다. 그러나 명령 창에서 일러스트레이션 프로그램을 실행할 때마다 프로그램은 libdynamic.dylib
을로드 할 수 없으므로 내 동료 컴퓨터에서 사용할 수없는의 라이브러리를 찾으려고합니다. 내가 뭘해야하는지 궁금해서. 많은 감사합니다.
편집 : 다음 그림 프로그램 otool 사용하여 출력이 될 때 :
/Users/xxx/develop/debug/libdynamic.dylib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.18.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
죄송합니다.'dylib '가 어디에 있는지 생각해보기 위해'otool -L/user/xxx/develop/debug/illustration'이 필요합니다. – trojanfoe