[luci] LuCI development on MacOS

Christoph Pilka christoph.pilka at googlemail.com
Mon Aug 10 16:19:26 CEST 2009


Hi Jo,

cool, the iwinfo stuff disappeared but nixio causes trouble. Thx for  
your help ;-)

make -C libs/lmo CC="cc" CFLAGS="" LDFLAGS="" host-install
rm -f src/*.o src/lookup src/po2lmo src/lmo.so
rm -f ../../build/po2lmo
cc   --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   -fPIC  
-c -o src/lmo_core.o src/lmo_core.c
cc   --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   -fPIC  
-c -o src/lmo_hash.o src/lmo_hash.c
cc   --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   -fPIC  
-c -o src/lmo_po2lmo.o src/lmo_po2lmo.c
cc   -o src/po2lmo src/lmo_core.o src/lmo_hash.o src/lmo_po2lmo.o
cp src/po2lmo ../../build/po2lmo
for i in contrib/* applications/* libs/* modules/* themes/* i18n/*; do \
		make -C$i compile || { \
			echo "*** Compilation of $i failed!"; \
			exit 1; \
		}; \
	done
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make -C uci-0.7.3 CC=gcc CFLAGS="-O2" LDFLAGS="" OS="Darwin"
mkdir -p dist/usr/lib dist/usr/bin
make -C uci-0.7.3 install DESTDIR=../dist prefix=/usr
install -m0755 libuci.dylib.0.7 ../dist/usr/lib/
ln -sf libuci.dylib.0.7 ../dist/usr/lib/libuci.dylib
mkdir -p ../dist/usr/bin
install -m0755 uci ../dist/usr/bin/
mkdir -p ../dist/usr/lib
mkdir -p ../dist/usr/include
install -m0644 libuci.a libucimap.a ../dist/usr/lib/
install -m0644 uci_config.h uci.h uci_list.h ucimap.h ../dist/usr/ 
include/
make -C uci-0.7.3/lua CC=gcc CFLAGS="-O2" LDFLAGS="" OS="Darwin"
make[2]: Nothing to be done for `all'.
make -C uci-0.7.3/lua install DESTDIR=../../dist luadir=/usr/lib/lua
mkdir -p ../../dist/usr/lib/lua
install -m0644 uci.so ../../dist/usr/lib/lua/
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
mkdir -p dist/usr/lib/lua/luci
gcc  -bundle -undefined dynamic_lookup -o dist/usr/lib/lua/luci/ 
fastindex.so src/fastindex.o -L/opt/local/lib -llua -lm
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
rm -rf dist
rm -f src/*.o src/iwinfo.so
mkdir -p dist/usr/lib/lua
cp src/dummy.lua dist/usr/lib/lua/iwinfo.lua
make[1]: Nothing to be done for `compile'.
rm -f src/*.o src/lookup src/po2lmo src/lmo.so
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/lmo_core.o src/lmo_core.c
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/lmo_hash.o src/lmo_hash.c
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/lmo_po2lmo.o src/lmo_po2lmo.c
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/lmo_lookup.o src/lmo_lookup.c
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/lmo_lualib.o src/lmo_lualib.c
gcc  -bundle -undefined dynamic_lookup  -o src/lmo.so \
		src/lmo_core.o src/lmo_hash.o src/lmo_lualib.o
gcc   -o src/po2lmo src/lmo_core.o src/lmo_hash.o src/lmo_po2lmo.o
gcc   -o src/lookup src/lmo_core.o src/lmo_hash.o src/lmo_lookup.o
mkdir -p dist/usr/lib/lua
cp src/lmo.so dist/usr/lib/lua/lmo.so
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
make[1]: Nothing to be done for `compile'.
gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/opt/local/include   - 
fPIC -c -o src/splice.o src/splice.c
cc1: warnings being treated as errors
src/splice.c: In function 'nixio_sendfile':
src/splice.c:143: warning: passing argument 4 of 'sendfile' makes  
pointer from integer without a cast
src/splice.c:143: warning: passing argument 6 of 'sendfile' makes  
integer from pointer without a cast
src/splice.c:143: error: too many arguments to function 'sendfile'
make[1]: *** [src/splice.o] Error 1
*** Compilation of libs/nixio failed!
make: *** [gccbuild] Error 1

On Aug 10, 2009, at 3:35 PM, Jo-Philipp Wich wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi.
>
> The iwinfo library is Linux-centric since it uses Linux specific  
> ioctls
> and other stuff to query the current wireless state.
>
> However, I added a dummy module that provides fake values which allows
> the sdk to run properly on non-Linux hosts. Could you check whether
> r5252 solves your issue?
>
> Regards,
> ~JoW
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkqAIikACgkQdputYINPTPNAowCdGvw5YPHeEO3U6b4EOdC0G3Je
> r6EAn3r9pTlwBqPaJIr+a20lvrDs5iP8
> =DPSU
> -----END PGP SIGNATURE-----
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci



More information about the luci mailing list