Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Help Compiling ComponentKit with Buck #2259

Closed
sdkitono opened this issue May 14, 2019 · 1 comment
Closed

Help Compiling ComponentKit with Buck #2259

sdkitono opened this issue May 14, 2019 · 1 comment

Comments

@sdkitono
Copy link

sdkitono commented May 14, 2019

So I kinda have something almost working now... If I do not add the exported_headers ComponentKit can be built.

Now I have this error

ComponentKit/ComponentKit/Core/ComponentUtilities.h:11:9: fatal error: 'algorithm' file not found
#import <algorithm>

The BUCK file for ComponentKit

headers = glob([
    "ComponentKit/Core/*.h",
    "ComponentKit/Core/Scope/*.h",
    "ComponentKit/Core/Render/*.h",
    "ComponentKit/Core/ComponentTree/**/*.h",
    "ComponentKit/Base/*.h",
    "ComponentKit/Utilities/*.h",
    "ComponentKit/TransactionalDataSources/Common/*.h",
    "ComponentKit/HostingView/*.h",
    "ComponentKit/DataSources/Common/*.h",
    "ComponentKit/Debug/*.h",
    "ComponentKit/TransactionalDataSources/Common/Internal/*.h",
    "ComponentKit/Accessibility/*.h",
    "ComponentKit/Analytics/*.h",
    "ComponentKit/*.h"])

apple_library(
    name="ComponentKit",
    visibility = ["PUBLIC"],
    srcs=glob([
    "ComponentKit/Core/*.mm",
    "ComponentKit/Core/Scope/*.mm",
    "ComponentKit/Base/*.mm",
    "ComponentKit/Utilities/*.mm",
    "ComponentKit/Utilities/*.m",
    "ComponentKit/TransactionalDataSources/Common/*.mm",
    "ComponentKit/HostingView/*.mm",
    "ComponentKit/DataSources/Common/*.mm",
    "ComponentKit/Debug/*.mm",
    "ComponentKit/TransactionalDataSources/Common/Internal/*.mm",
    "ComponentKit/TransactionalDataSources/Common/Internal/*.m",
    "ComponentKit/Accessibility/*.mm",
    "ComponentKit/Analytics/*.mm",
    "ComponentKit/Core/ComponentTree/**/*.mm"]),
    exported_headers = headers,
    headers = headers,
    preferred_linkage = 'static',
    header_path_prefix = 'ComponentKit',
    compiler_flags = ["-O2", "-Werror", "-Wno-unknown-warning-option",
         "-fobjc-arc",
        "-Wno-missing-property-synthesis",
        "-Wno-objc-missing-property-synthesis",
        "-Wno-mismatched-tags",
        "-Wno-sign-compare",
        "-Wno-missing-field-initializers",
        "-Wno-deprecated-declarations"],
    deps = [ "//yoga:yoga" ],
    frameworks= [
        "$SDKROOT/System/Library/Frameworks/UIKit.framework",
        "$SDKROOT/System/Library/Frameworks/Foundation.framework",
        "$SDKROOT/System/Library/Frameworks/QuartzCore.framework",
        "$SDKROOT/System/Library/Frameworks/CoreGraphics.framework"]
)

Any advice?

@sdkitono
Copy link
Author

I have resolved this issue. Closing....

facebook/componentkit#744 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant