Hi I'm cross-compiling an application to 32 bit arch. My app uses dbus-glib bindings. My base system is Ubuntu Hardy 64, so I use the -m32 flag with gcc to compile but it gives me an error of missing libdbus-glib-1.so. All other libs are present as I've already installed gcc-multilib, ia32libs etc packages and am also able to cross compile other applications that don't depend on this particular library. Any suggestions which package to install to get this 32 bit lib onto my system?
My Compile command: gcc -Wall -O `pkg-config --cflags dbus-1 glib-2.0 dbus-glib-1` `pkg-config --libs dbus-1 glib-2.0 dbus-glib-1` marshal.c main.c -o splert Errors: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libdbus-glib-1.so when searching for -ldbus-glib-1 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libdbus-glib-1.a when searching for -ldbus-glib-1 /usr/bin/ld: skipping incompatible /usr/bin/../lib/libdbus-glib-1.so when searching for -ldbus-glib-1 /usr/bin/ld: skipping incompatible /usr/bin/../lib/libdbus-glib-1.a when searching for -ldbus-glib-1 /usr/bin/ld: skipping incompatible /usr/lib/libdbus-glib-1.so when searching for -ldbus-glib-1 /usr/bin/ld: skipping incompatible /usr/lib/libdbus-glib-1.a when searching for -ldbus-glib-1 /usr/bin/ld: cannot find -ldbus-glib-1 collect2: ld returned 1 exit status -Regards Shantanu ---------------------- I didn't do it, nobody saw me do it, U can't prove anything - Bart Simpson http://blog.shantanugoel.com http://tech.shantanugoel.com _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
