Giter VIP home page Giter VIP logo

Comments (2)

lnicco avatar lnicco commented on May 23, 2024

we don't provide a build script for ios (the getdeps build system doesn't support that at this time), but we do build the library for ios internally, so the code should build fine and work if you include it in an ios project

from proxygen.

palfonsoilluscio avatar palfonsoilluscio commented on May 23, 2024

Thanks for the swift response. We're compiling proxygen with VS Code in our Apple M2 machines and getting these linker errors:

[build] Undefined symbols for architecture arm64:
[build]   "folly::SocketAddress::setFromIpPort(char const*, unsigned short)", referenced from:
[build]       folly::SocketAddress::SocketAddress(char const*, unsigned short, bool) in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "folly::SocketAddress::setFromHostPort(char const*, unsigned short)", referenced from:
[build]       folly::SocketAddress::SocketAddress(char const*, unsigned short, bool) in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "folly::ltrimWhitespace(folly::Range<char const*>)", referenced from:
[build]       folly::trimWhitespace(folly::Range<char const*>) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::rtrimWhitespace(folly::Range<char const*>)", referenced from:
[build]       folly::trimWhitespace(folly::Range<char const*>) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::IOBuf::appendToChain(std::__1::unique_ptr<folly::IOBuf, std::__1::default_delete<folly::IOBuf>>&&)", referenced from:
[build]       folly::IOBuf::prependChain(std::__1::unique_ptr<folly::IOBuf, std::__1::default_delete<folly::IOBuf>>&&) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::IOBuf::~IOBuf()", referenced from:
[build]       std::__1::default_delete<folly::IOBuf>::operator()[abi:ue170006](folly::IOBuf*) const in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::IOBuf::operator delete(void*)", referenced from:
[build]       std::__1::default_delete<folly::IOBuf>::operator()[abi:ue170006](folly::IOBuf*) const in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::detail::to_ascii_table<10ull, folly::to_ascii_alphabet<false>>::data", referenced from:
[build]       unsigned long folly::to_ascii_with<10ull, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long long) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]       unsigned long folly::to_ascii_with<10ull, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long long) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::detail::to_ascii_powers<10ull, unsigned long long>::data", referenced from:
[build]       unsigned long folly::to_ascii_size<10ull>(unsigned long long) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]       unsigned long folly::to_ascii_with<10ull, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long long) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::detail::ScopeGuardImplBase::terminate()", referenced from:
[build]       folly::detail::ScopeGuardImpl<proxygen::ResponseBuilder::send()::'lambda'(), true>::execute() in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::IPAddress::IPAddress()", referenced from:
[build]       folly::SocketAddress::AddrStorage::AddrStorage() in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "proxygen::HTTPServer::bind(std::__1::vector<proxygen::HTTPServer::IPConfig, std::__1::allocator<proxygen::HTTPServer::IPConfig>> const&)", referenced from:
[build]       Illuscio::Http3Server::startServer() in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "proxygen::HTTPServer::start(std::__1::function<void ()>, std::__1::function<void (std::exception_ptr)>, std::__1::shared_ptr<wangle::AcceptorFactory>, std::__1::shared_ptr<folly::IOThreadPoolExecutor>)", referenced from:
[build]       Illuscio::Http3Server::startServer()::$_0::operator()() const in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "proxygen::HTTPServer::HTTPServer(proxygen::HTTPServerOptions)", referenced from:
[build]       std::__1::__unique_if<proxygen::HTTPServer>::__unique_single std::__1::make_unique[abi:ue170006]<proxygen::HTTPServer, proxygen::HTTPServerOptions>(proxygen::HTTPServerOptions&&) in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "proxygen::HTTPServer::~HTTPServer()", referenced from:
[build]       std::__1::default_delete<proxygen::HTTPServer>::operator()[abi:ue170006](proxygen::HTTPServer*) const in IlluscioPointCore[85](Http3Server.cpp.o)
[build]   "proxygen::HTTPHeaders::~HTTPHeaders()", referenced from:
[build]       std::__1::default_delete<proxygen::HTTPHeaders>::operator()[abi:ue170006](proxygen::HTTPHeaders*) const in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPMessage::setStatusCode(unsigned short)", referenced from:
[build]       proxygen::ResponseBuilder::status(unsigned short, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPMessage::setHTTPVersion(unsigned char, unsigned char)", referenced from:
[build]       proxygen::ResponseBuilder::status(unsigned short, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPMessage::HTTPMessage()", referenced from:
[build]       std::__1::__unique_if<proxygen::HTTPMessage>::__unique_single std::__1::make_unique[abi:ue170006]<proxygen::HTTPMessage>() in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPMessage::~HTTPMessage()", referenced from:
[build]       std::__1::default_delete<proxygen::HTTPMessage>::operator()[abi:ue170006](proxygen::HTTPMessage*) const in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPCommonHeaders::getPointerToTable(proxygen::HTTPCommonHeaderTableType)", referenced from:
[build]       proxygen::HTTPCommonHeaders::getPointerToName(proxygen::HTTPHeaderCode, proxygen::HTTPCommonHeaderTableType) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPCommonHeaders::hash(char const*, unsigned long)", referenced from:
[build]       void proxygen::HTTPHeaders::add<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&>(folly::Range<char const*>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "folly::IOBuf::computeChainDataLength() const", referenced from:
[build]       proxygen::ResponseBuilder::send() in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]       proxygen::ResponseBuilder::send() in IlluscioPointCore[86](EchoHandler.cpp.o)
[build]   "proxygen::HTTPMessage::getStatusCode() const", referenced from:
[build]       proxygen::ResponseBuilder::send() in IlluscioPointCore[86](EchoHandler.cpp.o)
[build] ld: symbol(s) not found for architecture arm64
[build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[build] ninja: build stopped: subcommand failed.

Kindly let us know how to fix these errors...

from proxygen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.