问题描述
我正在尝试为正在开发的项目与Horos一起工作的源代码(https://github.com/horosproject/horos)进行编译。
我将其加载到xCode中并设置了适当的证书设置,这样苹果就不会抱怨签名了。
按照自述文件的指示,我已在正确的位置安装了以下组件。
which cmake
/usr/local/bin/cmake
which pkg-config
/usr/local/bin/pkg-config
which git-lfs
/usr/local/bin/git-lfs
Undefined symbols for architecture x86_64:
"_ENGINE_load_gost",referenced from:
_ENGINE_load_builtin_engines in libcrypto.a(eng_all.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[3]: *** [link_app.] Error 1
make[2]: *** [evp_test] Error 2
make[2]: *** Waiting for unfinished jobs....
Undefined symbols for architecture x86_64:
"_ENGINE_load_gost",referenced from:
_ENGINE_load_builtin_engines in libcrypto.a(eng_all.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[3]: *** [link_app.] Error 1
make[2]: *** [openssl] Error 2
make[1]: *** [build_apps] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [build_tests] Error 1
warning: AddressBook is deprecated. Consider migrating to Contacts instead. (in target 'Horos' from project 'Horos')
warning: OpenGL is deprecated. Consider migrating to Metal instead. (in target 'Horos' from project 'Horos')
** BUILD Failed **
The following build commands Failed:
PhaseScriptExecution Make /Users/joeastrahan/Desktop/horos/build/Horos.build/Release/OpenSSL.build/Script-71A523312021D3650065793A.sh
(1 failure)
make: *** [Horos] Error 65
我特别认为错误是关于
PhaseScriptExecution Make /Users/joeastrahan/Desktop/horos/build/Horos.build/Release/OpenSSL.build/Script-71A523312021D3650065793A.sh
查看该脚本后,我会在里面看到它。
#!/bin/sh
sh "Horos/Scripts/$TARGET_NAME/Make.sh"
我正在编译的目录的LS -al
是...
joeastrahan@Melvins-Mac-Pro-3 horos % ls -al
total 224
drwxr-xr-x 43 joeastrahan staff 1376 Oct 31 15:22 .
drwx------@ 8 joeastrahan staff 256 Oct 31 15:13 ..
-rw-r--r--@ 1 joeastrahan staff 6148 Nov 3 15:10 .DS_Store
drwxr-xr-x 14 joeastrahan staff 448 Nov 3 15:19 .git
-rw-r--r-- 1 joeastrahan staff 853 Oct 31 15:15 .gitignore
-rw-r--r-- 1 joeastrahan staff 789 Oct 31 15:15 .gitmodules
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 API
drwxr-xr-x 32 joeastrahan staff 1024 Oct 31 15:23 Binaries
-rw-r--r-- 1 joeastrahan staff 42021 Oct 31 15:15 copYING.LESSER
drwxr-xr-x 19 joeastrahan staff 608 Oct 31 15:25 CharLS
drwxr-xr-x 59 joeastrahan staff 1888 Oct 31 15:15 DCM Framework
drwxr-xr-x 40 joeastrahan staff 1280 Oct 31 15:25 DCMTK
drwxr-xr-x 6 joeastrahan staff 192 Oct 31 15:15 DICOMPrint
drwxr-xr-x 5 joeastrahan staff 160 Oct 31 15:15 Decompress
drwxr-xr-x 10 joeastrahan staff 320 Oct 31 15:15 DicomImporter
-rw-r--r-- 1 joeastrahan staff 9920 Oct 31 15:15 Doxyfile-dcmframework
-rw-r--r-- 1 joeastrahan staff 9926 Oct 31 15:15 Doxyfile-horos
drwxr-xr-x 25 joeastrahan staff 800 Oct 31 15:25 GDCM
drwxr-xr-x 19 joeastrahan staff 608 Oct 31 15:25 Grok
drwxr-xr-x 10 joeastrahan staff 320 Oct 31 15:15 Horos
drwxr-xr-x 3 joeastrahan staff 96 Oct 31 15:15 Horos Launcher
drwxr-xr-x@ 6 joeastrahan staff 192 Oct 31 15:23 Horos.xcodeproj
drwxr-xr-x 25 joeastrahan staff 800 Oct 31 15:25 ITK
-rw-r--r-- 1 joeastrahan staff 2979 Oct 31 15:15 LICENSE
drwxr-xr-x 8 joeastrahan staff 256 Oct 31 15:15 LetsMoveAndDock
-rwxr-xr-x 1 joeastrahan staff 103 Oct 31 15:15 LocalizationExtract.sh
-rwxr-xr-x 1 joeastrahan staff 182 Oct 31 15:15 LocalizationGenerate.sh
drwxr-xr-x 14 joeastrahan staff 448 Oct 31 15:15 MSRG
-rw-r--r-- 1 joeastrahan staff 106 Oct 31 15:15 Makefile
drwxr-xr-x 7 joeastrahan staff 224 Oct 31 15:15 NIfTI_Library
drwxr-xr-x 5 joeastrahan staff 160 Oct 31 15:15 NSFont_OpenGL
drwxr-xr-x 7 joeastrahan staff 224 Oct 31 15:15 nitrogen
drwxr-xr-x 23 joeastrahan staff 736 Oct 31 15:25 OpenJPEG
drwxr-xr-x 57 joeastrahan staff 1824 Oct 31 15:25 OpenSSL
drwxr-xr-x 24 joeastrahan staff 768 Oct 31 15:15 Papyrus3
drwxr-xr-x 17 joeastrahan staff 544 Oct 31 15:15 Preference Panes
-rw-r--r-- 1 joeastrahan staff 927 Oct 31 15:15 README.md
-rw-r--r-- 1 joeastrahan staff 62 Oct 31 15:15 README.txt
-rw-r--r-- 1 joeastrahan staff 0 Oct 31 15:15 To-Do.txt
drwxr-xr-x 39 joeastrahan staff 1248 Oct 31 15:25 VTK
drwxr-xr-x@ 4 joeastrahan staff 128 Oct 31 15:45 build
drwxr-xr-x 36 joeastrahan staff 1152 Oct 31 15:15 cocoahttpserver
-rw-r--r-- 1 joeastrahan staff 92 Oct 31 15:15 ramdiskScript.txt
在脚本文件夹内,这就是我所看到的。
joeastrahan@Melvins-Mac-Pro-3 horos % cd Horos
joeastrahan@Melvins-Mac-Pro-3 Horos % ls
Horos.entitlements Info.plist Models Resources Scripts Sources Unit Tests prefix.pch
joeastrahan@Melvins-Mac-Pro-3 Horos % cd Scripts
joeastrahan@Melvins-Mac-Pro-3 Scripts % ls
CharLS DCMTK GDCM Grok Horos ITK OpenJPEG OpenSSL VTK
joeastrahan@Melvins-Mac-Pro-3 Scripts % ls -al
total 0
drwxr-xr-x 11 joeastrahan staff 352 Oct 31 15:15 .
drwxr-xr-x 10 joeastrahan staff 320 Oct 31 15:15 ..
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 CharLS
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 DCMTK
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 GDCM
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 Grok
drwxr-xr-x 5 joeastrahan staff 160 Oct 31 15:15 Horos
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 ITK
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 OpenJPEG
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 OpenSSL
drwxr-xr-x 4 joeastrahan staff 128 Oct 31 15:15 VTK
joeastrahan@Melvins-Mac-Pro-3 Scripts %
有人可以编译吗?还是我的计算机做错了什么?任何人都没有任何线索,可以帮助我正确构建这些东西?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)