![]() |
Android compiling error: undefined reference to'.... CPeripheralBusUSB...' - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164) +---- Thread: Android compiling error: undefined reference to'.... CPeripheralBusUSB...' (/showthread.php?tid=148065) |
compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-12 i am compiling xbmc frodo beta3 no-NENON. i follow the docs/README.android, and use the toolchain: android-toolchain-crystax/android-9. i did it successfully when i compiling the beta1.But this time, i met an error: error: undefined reference to 'PERIPHERALS::CPeripheralBusUSB::CPeripheralBusUSB(PERIPHERALS::CPeripherals*)' i spent one days solving it and the google gives no more help. i appreciate for someone's suggestion. Thanks. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - lartomar2002 - 2012-12-12 Man, you are way out of my league. I just downloaded XBMC for android and installed it on my Asus TF700 tablet and it worked. Is there a particular reason for compiling. You probably can tell by my question I am a noob to all of this. ![]() RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-12 i compiled the beta3 for set-top box. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - Memphiz - 2012-12-12 your build system is stale ... you need to reconfigure. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-13 thank you, Memphiz. This morning, i reconfigured, and rebuilt it. but i met another error: *** No rule to make target `/home/sunxt/XBMC-version/xbmc/lib/libdvd/libdvdnav/src/dvdnav.c', needed by `dvdnav.o'. Stop. i vi the Makefile in ~/XBMC-version/xbmc-android-tegra2/xbmc/lib/libdvd/libdvdnav/ . how to compile dvdnav.c is clear. i do not konw why. i checked the configure according to README.android. could someone give me a suggestion? RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - Memphiz - 2012-12-13 Clean out everything which doesn't belong to the clean source by issuing: Code: git clean -xdf Then do it from scratch. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-14 thank you,Memphiz. i will follow you suggestion,and rebuild it. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-14 hi, Memphiz. when i rebuild the xbmc, i met the error before. Peripherals.cpp:85: error: undefined reference to 'PERIPHERALS::CPeripheralBusUSB::CPeripheralBusUSB(PERIPHERALS::CPeripherals*)' collect2: ld returned 1 exit status i build my xbmc no-NEON as followed: build depends # cd xbmc-android-tegra2/xbmc/tools/android/depends # ./bootstrap # ./configure --with-sdk=/opt/xbmc/android-sdk --with-ndk=/opt/xbmc/android-ndk --with-toolchain=/home/$USER/xbmc-android/android-toolchain-crystax/android-9 --with-tarballs=/opt/xbmc/xbmc-android-tarballs # make -j 8 build android # cd ../../../ # make -C tools/android/depends/xbmc could you help me about this? thank you . RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - Memphiz - 2012-12-14 The problem is that you are missing the libusb dependency. Are you using your own branch for non-neon? make -C tools/android/depends/libusb and then make -C tools/android/depends/xbmc should get you going again. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-19 (2012-12-14, 12:02)Memphiz Wrote: The problem is that you are missing the libusb dependency. Are you using your own branch for non-neon? I get the source from github---"git clone -b android-tegra2 git://github.com/mcrosson/xbmc.git". And I check the derectory /xbmc/tools/android/depends/libusb/, there's nothing except a Makefile. How can I make the libusb dependency? could you give me some advice? RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - davilla - 2012-12-19 maybe actually read and comprehend README.android. It tells you exactly what to do with tools/android/depends make -C tools/android/depends/libusb ^^ that's a command to make using the Makefile in tools/android/depends/libusb, the Makefile will fetch/build and install libusb for android usage. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - Memphiz - 2012-12-19 (2012-12-19, 04:45)sunxt-dsp Wrote: I get the source from github---"git clone -b android-tegra2 git://github.com/mcrosson/xbmc.git". I've already told you the commands in my post before yours... RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-21 (2012-12-14, 12:02)Memphiz Wrote: The problem is that you are missing the libusb dependency. Are you using your own branch for non-neon? Thank you, Memphiz! I have solved this error. The key is i donot have permission to write /opt/xbmc/xbmc-android-tarballs. Thanks for U support. RE: compiling error: undefined reference to'.... CPeripheralBusUSB...' - sunxt-dsp - 2012-12-21 With Memphiz's help, i have solved this problem. Thanks, Memphiz. The key is that i donot have permission to write /opt/xbmc/xbmc-android-tarballs. thank you all. |