Thread: [Dbus-cxx-users] Cross compiling dbus-cxx for ARM
Status: Beta
Brought to you by:
rvinyard
From: chandraiah g. <cha...@gm...> - 2009-09-26 05:31:13
|
Hello, I am trying to compile dbus-cxx-0.4.2 for ARM. I have cross compiled libsigc++-2.2.0. I have also compiled boost_1.40.2 for ARM. I am getting the following error when I executed make command. make all-recursive make[1]: Entering directory `/home/targetshare/chandra/dbus-cxx-0.4.2' Making all in dbus-cxx make[2]: Entering directory `/home/targetshare/chandra/dbus-cxx-0.4.2/dbus-cxx' m4 dbus_signal.h.m4 > dbus_signal.h m4 signal_proxy.h.m4 > signal_proxy.h m4 method.h.m4 > method.h m4 method_impl.h.m4 > method_impl.h m4 interface.h.m4 > interface.h m4 object.h.m4 > object.h m4 objectproxy.h.m4 > objectproxy.h m4 methodproxybase.h.m4 > methodproxybase.h m4 methodproxy.h.m4 > methodproxy.h make all-am make[3]: Entering directory `/home/targetshare/chandra/dbus-cxx-0.4.2/dbus-cxx' /bin/sh ../libtool --tag=CXX --mode=compile arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. -I/usr/sol/include/dbus-1.0 -I/usr/sol/lib/dbus-1.0/include -I/usr/sol//include/sigc++-2.0 -I/usr/sol//lib/sigc++-2.0/include -I/usr/sol/include/ -I/usr/local/arm/4.2.2-eabi/usr/include/ -I//usr/local/arm/4.2.2-eabi/include/ -g -O2 -MT callmessage.lo -MD -MP -MF .deps/callmessage.Tpo -c -o callmessage.lo callmessage.cpp libtool: compile: arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. -I/usr/sol/include/dbus-1.0 -I/usr/sol/lib/dbus-1.0/include -I/usr/sol//include/sigc++-2.0 -I/usr/sol//lib/sigc++-2.0/include -I/usr/sol/include/ -I/usr/local/arm/4.2.2-eabi/usr/include/ -I//usr/local/arm/4.2.2-eabi/include/ -g -O2 -MT callmessage.lo -MD -MP -MF .deps/callmessage.Tpo -c callmessage.cpp -fPIC -DPIC -o .libs/callmessage.o callmessage.cpp: In function 'void DBus::callmsg_wp_deleter(void*)': callmessage.cpp:88: warning: possible problem detected in invocation of delete operator: callmessage.cpp:87: warning: 'wp' has incomplete type /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: warning: declaration of 'struct boost::weak_ptr<DBus::CallMessage>' callmessage.cpp:88: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. libtool: compile: arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. -I/usr/sol/include/dbus-1.0 -I/usr/sol/lib/dbus-1.0/include -I/usr/sol//include/sigc++-2.0 -I/usr/sol//lib/sigc++-2.0/include -I/usr/sol/include/ -I/usr/local/arm/4.2.2-eabi/usr/include/ -I//usr/local/arm/4.2.2-eabi/include/ -g -O2 -MT callmessage.lo -MD -MP -MF .deps/callmessage.Tpo -c callmessage.cpp -o callmessage.o >/dev/null 2>&1 mv -f .deps/callmessage.Tpo .deps/callmessage.Plo /bin/sh ../libtool --tag=CXX --mode=compile arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. -I/usr/sol/include/dbus-1.0 -I/usr/sol/lib/dbus-1.0/include -I/usr/sol//include/sigc++-2.0 -I/usr/sol//lib/sigc++-2.0/include -I/usr/sol/include/ -I/usr/local/arm/4.2.2-eabi/usr/include/ -I//usr/local/arm/4.2.2-eabi/include/ -g -O2 -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c -o connection.lo connection.cpp libtool: compile: arm-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. -I/usr/sol/include/dbus-1.0 -I/usr/sol/lib/dbus-1.0/include -I/usr/sol//include/sigc++-2.0 -I/usr/sol//lib/sigc++-2.0/include -I/usr/sol/include/ -I/usr/local/arm/4.2.2-eabi/usr/include/ -I//usr/local/arm/4.2.2-eabi/include/ -g -O2 -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c connection.cpp -fPIC -DPIC -o .libs/connection.o In file included from ../dbus-cxx/interface.h:16, from ../dbus-cxx/object.h:15, from connection.h:33, from connection.cpp:21: ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:66: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:156: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:247: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:340: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, T_arg3, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:435: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, T_arg3, T_arg4, sigc::nil, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:532: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, sigc::nil, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:631: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) ../dbus-cxx/method.h: In member function 'virtual DBus::HandlerResult DBus::Method<T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, sigc::nil>::handle_call_message(boost::shared_ptr<DBus::Connection>, boost::shared_ptr<const DBus::CallMessage>)': ../dbus-cxx/method.h:732: error: no match for 'operator<<' in 'connection << retmsg' ../dbus-cxx/signature.h:92: note: candidates are: std::ostream& operator<<(std::ostream&, const DBus::Signature&) In file included from ../dbus-cxx/dbus_signal.h:10, from ../dbus-cxx/interface.h:17, from ../dbus-cxx/object.h:15, from connection.h:33, from connection.cpp:21: ../dbus-cxx/signal_base.h: At global scope: ../dbus-cxx/signal_base.h:107: error: field 'm_connection' has incomplete type In file included from ../dbus-cxx/object.h:15, from connection.h:33, from connection.cpp:21: ../dbus-cxx/interface.h:75: error: default template arguments may not be used in function templates ../dbus-cxx/interface.h:201: error: default template arguments may not be used in function templates In file included from connection.h:33, from connection.cpp:21: ../dbus-cxx/object.h:393: error: default template arguments may not be used in function templates ../dbus-cxx/object.h:405: error: default template arguments may not be used in function templates In file included from ../dbus-cxx/objectproxy.h:15, from connection.h:34, from connection.cpp:21: ../dbus-cxx/interfaceproxy.h:75: error: default template arguments may not be used in function templates ../dbus-cxx/interfaceproxy.h:105: error: default template arguments may not be used in function templates In file included from connection.h:34, from connection.cpp:21: ../dbus-cxx/objectproxy.h:243: error: default template arguments may not be used in function templates ../dbus-cxx/objectproxy.h:251: error: default template arguments may not be used in function templates In file included from connection.cpp:21: connection.h:288: error: default template arguments may not be used in function templates connection.h:297: error: default template arguments may not be used in function templates connection.h:328: error: default template arguments may not be used in function templates connection.h:336: error: default template arguments may not be used in function templates connection.cpp: In function 'void DBus::conn_wp_deleter(void*)': connection.cpp:74: warning: possible problem detected in invocation of delete operator: connection.cpp:73: warning: 'wp' has incomplete type /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: warning: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp:74: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. connection.cpp: In static member function 'static boost::shared_ptr<DBus::Connection> DBus::Connection::create(DBusConnection*, bool)': connection.cpp:85: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp:86: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp: In static member function 'static boost::shared_ptr<DBus::Connection> DBus::Connection::create(DBus::BusType, bool)': connection.cpp:102: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp:103: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp: In static member function 'static boost::shared_ptr<DBus::Connection> DBus::Connection::create(const DBus::Connection&)': connection.cpp:119: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp:120: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp: In member function 'boost::shared_ptr<DBus::Connection> DBus::Connection::self()': connection.cpp:145: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' connection.cpp: In static member function 'static boost::shared_ptr<DBus::Connection> DBus::Connection::self(DBusConnection*)': connection.cpp:160: error: invalid use of incomplete type 'struct boost::weak_ptr<DBus::Connection>' /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of 'struct boost::weak_ptr<DBus::Connection>' make[3]: *** [connection.lo] Error 1 make[3]: Leaving directory `/home/targetshare/chandra/dbus-cxx-0.4.2/dbus-cxx' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/targetshare/chandra/dbus-cxx-0.4.2/dbus-cxx' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/targetshare/chandra/dbus-cxx-0.4.2' make: *** [all] Error 2 Can anybody suggest me how can I procede further for successful compilation. -- Thanks and regards, Chandraiah |
From: Rick L. V. Jr. <rvi...@cs...> - 2009-09-28 14:35:38
|
chandraiah gobburu wrote: > Hello, > > I am trying to compile dbus-cxx-0.4.2 for ARM. I have cross compiled > libsigc++-2.2.0. I have also compiled boost_1.40.2 for ARM. > > I am getting the following error when I executed make command. > > connection.cpp:145: error: invalid use of incomplete type 'struct > boost::weak_ptr<DBus::Connection>' > /usr/sol/include/boost/smart_ptr/shared_ptr.hpp:62: error: declaration of > 'struct boost::weak_ptr<DBus::Connection>' > connection.cpp: In static member function 'static > boost::shared_ptr<DBus::Connection> > DBus::Connection::self(DBusConnection*)': This looks like one of the boost library header includes is missing in pointer.h. I noticed that the #include for weak_ptr.hpp is commented out, but I don't remember why since I haven't used the boost libraries in a very long time. You might try uncommenting that line (or adjusting it as necessary) to ensure that weak pointers are included. Once that part is fixed the rest may fall in line. |