-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable the PhoenixCouchDB repo to compile (including test cases) #7
Comments
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? |
Work item completed, though on Linux, we have known compilation issues because of SwiftyJson (see issue #63). |
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.
This is not an ultimate solution, however it's enough to link the sample app. |
Now compiles and runs on both Linux and OSX. Tested using the SwiftBlue-Pic demo server |
Wednesday Jan 06, 2016 at 23:06 GMT
Originally opened as https://github.ibm.com/ibmswift/Phoenix/issues/7
The text was updated successfully, but these errors were encountered: