Cross-compiling for iPhone does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to cross-compile click for the iPhone, I am brought this error:
In file included from paths.c:21:
In file included from /usr/include/
In file included from /usr/include/
/usr/include/
G_STATIC_
^~~~~
/usr/include/
#define G_STATIC_
1 warning and 1 error generated.
I use the following script to build click. It's quite messy, but here you go:
#!/bin/bash
rm -rf ~/built/click
PREFIX=
AR=$PREFIX-ar
AS=$PREFIX-as
CC=$PREFIX-clang
CXX=$PREFIX-clang++
LD=$PREFIX-ld
NM=$PREFIX-nm
OBJDUMP=
RANLIB=
STRIP=$PREFIX-strip
SDK=/home/
CFLAGS="-arch armv7 -arch arm64 -isysroot $SDK"
LDFLAGS=
DESTDIR=
apt install autoconf bzr clang intltool libcurl4-
cd ~
if [ ! -d click ]; then
bzr branch lp:click
fi
cd ~/click
./autogen.sh
./configure cross_compiling=yes --prefix=
make install
cd ~/built/click
Note that ~/toolchain contains data from https:/