Comments (3)
I've also tried to set CLANG_ENABLE_OBJC_ARC=YES but it does not seem to do anything. Don't know if it should.
Also, this is my Dockerfile for my cross platform go builds, the environment is quite clean.
FROM ubuntu:15.04
MAINTAINER Thomas Frössman <[email protected]>
# Make sure apt-get is up to date and dependent packages are installed
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
autogen \
automake \
build-essential \
ca-certificates \
clang \
cpio \
curl \
gcc-arm-linux-gnueabi \
gcc-mingw-w64 \
gcc-multilib \
git \
libc6-dev-armel-cross \
libgtk-3-dev \
libnotify-dev \
libssl-dev \
libtool \
libxml2-dev \
libappindicator3-dev \
llvm-dev \
make \
mercurial \
patch \
pkg-config \
unzip \
uuid-dev \
wget \
xz-utils \
;
# Install Go
ENV GO_VERSION 1.4.2
RUN curl -sSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/local -xz \
&& mkdir -p /go/bin
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
# Install goxc and build the tool chains (obsoleted by go1.5)
run go get github.com/laher/goxc
run goxc -arch="386 amd64" -os="linux darwin windows" -t
add osxcross /osxcross
copy applesdks/* /osxcross/tarballs/
workdir /osxcross
run sed -i.bak s/read/#read/g build.sh
env SDK_VERSION 10.10
run ./build.sh
# run dpkg --add-architecture i386; \
# apt-get update; \
# sudo apt-get -y upgrade
run go get github.com/jteeuwen/go-bindata/...
# TODO: install all tools for linting and such..
# run npm install -g coffeelint jsxhint
# volume /go/src/gitlab.23c.se/alkasir/alkasir/
workdir /go/src/gitlab.23c.se/alkasir/alkasir/
ENV GOPATH /go/src/gitlab.23c.se/alkasir/alkasir/Godeps/_workspace/:$GOPATH
env PATH /osxcross/target/bin:$PATH
run apt-get install -y --no-install-recommends apt-transport-https lsb-release ssh icnsutils
copy ./nodesource.gpg.key /tmp/
run apt-key add /tmp/nodesource.gpg.key && \
echo 'deb https://deb.nodesource.com/node_0.12 utopic main' > /etc/apt/sources.list.d/nodesource.list && \
echo 'deb-src https://deb.nodesource.com/node_0.12 utopic main' >> /etc/apt/sources.list.d/nodesource.list
run apt-get update && apt-get install -y nodejs
run npm install -g webpack
run go get golang.org/x/tools/cmd/vet
from osxcross.
Sorry to disturb, my problem was that that deployment target was not correctly specfied..
I did get this error which lead me in the right direction:
clang: error: -fobjc-arc is not supported on versions of OS X prior to 10.6
For the time being I just added this to the Dockerfile:
env MACOSX_DEPLOYMENT_TARGET 10.9
Thanks for a great project btw 👍
from osxcross.
Thanks for a great project btw 👍
Thanks / You are welcome!
from osxcross.
Related Issues (20)
- "mv: cannot stat" error on extracting macOS SDK HOT 1
- Using gcc assembler HOT 2
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
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 osxcross.