- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我基本上正在尝试编译以下存储库。 https://github.com/zhaozg/lui
以下是我到达的位置:(如果我遵循的步骤可能完全错误,我很抱歉,因为我总体上是 C 和 GCC 的新手,我只是尽力将这个难题整合在一起)
它有两个依赖项:
我能够从上述 2 个项目生成两个文件:
到目前为止我很高兴,但我不知道如何使用上面的.a文件并编译zhaozg/lui项目。
github上编译说明如下:
gcc -shared -Isrc src/lui.c -I{LUAINCDIR} -I{LIBUVINCDIR} -lui -llua-5.1 -o luv.so
另外,我试图将编译后的文件保留在本地,而不是将它们复制到/usr/local
所以,几个小时后,我达到了以下步骤:
gcc -shared -v -Isrc src/lui.c -I ../lua-src -I ../libui /Users/silva/Documents/test00x/lui/liblua.a /Users/silva/Documents/test00x/lui/libui.a
但现在我遇到了以下错误:
gcc -shared -v -Isrc src/lui.c -I ../lua-src -I ../libui /Users/silva/Documents/test00x/lui/liblua.a /Users/silva/Documents/test00x/lui/libui.a
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name lui.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 351.8 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0 -I src -I ../lua-src -I ../libui -fdebug-compilation-dir /Users/silva/Documents/test00x/lui -ferror-limit 19 -fmessage-length 129 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.13.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/ps/568797890l55qcbrzmcjd6tr0000gp/T/lui-101fc8.o -x c src/lui.c
clang -cc1 version 9.1.0 (clang-902.0.39.1) default target x86_64-apple-darwin17.5.0
#include "..." search starts here:
#include <...> search starts here:
src
../lua-src
../libui
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
src/lui.c:152:13: warning: implicit declaration of function 'luaL_checkint' is invalid in C99 [-Wimplicit-function-declaration]
ret = luaL_checkint(L, -1);
^
In file included from src/lui.c:210:
src/ldraw.c:51:3: warning: implicit declaration of function '_i64toa' is invalid in C99 [-Wimplicit-function-declaration]
lua_pushINT64(L, evt->Held1To64);
^
src/ldraw.c:26:23: note: expanded from macro 'lua_pushINT64'
lua_pushstring(L, _i64toa(n, buf, 10)); \
^
src/ldraw.c:51:3: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *'
[-Wint-conversion]
lua_pushINT64(L, evt->Held1To64);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ldraw.c:26:23: note: expanded from macro 'lua_pushINT64'
lua_pushstring(L, _i64toa(n, buf, 10)); \
^~~~~~~~~~~~~~~~~~~
/usr/local/include/lua.h:228:65: note: passing argument to parameter 's' here
LUA_API const char *(lua_pushstring) (lua_State *L, const char *s);
^
In file included from src/lui.c:210:
src/ldraw.c:796:9: warning: implicit declaration of function 'luaL_optint' is invalid in C99 [-Wimplicit-function-declaration]
def = luaL_optint(L, -1, def);
^
In file included from src/lui.c:211:
src/lentry.c:1:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiNewEntry(lua_State *L)
~~~~~~ ^
src/lentry.c:10:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiNewPasswordEntry(lua_State *L)
~~~~~~ ^
src/lentry.c:19:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiNewSearchEntry(lua_State *L)
~~~~~~ ^
src/lentry.c:28:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiEntryText(lua_State *L)
~~~~~~ ^
src/lentry.c:51:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiEntryReadOnly(lua_State *L)
~~~~~~ ^
In file included from src/lui.c:220:
src/lmultiline.c:1:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiNewMultilineEntry(lua_State *L)
~~~~~~ ^
src/lmultiline.c:10:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiNewNonWrappingMultilineEntry(lua_State *L)
~~~~~~ ^
src/lmultiline.c:19:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiMultilineEntryText(lua_State *L)
~~~~~~ ^
src/lmultiline.c:30:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiMultilineEntryAppend(lua_State *L)
~~~~~~ ^
src/lmultiline.c:48:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static l_uiMultilineEntryReadOnly(lua_State *L)
~~~~~~ ^
14 warnings generated.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -macosx_version_min 10.13.0 -o a.out /var/folders/ps/568797890l55qcbrzmcjd6tr0000gp/T/lui-101fc8.o /Users/silva/Documents/test00x/lui/liblua.a /Users/silva/Documents/test00x/lui/libui.a -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
"_CFArrayAppendValue", referenced from:
_addCTFeatureEntry in libui.a(libui-combined.o)
"_CFArrayCreateMutable", referenced from:
_uiprivOpenTypeFeaturesToCTFeatures in libui.a(libui-combined.o)
"_CFArrayGetCount", referenced from:
_matchStyle in libui.a(libui-combined.o)
_uiprivMakeVariationAxisDict in libui.a(libui-combined.o)
"_CFArrayGetValueAtIndex", referenced from:
_matchStyle in libui.a(libui-combined.o)
_uiprivMakeVariationAxisDict in libui.a(libui-combined.o)
"_CFAttributedStringBeginEditing", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
"_CFAttributedStringCreate", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
"_CFAttributedStringCreateMutableCopy", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
"_CFAttributedStringEndEditing", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
"_CFAttributedStringGetAttribute", referenced from:
_applyFontAttributes in libui.a(libui-combined.o)
_addFontAttributeToRange in libui.a(libui-combined.o)
"_CFAttributedStringGetLength", referenced from:
_applyFontAttributes in libui.a(libui-combined.o)
-[uiprivTextFrame initWithLayoutParams:] in libui.a(libui-combined.o)
"_CFAttributedStringRemoveAttribute", referenced from:
_applyFontAttributes in libui.a(libui-combined.o)
"_CFAttributedStringSetAttribute", referenced from:
_processAttribute in libui.a(libui-combined.o)
_applyFontAttributes in libui.a(libui-combined.o)
_addFontAttributeToRange in libui.a(libui-combined.o)
_addBackgroundAttribute in libui.a(libui-combined.o)
"_CFDataGetBytePtr", referenced from:
_trySecondaryOS2Values in libui.a(libui-combined.o)
_avarExtract in libui.a(libui-combined.o)
"_CFDataGetLength", referenced from:
_trySecondaryOS2Values in libui.a(libui-combined.o)
"_CFDictionaryAddValue", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
_uiprivFontDescriptorToCTFontDescriptor in libui.a(libui-combined.o)
[removed a few messages in between to keep within stackoverflow limit]
"_OBJC_CLASS_$_NSMenu", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSMenuItem", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSMutableArray", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSMutableDictionary", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSMutableString", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSNotificationCenter", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSNumber", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSNumberFormatter", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSObject", referenced from:
objc-class-ref in libui.a(libui-combined.o)
_OBJC_CLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_buttonDelegateClass in libui.a(libui-combined.o)
_OBJC_CLASS_$_checkboxDelegateClass in libui.a(libui-combined.o)
_OBJC_CLASS_$_comboboxDelegateClass in libui.a(libui-combined.o)
_OBJC_CLASS_$_uiprivDrawTextBackgroundParams in libui.a(libui-combined.o)
...
"_OBJC_CLASS_$_NSOpenPanel", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSPopUpButton", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSProcessInfo", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSProgressIndicator", referenced from:
_OBJC_CLASS_$_intrinsicWidthNSProgressIndicator in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSSavePanel", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSScrollView", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSSearchField", referenced from:
objc-class-ref in libui.a(libui-combined.o)
_OBJC_CLASS_$_libui_intrinsicWidthNSSearchField in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSSecureTextField", referenced from:
_OBJC_CLASS_$_libui_intrinsicWidthNSSecureTextField in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSSlider", referenced from:
_OBJC_CLASS_$_libui_intrinsicWidthNSSlider in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSStepper", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSString", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTabView", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTabViewItem", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTextField", referenced from:
objc-class-ref in libui.a(libui-combined.o)
_OBJC_CLASS_$_libui_intrinsicWidthNSTextField in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTextView", referenced from:
_OBJC_CLASS_$_intrinsicSizeTextView in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTimer", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSTrackingArea", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSValue", referenced from:
objc-class-ref in libui.a(libui-combined.o)
"_OBJC_CLASS_$_NSView", referenced from:
objc-class-ref in libui.a(libui-combined.o)
_OBJC_CLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxView in libui.a(libui-combined.o)
_OBJC_CLASS_$_formChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_formView in libui.a(libui-combined.o)
_OBJC_CLASS_$_gridChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_gridView in libui.a(libui-combined.o)
...
"_OBJC_CLASS_$_NSWindow", referenced from:
_OBJC_CLASS_$_libuiNSWindow in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSApplication", referenced from:
_OBJC_METACLASS_$_applicationClass in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSButton", referenced from:
_OBJC_METACLASS_$_uiprivFontButton in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSColorWell", referenced from:
_OBJC_METACLASS_$_colorButton in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSComboBox", referenced from:
_OBJC_METACLASS_$_libui_intrinsicWidthNSComboBox in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSFontPanel", referenced from:
_OBJC_METACLASS_$_uiprivNonModalFontPanel in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSObject", referenced from:
_OBJC_METACLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_METACLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_METACLASS_$_boxView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_buttonDelegateClass in libui.a(libui-combined.o)
_OBJC_METACLASS_$_checkboxDelegateClass in libui.a(libui-combined.o)
_OBJC_METACLASS_$_colorButton in libui.a(libui-combined.o)
...
"_OBJC_METACLASS_$_NSProgressIndicator", referenced from:
_OBJC_METACLASS_$_intrinsicWidthNSProgressIndicator in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSSearchField", referenced from:
_OBJC_METACLASS_$_libui_intrinsicWidthNSSearchField in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSSecureTextField", referenced from:
_OBJC_METACLASS_$_libui_intrinsicWidthNSSecureTextField in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSSlider", referenced from:
_OBJC_METACLASS_$_libui_intrinsicWidthNSSlider in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSTextField", referenced from:
_OBJC_METACLASS_$_libui_intrinsicWidthNSTextField in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSTextView", referenced from:
_OBJC_METACLASS_$_intrinsicSizeTextView in libui.a(libui-combined.o)
"_OBJC_METACLASS_$_NSView", referenced from:
_OBJC_METACLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_boxView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_formChild in libui.a(libui-combined.o)
_OBJC_METACLASS_$_formView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_gridChild in libui.a(libui-combined.o)
_OBJC_METACLASS_$_gridView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_libui_spinbox in libui.a(libui-combined.o)
...
"_OBJC_METACLASS_$_NSWindow", referenced from:
_OBJC_METACLASS_$_libuiNSWindow in libui.a(libui-combined.o)
"___CFConstantStringClassReference", referenced from:
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
CFString in libui.a(libui-combined.o)
...
"___objc_personality_v0", referenced from:
_otfArrayForEachAAT in libui.a(libui-combined.o)
_doManualMove in libui.a(libui-combined.o)
_doManualResize in libui.a(libui-combined.o)
Dwarf Exception Unwind Info (__eh_frame) in libui.a(libui-combined.o)
Dwarf Exception Unwind Info (__eh_frame) in libui.a(libui-combined.o)
"__i64toa", referenced from:
_l_uiAreaMouseEvent_2_table in lui-101fc8.o
"__objc_empty_cache", referenced from:
_OBJC_CLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_CLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_METACLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_METACLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxView in libui.a(libui-combined.o)
...
"__objc_empty_vtable", referenced from:
_OBJC_CLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_METACLASS_$_areaView in libui.a(libui-combined.o)
_OBJC_CLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_METACLASS_$_uiprivCombinedFontAttr in libui.a(libui-combined.o)
_OBJC_METACLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxChild in libui.a(libui-combined.o)
_OBJC_CLASS_$_boxView in libui.a(libui-combined.o)
...
"_kCFAllocatorNull", referenced from:
_uiprivNewGraphemes in libui.a(libui-combined.o)
"_kCFCopyStringDictionaryKeyCallBacks", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
_uiprivFontDescriptorToCTFontDescriptor in libui.a(libui-combined.o)
_uiprivCTFontDescriptorAppendFeatures in libui.a(libui-combined.o)
_addCTFeatureEntry in libui.a(libui-combined.o)
"_kCFTypeArrayCallBacks", referenced from:
_uiprivOpenTypeFeaturesToCTFeatures in libui.a(libui-combined.o)
"_kCFTypeDictionaryValueCallBacks", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
_uiprivFontDescriptorToCTFontDescriptor in libui.a(libui-combined.o)
_uiprivCTFontDescriptorAppendFeatures in libui.a(libui-combined.o)
_addCTFeatureEntry in libui.a(libui-combined.o)
"_kCGColorSpaceSRGB", referenced from:
_mkcolor in libui.a(libui-combined.o)
_fillGradient in libui.a(libui-combined.o)
"_kCTFontAttributeName", referenced from:
_applyFontAttributes in libui.a(libui-combined.o)
"_kCTFontFamilyNameAttribute", referenced from:
_uiprivFontDescriptorToCTFontDescriptor in libui.a(libui-combined.o)
_uiprivFontDescriptorFromCTFontDescriptor in libui.a(libui-combined.o)
"_kCTFontFamilyNameKey", referenced from:
-[uiprivFontStyleData familyName] in libui.a(libui-combined.o)
"_kCTFontFeatureSelectorIdentifierKey", referenced from:
___otfArrayForEachAAT_block_invoke in libui.a(libui-combined.o)
"_kCTFontFeatureSettingsAttribute", referenced from:
_uiprivCTFontDescriptorAppendFeatures in libui.a(libui-combined.o)
"_kCTFontFeatureTypeIdentifierKey", referenced from:
___otfArrayForEachAAT_block_invoke in libui.a(libui-combined.o)
"_kCTFontFormatAttribute", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTFontFullNameKey", referenced from:
-[uiprivFontStyleData fullName] in libui.a(libui-combined.o)
"_kCTFontRegistrationScopeAttribute", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTFontSizeAttribute", referenced from:
_uiprivFontDescriptorToCTFontDescriptor in libui.a(libui-combined.o)
"_kCTFontStyleNameAttribute", referenced from:
-[uiprivFontStyleData styleName] in libui.a(libui-combined.o)
"_kCTFontSubFamilyNameKey", referenced from:
-[uiprivFontStyleData subFamilyName] in libui.a(libui-combined.o)
"_kCTFontSymbolicTrait", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTFontTraitsAttribute", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTFontVariationAttribute", referenced from:
-[uiprivFontStyleData variation] in libui.a(libui-combined.o)
"_kCTFontVariationAxisDefaultValueKey", referenced from:
-[fvarAxis initWithIndex:dict:avarTable:] in libui.a(libui-combined.o)
"_kCTFontVariationAxisIdentifierKey", referenced from:
_uiprivMakeVariationAxisDict in libui.a(libui-combined.o)
"_kCTFontVariationAxisMaximumValueKey", referenced from:
-[fvarAxis initWithIndex:dict:avarTable:] in libui.a(libui-combined.o)
"_kCTFontVariationAxisMinimumValueKey", referenced from:
-[fvarAxis initWithIndex:dict:avarTable:] in libui.a(libui-combined.o)
"_kCTFontWeightTrait", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTFontWidthTrait", referenced from:
-[uiprivFontStyleData prepare] in libui.a(libui-combined.o)
"_kCTForegroundColorAttributeName", referenced from:
_processAttribute in libui.a(libui-combined.o)
"_kCTParagraphStyleAttributeName", referenced from:
_uiprivAttributedStringToCFAttributedString in libui.a(libui-combined.o)
"_kCTUnderlineColorAttributeName", referenced from:
_processAttribute in libui.a(libui-combined.o)
"_kCTUnderlineStyleAttributeName", referenced from:
_processAttribute in libui.a(libui-combined.o)
"_luaL_checkint", referenced from:
_l_uiAreaSetSize in lui-101fc8.o
_l_uiAreaBeginUserWindowResize in lui-101fc8.o
_l_uiAttributedStringInsertAtUnattributed in lui-101fc8.o
_l_uiAttributedStringDelete in lui-101fc8.o
_l_uiAttributedStringSetAttribute in lui-101fc8.o
_l_uiAttributedStringByteIndexToGrapheme in lui-101fc8.o
_l_uiAttributedStringGraphemeToByteIndex in lui-101fc8.o
...
(maybe you meant: _luaL_checkinteger)
"_objc_autoreleasePoolPop", referenced from:
-[uiprivCombinedFontAttr hash] in libui.a(libui-combined.o)
_uiInit in libui.a(libui-combined.o)
_uiUninit in libui.a(libui-combined.o)
_mainStep in libui.a(libui-combined.o)
_newItem in libui.a(libui-combined.o)
_uiNewMenu in libui.a(libui-combined.o)
"_objc_autoreleasePoolPush", referenced from:
-[uiprivCombinedFontAttr hash] in libui.a(libui-combined.o)
_uiInit in libui.a(libui-combined.o)
_uiUninit in libui.a(libui-combined.o)
_mainStep in libui.a(libui-combined.o)
_newItem in libui.a(libui-combined.o)
_uiNewMenu in libui.a(libui-combined.o)
"_objc_enumerationMutation", referenced from:
_uninitAlloc in libui.a(libui-combined.o)
-[boxView onDestroy] in libui.a(libui-combined.o)
-[boxView syncEnableStates:] in libui.a(libui-combined.o)
-[boxView establishOurConstraints] in libui.a(libui-combined.o)
-[boxView setPadded:] in libui.a(libui-combined.o)
-[boxView nStretchy] in libui.a(libui-combined.o)
-[uiprivTextFrame draw:textLayout:at:y:] in libui.a(libui-combined.o)
...
"_objc_getProperty", referenced from:
-[formChild label] in libui.a(libui-combined.o)
-[formChild baseline] in libui.a(libui-combined.o)
-[formChild leading] in libui.a(libui-combined.o)
-[formChild top] in libui.a(libui-combined.o)
-[formChild trailing] in libui.a(libui-combined.o)
-[formChild bottom] in libui.a(libui-combined.o)
-[gridChild leadingc] in libui.a(libui-combined.o)
...
"_objc_msgSend", referenced from:
_initAlloc in libui.a(libui-combined.o)
_uninitAlloc in libui.a(libui-combined.o)
_uiprivAlloc in libui.a(libui-combined.o)
_uiprivRealloc in libui.a(libui-combined.o)
_uiprivFree in libui.a(libui-combined.o)
-[areaView initWithFrame:area:] in libui.a(libui-combined.o)
-[areaView drawRect:] in libui.a(libui-combined.o)
...
"_objc_msgSendSuper2", referenced from:
-[areaView initWithFrame:area:] in libui.a(libui-combined.o)
-[areaView setFrameSize:] in libui.a(libui-combined.o)
-[areaView intrinsicContentSize] in libui.a(libui-combined.o)
-[uiprivCombinedFontAttr init] in libui.a(libui-combined.o)
-[uiprivCombinedFontAttr dealloc] in libui.a(libui-combined.o)
-[boxView initWithVertical:b:] in libui.a(libui-combined.o)
-[buttonDelegateClass init] in libui.a(libui-combined.o)
...
"_objc_msgSend_stret", referenced from:
-[areaView drawRect:] in libui.a(libui-combined.o)
-[areaView setupNewTrackingArea] in libui.a(libui-combined.o)
-[areaView doMouseEvent:] in libui.a(libui-combined.o)
-[intrinsicSizeTextView intrinsicContentSize] in libui.a(libui-combined.o)
_uiWindowContentSize in libui.a(libui-combined.o)
_makeIndependent in libui.a(libui-combined.o)
_doManualMove in libui.a(libui-combined.o)
...
"_objc_setProperty_atomic", referenced from:
-[formChild setLabel:] in libui.a(libui-combined.o)
-[formChild setBaseline:] in libui.a(libui-combined.o)
-[formChild setLeading:] in libui.a(libui-combined.o)
-[formChild setTop:] in libui.a(libui-combined.o)
-[formChild setTrailing:] in libui.a(libui-combined.o)
-[formChild setBottom:] in libui.a(libui-combined.o)
-[gridChild setLeadingc:] in libui.a(libui-combined.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
最佳答案
对于那些在 Mac 操作系统中遇到此问题的人,
gcc -shared -v -framework Foundation -framework AppKit -Isrc src/lui.c ...等
使用静态库时,您还必须显式链接系统库,
静态库只是一堆 .o 文件;它们不包含任何有关外部依赖项的信息。
关于编译和链接多个 C 库(卡在未找到架构 x86_64 的符号处),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50190861/
我有一个网站,并且我使用 javascript sdk 添加了“点赞”按钮。 这是代码 (function(d, s, id) { var js, fjs = d.g
我知道 HTML 是逐行读取的。当您链接多个 css 文件(如规范化文件和样式表文件)时,由于 CSS 重要性特异性和源顺序,样式表文件应链接在规范化文件之后。看起来这不会影响链接的 JavaScri
我正在使用官方 Bootstrap site 提供的 CDN 链接在我的网络应用程序中使用面板进行测试 在彻底检查我的代码后,面板没有显示。 但是我在 SO 上看到了类似的帖子并且 CDN 链接不同
这里是编码初学者。我正在尝试为我的移动设备网站设置断点,以便我的网站适合小屏幕。我只是想检查如果我缩小视口(viewport)的宽度,背景颜色是否会改变,但没有发生任何变化。也许我只是对一个简单的错误
举一个我想要的例子,想象一下这个字符串: $text = 'lorem ipsum About us lorem ipsum'; 如果此字符串包含一个 href 以 / 开头的 anchor 链接,则
如何链接到 LaTeX 文档的另一部分或子部分?这种链接的常规范式是什么,像[链接名称]那样写,或者像网页超链接那样写? 最佳答案 链接到另一个部分需要您的部分进行一些额外的标记。要使用的命令是: \
我有一个订单表,其中包含订单号、客户 ID 和代理 ID。然后有一个带有 id 的客户表和一个带有 id 的代理表。 我需要获取所有具有来自代理 ID 'a03' 和代理 ID 'a05' 的订单的客
假设我有: dic = {"z":"zv", "a":"av"} ## Why doesn't the following return a sorted list of keys? keys = d
我在尝试链接到外部库时得到了一些奇怪的结果。如果我从命令行运行以下命令: gcc fftwTest.c -I../extlib/fftw-3.3.5-dll32 -L../extlib/fftw-3.
我认为我没有正确理解 jQuery 链接。我正在遍历一个数组并尝试将 div 元素添加到我的包装器 CSS 类中,每个 div 元素都有一个“click”类和自定义 css top 和 left 属性
HTML 使用超级链接与网络上的另一个文档相连。几乎可以在所有的网页中找到链接。点击链接可以从一张页面跳转到另一张页面。 HTML 超链接(链接) HTML使用标签 a 来设置超文本链接。 超链
这个问题在这里已经有了答案: How do I link to part of a page? (hash?) (7 个答案) Scroll Automatically to the Bottom
我想创建一个 Docker Swarm 集群,运行一个 Elasticsearch 实例、一个 MongoDB 实例和一个 grails 应用程序,每个都在单独的机器上。我正在使用 Docker Ma
我正在尝试将 CakePHP HTML Linker 用于以下代码 Add Cuisine 由于 span 标签需要在 a 标签内。我无法根据需要获得输出。关于如何完成它的任何建议? 最佳答案 禁用链
大家好, 我最近开发了一个应用程序,很快就会提交到 App Store。我想免费提交这个应用程序,并想知道我是否可以实现一个带有 PayPal 捐赠标志的按钮,上面基本上写着“捐赠用于开发”或与此相关
我想尝试在 dlang 中使用 libuv。我下载了这样的 dlang 绑定(bind): git clone git@github.com:tamediadigital/libuv.git 现在我接
我有一个节点(节点 a),各种其他节点(节点 b/c/d/e)与之引用。 我可以创建一个带有参数的 View 作为我正在查看的节点(节点 a),并获取引用该节点的节点列表。 基本上在节点 a 查看节点
我正在尝试建立一个常见问题页面,上面有目录,下面有答案。我想点击目录中的一个问题,并在同一页面上链接到相应的答案。我如何在 CakePHP 中使用 $this->Html->link() 执行此操作方
在 WooCommerce 3.0+ 中,我使用 js 创建了一些选项卡,每个选项卡中包含来自不同类别的产品。我已经设法修改了简单产品的添加到购物车链接,其中点击了 addtocart 按钮它进入下一
Delphi 2007/2009 奇怪的问题在这里: 根据设计时定义的组件属性,是否可以在链接中包含文件或保留文件? 示例:如果我将 SomeProperty 保留为真,则在编译时,单元 SomeUn
我是一名优秀的程序员,十分优秀!