Open asbestomolesto opened 5 years ago
Hi. I have no installed copy of Devuan, but since it's kind of based on Debian, library triplets should be the same.
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0
Here x86-64 version of GLib's configuration is included, which caused type mismatches. For 32-bit build, you need to make sure i386 version is included. I think, changing PKG_CONFIG_PATH=/usr/lib/pkgconfig
to PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
in your build command should be enough.
I just tried that and I obtain the same error:
asbesto@rover:~/Desktop/src/apulse-master/build$ PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig CFLAGS=-m32 cmake -DCMAKE_INSTALL_PR
EFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for modules 'glib-2.0;alsa'
-- Found glib-2.0, version 2.50.3
-- Found alsa, version 1.1.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asbesto/Desktop/src/apulse-master/build
asbesto@rover:~/Desktop/src/apulse-master/build$
asbesto@rover:~/Desktop/src/apulse-master/build$ make
Scanning dependencies of target trace-helper
[ 4%] Building C object CMakeFiles/trace-helper.dir/src/trace.c.o
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /home/asbesto/Desktop/src/apulse-master/src/trace.h:27,
from /home/asbesto/Desktop/src/apulse-master/src/trace.c:25:
/usr/include/glib-2.0/glib/gtypes.h: In function ‘_GLIB_CHECKED_ADD_U64’:
/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
^
/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro ‘G_PASTE_ARGS’
#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
^~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro ‘G_PASTE’
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro ‘G_STATIC_ASSERT’
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~
CMakeFiles/trace-helper.dir/build.make:62: recipe for target 'CMakeFiles/trace-helper.dir/src/trace.c.o' failed
make[2]: *** [CMakeFiles/trace-helper.dir/src/trace.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/trace-helper.dir/all' failed
make[1]: *** [CMakeFiles/trace-helper.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
asbesto@rover:~/Desktop/src/apulse-master/build$
:(
Do you have packages libasound2-dev:i386
, libglib2.0-dev:i386
, gcc-multilib
, g++-multilib
installed?
Yes I have them...
Well my goal is to use it with gqrx-sdr. I managed to install a recent package from a more recent repository. but unfortunately gqrx-sdr segfault :(
Yes I have them...
Then it should compile with the commands you posted here. At least they worked in the VM with Devuan. I just tried to install a new Devuan ASCII copy and successfully have built apulse there.
If that for some reason doesn't work, you may try to build in 32-bit chroot.
Well my goal is to use it with gqrx-sdr.
Doesn't it support ALSA? There is a portaudio backend, which should support ALSA directly.
Devuan ships apulse already in Ascii.. (may be in Jessie too - but I never needed it there)
Hi there, I can't compile apulse, I think there's something about glib.
I tried this, from another thread here, but I have the same error as before.
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
and this is what happens:
Any help? :(