|
|
Home » Community » Newbie corner » Raspberry (Raspbian) - ARM 6 Core + Ultimate++?
|
|
|
|
|
|
|
Re: Raspberry (Raspbian) - ARM 6 Core + Ultimate++? [message #37048 is a reply to message #36976] |
Sat, 11 August 2012 10:50   |
|
I don't have Raspberry, but just for fun I tried to build a cross compile toolchain and build umk for arm. I followed this guide and then set up build method in TheIDE to use the toolchain. I noticed only two problems: First, the Core/config.h didn't recognize the architecture correctly, so I had to help it a little. Second problem was that I don't have the libraries for arm on my system. If you have raspbian installed, I think it should suffice to just copy the include and lib folders.
Because of the missing libraries the linking failed, but otherwise I think everything should work fine. Just my two cents 
Best regards,
Honza
|
|
|
Re: Raspberry (Raspbian) - ARM 6 Core + Ultimate++? [message #37058 is a reply to message #37048] |
Sun, 12 August 2012 09:58   |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
Okay, I tried and after installing some libs, changing two config files and after hours of compiling I got this:
Quote: | idewin.cpp:(.text._ZN3IdeC2Ev+0x8e0): undefined reference to `Upp::CPU_Cores()'
collect2: ld returned 1 exit status
make[1]: *** [ide.out] Fehler 1
make[1]: Leaving directory `/home/wolfgang/upp.src/uppsrc'
|
This is the point there I don't know how to handle it..
[Updated on: Sun, 12 August 2012 09:59] Report message to a moderator
|
|
|
Re: Raspberry (Raspbian) - ARM 6 Core + Ultimate++? [message #37059 is a reply to message #37058] |
Sun, 12 August 2012 11:20   |
|
The function is defined in Core/Cpu.cpp, like this:#ifdef CPU_X86
int CPU_Cores() {
static int n;
ONCELOCK {
// platform dependent code to find out number of cores
}
return n;
}
#else
inline int CPU_Cores() {
return 1;
}
#endif
It should never be undefined... Although the fallback to assuming one core is not really correct, it should work. At least for now.
My guess the problem is in the 'inline' keyword. Try removing that...
Honza
|
|
|
|
|
|
Re: Raspberry (Raspbian) - ARM 6 Core + Ultimate++? [message #37076 is a reply to message #37062] |
Sat, 18 August 2012 16:37   |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
Here's a short manual what to do... for the one who will compile it on raspberry: It takes hours, really!
Started theIde one time but until now I haven't found the time to try to create a projekt or compile a own projekt on the raspberry.
1.
I've used the tarball version:
http://www.ultimatepp.org/www$uppweb$nightly$en-us.html
....
First of all, we need some packages: libx11, libxft, libnotify, libgtk2.0, libbz2
apt-get install libx11-dev libxft-dev libnotify-dev libgtk2.0-dev libbz2-dev
2. Edit ./uppsrc/Core/config.h Line 91,
Change
#elif __arm // ToDo!
to
#elif __arm || __arm__ // ToDo
3. Edit /usr/include/glib-2.0/glib/gtypes.h Line 34,
Change
#include <glibconfig.h>
to
#include </usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h>
4. Linking gdkconfig.h
ln -s /usr/lib/arm-linux-gnueabihf/gtk-2.0/include/gdkconfig.h /usr/include/
5. Edit ./uppsrc/Core/Cpu.cpp Line 104,
Change
inline int CPU_Cores()
to
int CPU_Cores()
6. do a "make" and compile it!
[Updated on: Sat, 18 August 2012 16:38] Report message to a moderator
|
|
|
Re: Raspberry (Raspbian) - ARM 6 Core + Ultimate++? [message #37077 is a reply to message #37076] |
Sat, 18 August 2012 17:41   |
|
Hi Wolfgang,
Congratulation on the successful build 
Points 2. and 5. should be committed to Core soon. Points 3. and 4. should be properly solved by editing include and lib path, respectively. When using tarball, just add the paths to CINC and LIBPATH variables at the beginning of uppsrc/Makefile.
I believe that compiling anything using U++ on Raspberry would be reaaally slow. Especially when using makefile (thus not using BLITZ) on single core processor. That is why cross compiling was invented 
Honza
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 23:17:31 CEST 2025
Total time taken to generate the page: 0.01131 seconds
|
|
|