GithubHelp home page GithubHelp logo

czlib's Introduction

CZlib

Swift module maps for zlib, which allow you to use the zlib C library in your Swift project.

Usage

Add dependencies

Add the CZlib package to the dependencies within your application’s Package.swift file. Substitute "x.x.x" with the latest CZlib release.

.package(url: "https://github.com/Kitura/CZlib.git", from: "x.x.x")

Add CZlib to your target's dependencies:

.target(name: "example", dependencies: ["CZlib"]),

Import package

import CZlib

Community

We love to talk server-side Swift, and Kitura. Join our Slack to meet the team!

czlib's People

Contributors

dannys42 avatar djones6 avatar helenmasters avatar irar2 avatar mliberman avatar quanvo87 avatar rfdickerson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

czlib's Issues

"warning: module 'Clibz' does not contain any sources."

Is this repo currently in use?

I was hoping to use it to link libz into a project in a Swift Package Manager-friendly way, so I added it to my dependencies with the following (in Package.swift):

  dependencies: [
    .Package(url: "https://github.com/IBM-Swift/CZlib", Version(0,1,1)),
  ]

But when building with swift build I get this warning:

warning: module 'Clibz' does not contain any sources.

and link errors that show that libz wasn't linked.

Undefined symbols for architecture x86_64:
  "_deflate", referenced from:
      _zlib_compress in message_compress.c.o
  "_deflateEnd", referenced from:
      _zlib_compress in message_compress.c.o
  "_deflateInit2_", referenced from:
      _zlib_compress in message_compress.c.o
  "_inflate", referenced from:
      _zlib_decompress in message_compress.c.o
  "_inflateEnd", referenced from:
      _zlib_decompress in message_compress.c.o
  "_inflateInit2_", referenced from:
      _zlib_decompress in message_compress.c.o
ld: symbol(s) not found for architecture x86_64

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.