GithubHelp home page GithubHelp logo

Comments (4)

dfirsht avatar dfirsht commented on April 30, 2024

Comment by KALLNER
Tuesday Jan 19, 2016 at 21:39 GMT


I don't think this repo was built after the move. SwiftCouchDB needs net (at least) from Phoenix. Also it needs SwiftyJSON.

Where is the contents of the Package.swift file?
Why are the source files under Sources? Eventually we will have tests.....

from kitura.

dfirsht avatar dfirsht commented on April 30, 2024

Comment by ricardo-olivieri
Monday Jan 25, 2016 at 16:56 GMT


Work item completed, though on Linux, we have known compilation issues because of SwiftyJson (see issue #63).

from kitura.

dfirsht avatar dfirsht commented on April 30, 2024

Comment by rfdickerson
Thursday Feb 04, 2016 at 16:17 GMT


I was able to get the CouchDBSample to successfully link the sample app on Linux by using:

/home/rfdickerson/swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a-ubuntu15.10/usr/bin/swiftc -o /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/CouchDBSample /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/PhoenixCouchDB.o/Sources/CouchDBSample/main.swift.o -g /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/CouchDB.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/SwiftyJSON.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/net.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/sys.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/router.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/regex.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/Phoenix.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/HeliumLogger.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/ETSocket.a /home/rfdickerson/mil/PhoenixProject/PhoenixCouchDB/.build/debug/net.a -L/usr/local/lib -Xlinker -ldispatch -Xlinker -L./.build/debug

The problem was that the net.a library needs to be included after the router. There's an issue regarding the order of static libraries that are determined by llbuild and the Package manager. This bug will be fixed eventually, I imagine.

Starting sample program...
connPropertiesStr:
    hostName -> fee33f3a-cdbc-4c9b-bf9a-f1541ee68c06-bluemix.cloudant.com
    port -> 80
    secured -> false
    userName -> Optional("omitted")
    password -> Optional("omitted")
Hostname is: fee33f3a-cdbc-4c9b-bf9a-f1541ee68c06-bluemix.cloudant.com
>> Successfully created the following JSON document in CouchDB:
    Optional({
  "id": "123456",
  "ok": true,
  "rev": "82-a5ffd94265f8fd8f17c236bc86e6cf86"
})
>> Successfully read the followiong JSON document with ID 123456 from CouchDB:
    Optional({
  "truncated": false,
  "value": "value1",
  "_rev": "82-a5ffd94265f8fd8f17c236bc86e6cf86",
  "favorited": false,
  "coordinates": null,
  "_id": "123456",
  "created_at": "Tue Aug 28 21:16:23 +0000 2012"
})
revisionNumber is 82-a5ffd94265f8fd8f17c236bc86e6cf86
>> Successfully updated the JSON document with ID 123456 in CouchDB:
    Optional({
  "id": "123456",
  "ok": true,
  "rev": "83-623dd48d1cb9a471e896f294795eb963"
})
revisionNumber is 83-623dd48d1cb9a471e896f294795eb963
>> Successfully deleted the JSON document with ID 123456 from CouchDB.
Sample program completed its execution.

This is not an ultimate solution, however it's enough to link the sample app.

from kitura.

shmuelk avatar shmuelk commented on April 30, 2024

Now compiles and runs on both Linux and OSX. Tested using the SwiftBlue-Pic demo server

from kitura.

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.