[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bino-list] rcc, moc problem
From: |
Robert Pliszko |
Subject: |
[Bino-list] rcc, moc problem |
Date: |
Wed, 11 Jan 2012 15:06:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Mandriva/3.1.16-0.1mdv2010.2 (2010.2) Lightning/1.0b2 Thunderbird/3.1.16 |
Hi
I would like to cross compile with configure settings RCC and MOC, but
it doesn't recognize full path.
My script:
# Problem with glew 1.7.0!!
GLEW_NAME="glew"
GLEW_VERSION="1.6.0"
GLEW_SUFFIX="tgz"
cd $PKG_BUILD
if [ ! -f $ROOT/sources/bino/$GLEW_NAME-$GLEW_VERSION.$GLEW_SUFFIX ]; then
wget --directory-prefix=$ROOT/sources/bino
http://sourceforge.net/projects/glew/files/$GLEW_NAME/$GLEW_VERSION/$GLEW_NAME-$GLEW_VERSION.$GLEW_SUFFIX
fi
tar xfv $ROOT/sources/bino/$GLEW_NAME-$GLEW_VERSION.$GLEW_SUFFIX
mkdir -p $GLEW_NAME-$GLEW_VERSION/install
make --directory=$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION
GLEW_DEST="$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install" CC="$CC"
LD="$CC" AR="$AR" POPT="$CFLAGS" LDFLAGS.EXTRA="$
LDFLAGS" all
make --directory=$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION
GLEW_DEST="$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install" install.all
GLEWINCS="-I$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/include"
GLEWMXINCS="-I$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/include
-DGLEW_MX"
if [ "$TARGET_ARCH" = "i386" ]; then
rm -f $ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib/*so*
GLEWLIBS="-L$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib
-lGLEW"
GLEWMXLIBS="-L$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib
-lGLEWmx"
elif [ "$TARGET_ARCH" = "x86_64" ]; then
rm -f $ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib64/*so*
GLEWLIBS="-L$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib64
-lGLEW"
GLEWMXLIBS="-L$ROOT/$PKG_BUILD/$GLEW_NAME-$GLEW_VERSION/install/lib64
-lGLEWmx"
fi
#QT
RCCPATH="$SYSROOT_PREFIX/usr/bin/rcc"
MOCPATH="$SYSROOT_PREFIX/usr/bin/moc"
unset CC CXX AR OBJCOPY STRIP CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
strip_gold
strip_lto
./configure \
--host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--without-equalizer \
libglew_CFLAGS="$GLEWINCS" \
libglew_LIBS="$GLEWLIBS" \
libglewmx_CFLAGS="$GLEWMXINCS" \
libglewmx_LIBS="$GLEWMXLIBS" \
RCC="$RCCPATH" \
MOC="$MOCPATH"
make
$MAKEINSTALL
I've checked the RCC and MOC path and it was correctly.
Any ideas?
Robert
Robert_Pliszko.vcf
Description: Vcard
- [Bino-list] rcc, moc problem,
Robert Pliszko <=