You are not logged in.
The last few lines where the error occurs:
src/controller_slot.cpp: In member function ‘bool ControllerSlot::is_connected() const’:
src/controller_slot.cpp:72:10: error: cannot convert ‘const ControllerThreadPtr {aka const boost::shared_ptr<ControllerThread>}’ to ‘bool’ in return
return m_thread;
^~~~~~~~
scons: *** [src/controller_slot.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
What's going wrong here? I can't tell.
Last edited by YAOMTC (2016-05-21 15:47:46)
Offline
in controller_slot.cpp change
bool
ControllerSlot::is_connected() const
{
return m_thread;
}
to
bool
ControllerSlot::is_connected() const
{
return m_thread.get();
}
or
bool
ControllerSlot::is_connected() const
{
return m_thread != nullptr;
}
Last edited by mis (2016-05-21 09:26:16)
Offline
I edited the file in src/xboxdrv-0.8.8/src and did makepkg again, but it failed again:
In file included from /usr/include/c++/6.1.1/memory:81:0,
from /usr/include/boost/function/function_base.hpp:16,
from /usr/include/boost/function/detail/prologue.hpp:17,
from /usr/include/boost/function.hpp:24,
from src/controller_slot_config.hpp:22,
from src/controller_slot.hpp:24,
from src/controller_slot.cpp:19:
/usr/include/c++/6.1.1/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
src/controller_slot.cpp: In member function ‘bool ControllerSlot::is_connected() const’:
src/controller_slot.cpp:72:10: error: cannot convert ‘const ControllerThreadPtr {aka const boost::shared_ptr<ControllerThread>}’ to ‘bool’ in return
return m_thread;
^~~~~~~~
scons: *** [src/controller_slot.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
I forgot to check the AUR comments though, that should've been the first thing I did. Samleybrize posted a working version: https://github.com/samleybrize/aur-xboxdrv I was able to build and install that one.
Last edited by YAOMTC (2016-05-21 15:48:09)
Offline
I edited the file in src/xboxdrv-0.8.8/src and did makepkg again, but it failed again:
After editing the file you must run makepkg with the --noextract option, otherwise the changes will be overwritten with the original files.
edit: In this case the -o option (only download and extract sources) may be useful too.
makepkg -o
edit the file
makepkg --noextract
Last edited by mis (2016-05-21 16:04:20)
Offline
Whoops! My mistake. That explains why I was getting the same error... Thanks.
Offline