Swift language released with packages that can be used on Trisquel 7

4 respuestas [Último envío]
t3g
t3g
Desconectado/a
se unió: 05/15/2011

Recently, the Swift programming language (successor to Cocoa and Objective-C) has been released under the Apache 2.0 license and there are .deb files available for Trisquel/Ubuntu at https://swift.org/download/

The GitHub link is available https://github.com/apple/swift and the source of my news is https://www.phoronix.com/scan.php?page=news_item&px=Apple-Swift-Open-Source

Anyone going to try this? Even if it was created by Apple?

t3g
t3g
Desconectado/a
se unió: 05/15/2011

Actually, I can't find any .deb files on the page but there are tarball files that extract to the appropriate locations.

tomlukeywood
Desconectado/a
se unió: 12/05/2014

i have tried to compile it from source with cmake .
and i get this error:
CMake Error at cmake/modules/SwiftBuildType.cmake:9 (message):
Unknown build type:
Call Stack (most recent call first):
CMakeLists.txt:21 (is_build_type_optimized)

-- Configuring incomplete, errors occurred!

utils/build-script -t also failed

has anyone successfully compiled swift with trisquel?

t3g
t3g
Desconectado/a
se unió: 05/15/2011

Did you look at the build directions at https://github.com/apple/swift/blob/master/README.md? Here is a snippet:

For Ubuntu, you'll need the following development dependencies:
sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config

If you are building on Ubuntu 14.04 LTS, you'll need to upgrade your clang compiler for C++14 support and create a symlink:
sudo apt-get install clang-3.6
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100

tomlukeywood
Desconectado/a
se unió: 12/05/2014

yes i followed those specific instructions

and all went fine up to when i ran cmake .