Comments (4)
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.
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.
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.
Now compiles and runs on both Linux and OSX. Tested using the SwiftBlue-Pic demo server
from kitura.
Related Issues (20)
- Update CLA HOT 1
- NET::ERR_CERT_COMMON_NAME_INVALID
- Exported OpenApi uses unexpected type for date. HOT 1
- XCode 12 Build broken due to static package dependency HOT 10
- [Question]Is it possible set Kitura-NIO as default in Xcode 11.6 HOT 2
- [Question]It is possible set custom working dir(without using Xcode)?
- [Issue]Swift-Kuery-SQLite (Release 2.0.200) in Xcode HOT 4
- Kitura cannot build and run project HOT 1
- Is it possible use response to render html string? HOT 3
- Document SwaggerDocument
- Kitura.dev should point to valid Slack group HOT 3
- Some tests need investigation
- BUG DETECTED: wait() error when using SwiftyRequest, CouchDB and NIO
- upgrade from 0.1.0 to 0.2.1, kitura command totally mess up HOT 3
- No support for Get with ID and Query params
- align dependencies URLs HOT 1
- Investigate alternative CI systems
- Thank you dannys42! HOT 1
- Odd behavior when 2 simultaneous POST requests happen HOT 1
- Slack link on web page is broken HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitura.