|
|
2009-10-15
, 18:02
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#12
|

|
|
2009-10-15
, 18:12
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#13
|
Normally, with configure, you can tell --target=arm-linux. You should check the cmake config file (which it reads before make) to see if you can specify this.
When I had to use cmake I had to work around it, although IIRC I tried various versions of cmake and got one to work. I think I just grabbed one from Debian.
From the mentioned mailing list it appears its a QEMU bug.
It also says, that the cmake in extras-devel only works in Scratchbox; not on the device itself. In your case this doesn't matter because, like most people, you're going to use it in your SDK anyway.
|
|
2009-10-15
, 21:06
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#14
|
| The Following User Says Thank You to Nathan For This Useful Post: | ||
|
|
2009-10-15
, 22:04
|
|
|
Posts: 3,397 |
Thanked: 1,212 times |
Joined on Jul 2008
@ Netherlands
|
#15
|
I think you got it wrong... It will build with host-g++/host-gcc, so
it will be built with the same compiler (and linked to the same
libraries) as other internal sbox tools were compiled. Therefore, if
scratchbox works in your host, cmake compiled with host-g++ will work
too. It will not link to any host libraries, only to internal
scratchbox ones.
Unless you did not use the official sbox binaries (e.g. compiled from
sources) it should work.
If you don't know, "host-g++" is a internal scratchbox compiler used
to compile all "native" tools provided by scratchbox, that work on
both targets.
it will just work, because cmake compiled with host-g++ will work like any other scratchbox internal tool.
|
|
2009-10-15
, 22:17
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#16
|
I read wrong. I thought what was being tried is compiling cmake for ARMEL instead of using it.
Now, to quote, host-gcc and host-g++ should work in the SDK.
So, in sbox this should work, if Anderson Lizardo shares the diff for the modified cmake we can built it ourselves for sbox. Or if he shares binary as unofficial devkit.
Btw, cmake is not broken; the problem lies in QEMU. Somewhere in QEMU...
| The Following User Says Thank You to Nathan For This Useful Post: | ||
|
|
2009-10-16
, 16:37
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#17
|
| The Following 6 Users Say Thank You to Nathan For This Useful Post: | ||
|
|
2009-10-16
, 16:39
|
|
Posts: 369 |
Thanked: 191 times |
Joined on Sep 2009
@ Virginia
|
#18
|
|
|
2009-10-16
, 16:49
|
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#19
|
|
|
2009-10-20
, 08:59
|
|
Posts: 9 |
Thanked: 2 times |
Joined on Oct 2009
|
#20
|
Well it looks like we have a SOLUTION -- fresh today added to the sdk is a "sdk" version of cmake. I installed it and I am good to go. I can run cmake in both x86 and armel targets now.
http://maemo.org/packages/view/cmake/
Nathan.
When I had to use cmake I had to work around it, although IIRC I tried various versions of cmake and got one to work. I think I just grabbed one from Debian.
From the mentioned mailing list it appears its a QEMU bug.
It also says, that the cmake in extras-devel only works in Scratchbox; not on the device itself. In your case this doesn't matter because, like most people, you're going to use it in your SDK anyway.
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!