dbus remaining windows port issues was Re: moving file descriptor passing into a header
Fridrich Strba
fridrich.strba at bluewin.ch
Thu Apr 22 00:06:24 PDT 2010
Hello,
On Thu, 2010-04-22 at 00:23 +0200, Marcus Brinkmann wrote:
> but used. In cmake configurations there are other issues.
When cross-compiling the cmake build, I realized two issues that I
somehow managed to work-around. (1) It assumes the windows build is done
on windows and that TMP and TEMP is set. If not, it bails out. This can
be fixed by setting TMP and TEMP before running cmake.
(2) If it finds meinproc4 it will bail out on these two lines:
get_filename_component(_a ${MEINPROC_EXECUTABLE} PATH)
get_filename_component(_meinproc_install_path ${_a} PATH)
in cmake/doc/CMakeList.txt
I never really understood how to make a clean distinction between HOST
os and BUILD os using cmake, so I just renamed meinproc4 to something
else and refrained from building documentation. If someone has a clue of
cmake, it is maybe fixable in a short time. Not me :)
Cheers
Fridrich
P.S.: For those that might be interested, my cross-compiling
_mingw32_cmake macro expands to the attached cmakescript.txt
-------------- next part --------------
HOST_CC=gcc; export HOST_CC;
PKG_CONFIG_PATH="/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-pc-mingw32/sys-root/mingw/share/pkgconfig"; export PKG_CONFIG_PATH;
CLASSPATH="$CLASSPATH:${MINGW32_CLASSPATH:-/usr/i686-pc-mingw32/sys-root/mingw/share/java/libgcj.jar:/usr/i686-pc-mingw32/sys-root/mingw/share/java/libgcj-tools.jar}"; export CLASSPATH;
_PREFIX="/usr/bin/i686-pc-mingw32-";
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do
x=`echo $i|sed "s,${_PREFIX},,"|sed "s,\.awk*,,"|tr "a-z+-" "A-ZX_"`;
declare -x $x="$i" ; export $x;
done;
unset _PREFIX;
CC="${MINGW32_CC:-i686-pc-mingw32-gcc}"; export CC;
CFLAGS="${MINGW32_CFLAGS:--O2 -g -pipe -Wall -fexceptions -fno-omit-frame-pointer -fno-optimize-sibling-calls --param=ssp-buffer-size=4 -mms-bitfields}"; export CFLAGS;
LDFLAGS="${MINGW32_LDFLAGS:--Wl,--exclude-libs=libintl.a -Wl,--exclude-libs=libiconv.a}"; export LDFLAGS;
if [ -x "/usr/bin/i686-pc-mingw32-g++" ]; then
CXX="${MINGW32_CXX:-i686-pc-mingw32-g++}"; export CXX;
CXXFLAGS="${MINGW32_CXXFLAGS:--O2 -g -pipe -Wall -fexceptions -fno-omit-frame-pointer -fno-optimize-sibling-calls --param=ssp-buffer-size=4 -mms-bitfields}"; export CXXFLAGS;
else
CXX=; export CXX;
ac_cv_prog_CXX=no; export ac_cv_prog_CXX;
CXXFLAGS=; export CXXFLAGS;
fi;
for i in `ls /usr/i686-pc-mingw32/sys-root/mingw/bin/*|grep -- "-config$"` ; do
x=`basename $i|tr "a-z+-" "A-ZX_"|sed "s,\.,,"`;
declare -x $x="$i" ; export $x;
done;
unset x i ;
cmake \
-DCMAKE_SYSTEM_NAME="Windows" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/i686-pc-mingw32/sys-root/mingw \
-DCMAKE_INSTALL_LIBDIR:PATH=/usr/i686-pc-mingw32/sys-root/mingw/lib \
-DINCLUDE_INSTALL_DIR:PATH=/usr/i686-pc-mingw32/sys-root/mingw/include \
-DLIB_INSTALL_DIR:PATH=/usr/i686-pc-mingw32/sys-root/mingw/lib \
-DSYSCONF_INSTALL_DIR:PATH=/usr/i686-pc-mingw32/sys-root/mingw/etc \
-DSHARE_INSTALL_PREFIX:PATH=/usr/i686-pc-mingw32/sys-root/mingw/share \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_C_COMPILER="/usr/bin/i686-pc-mingw32-gcc" \
-DCMAKE_CXX_COMPILER="/usr/bin/i686-pc-mingw32-g++" \
-DCMAKE_FIND_ROOT_PATH="/usr/i686-pc-mingw32/sys-root/mingw" \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
More information about the dbus
mailing list