Dear developers,
I'm trying to build a Gretl dmg file on OS/X using the following
commands (like sugested by Allin in the build.pdf file,
http://ricardo.ecn.wfu.edu/~cottrell/gretl-osx/build.pdf):
cd /Users/henriqueandrade/gretl/Desenvolvimento/Imagem/misc/gd-2.0.35
PREFIX=/Users/henriqueandrade/gretl/Desenvolvimento/Imagem/misc
export CFLAGS="-O2 -I/sw/include"
export CPPFLAGS=$CFLAGS
export LDFLAGS="-L/usr/X11R6/lib"
./configure --prefix=$PREFIX --disable-rpath --disable-static --without-jpeg
make
make install
export
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/Users/henriqueandrade/gretl/Desenvolvimento/misc/lib/pkgconfig"
cd /Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist/gnuplot-4.3-cvs
TOPDIR=/Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist
export CFLAGS="-O2 -I/sw/include"
export LDFLAGS="-L/sw/lib -L/usr/X11R6/lib"
./configure --prefix=$TOPDIR/Gretl.app/Contents/Resources
make
make istall
TOPDIR=/Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist
export CFLAGS="-O2 -I/sw/include"
export LDFLAGS=-L/sw/lib
export CPPFLAGS=$CFLAGS
export
PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/sw/lib/pkgconfig:/Users/henriqueandrade/gretl/Desenvolvimento/Imagem/misc/lib/pkgconfig"
export PATH=$TOPDIR/Gretl.app/Contents/Resources/bin:$PATH
./configure --prefix=$TOPDIR/Gretl.app/Contents/Resources
--disable-rpath --enable-build-doc --without-gnome
make
make install
cd /Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist
#!/bin/sh
# Clean out unwanted files and add a few extra things.
# Run this in the gretl build directory
# The directory above Gretl.app
TOPDIR=/Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist
PREFIX=$TOPDIR/Gretl.app/Contents/Resources
rm -f $PREFIX/bin/gretl
rm -rf $PREFIX/include
rm -rf $PREFIX/share/aclocal
rm -rf $PREFIX/share/info
rm -rf $PREFIX/info
rm -rf $PREFIX/lib/pkgconfig
rm -f $PREFIX/lib/*.la
rm -f $PREFIX/lib/gretl-gtk2/*.la
rm -rf $PREFIX/share/emacs
rm -rf $PREFIX/share/texmf-local
install -m 644 osx/README.pdf $TOPDIR
install -m 755 osx/gretl.sh $PREFIX/bin/gretl
install -m 755 osx/script $PREFIX
# uncomment for a PPC build:
# install -m 755 osx/Gretl.ppc $TOPDIR/Gretl.app/Contents/MacOS/Gretl
This is exactly the same as described by Allin's instructions. The
only differences are the folder places:
Users/henriqueandrade/gretl/Desenvolvimento/Imagem/misc instead of
Users/allin/misc
Users/henriqueandrade/gretl/Desenvolvimento/Imagem/dist instead of
Users/allin/dist
After all these commands I still can't build the image. What's wrong?
Where should I put the CVS files?
Best,
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge