Closed 13ilya closed 8 years ago
Hi.
I've checked now, and I have the same error on Debian testing. That's not due to alsa-lib update, but because of GLib. In 64-bit version GLib headers define guint64
as unsigned long
, which is 64-bit unsigned. But in 32-bit mode unsigned long
is 32-bit. Still compiling in 32-bit mode uses headers designed for 64-bit installations. Compilation-time assertion just makes error clear.
Try setting PKG_CONFIG_PATH=/usr/lib/pkgconfig
before calling cmake
. That will make pkg-config
to look into /usr/lib/pkgconfig
before /usr/lib64/pkgconfig
and it will catch flags from glib-devel-32bit rather than from glib-devel.
d=apulse && cd /tmp && git clone git://github.com/i-rinat/$d.git && cd $d && F="-m32 -march=native -msse3 -O3 -fomit-frame-pointer -pipe -DNDEBUG" && PKG_CONFIG_PATH=/usr/lib/pkgconfig cmake -LA -DCMAKE_C_FLAGS_RELEASE="$F" -DCMAKE_CXX_FLAGS_RELEASE="$F" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr && make -j4 && sudo make install && cd .. && rm -rf $d
Thank you, its work. :-)
I can't see how it could be fixed in apulse
, since it's caused by external library, GLib.
After the next update openSUSE Tumbleweed apulse no longer be build. (glib-2.48 and alsa-1.1.1)
sudo zypper in gcc-32bit gcc-c++-32bit glib2-devel-32bit alsa-devel-32bit
d=apulse && cd /tmp && git clone git://github.com/i-rinat/$d.git && cd $d && F="-m32 -march=native -msse3 -O3 -fomit-frame-pointer -pipe -DNDEBUG" && cmake -LA -DCMAKE_C_FLAGS_RELEASE="$F" -DCMAKE_CXX_FLAGS_RELEASE="$F" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr && make -j4 && sudo make install && cd .. && rm -rf $d