[Bug 1328486] Re: Click x86 chroot fails to build cmake projects
Colin Watson
cjwatson at canonical.com
Tue Jun 10 14:14:45 UTC 2014
OK, the problem is that the dpkg-architecture environment variables are
set for cross-compiling rather than native-compiling. As a quick hack
to demonstrate, if you run this in a "click chroot run" shell before
running cmake .. && make, it works fine:
eval `dpkg-architecture | grep ^DEB_HOST_ | sed 's/HOST/BUILD/'`
(Don't do this in QtC, though! I'll fix click to get it right by
itself.)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1328486
Title:
Click x86 chroot fails to build cmake projects
Status in Qt Creator plugins for Ubuntu:
New
Status in Ubuntu Reminders app:
New
Status in “click” package in Ubuntu:
Confirmed
Bug description:
I was trying to get Reminders built and running on the x86 emulator,
and stumbled upon this issue:
Steps to reproduce:
1. Create a 14.10 x86 chroot: sudo click chroot -a i386 -f ubuntu-sdk-14.10 create (see bug 1328436)
2. Create an emulator instance from Qt Creator: Devices > Add emulator (arrow), then select i386 as arch, a name and press Create
3. Once created, on the Devices tab follow the Qt Creator prompt to automatically create a Kit for the emulator
4. Add the build dependencies to build Reminders -> Tools > Options > Maintain, then select the newly created utopic chroot
5. On the terminal that opens, run: apt-get install libssl-dev:armhf python3
6. Check out Reminders: bzr branch lp:reminders-app
7. Open the Reminders CMakeLists.txt file with Qt Creator
8. Make sure you select the emulator kit upon configuration
9. Ensure again that on the left panel you've got the emulator kit selected
10. Press build
Actual:
- Reminders fails to build with automoc errors: http://pastebin.ubuntu.com/7622792/
Expected:
- Reminders builds without errors as with any other target
Note: for a simpler CMake project to reproduce the issue on, see the
attached example.
#EDIT (zeller-benjamin)
This problem affects all projects not just reminders building for the emulator.
It seems the x86 chroot is not able to execute the AUTOMOC step.
This can be easily checked with logging into the chroot,
go to a project directory and do :
mkdir build && cd build && cmake .. && make
To manage notifications about this bug go to:
https://bugs.launchpad.net/qtcreator-plugin-ubuntu/+bug/1328486/+subscriptions
More information about the foundations-bugs
mailing list