U++ framework - RDF feed
type: channel
description: Do not panic. Ask here before giving up.
items: Cross Compile HowTo?
items: Re: Cross Compile HowTo?

Cross Compile HowTo?
type: item
description: Hi, is there a HowTo or something like that, that discribes the do's and dont's for compile Ultimate++ Code to different Platforms? My main interest is ARM9 with embedded Linux (Debian). Many Thanks in advanced! Dieter
creator: d_th
date: 2009-04-01T12:24:37-00:00

Re: Cross Compile HowTo?
type: item
description: I don't know if there is a HowTo. But for your information i use TheIde on both linux and windows to build ARM9 executable. (for nintendo ds). And i have no problems to do that
creator: cocob
date: 2009-04-01T12:47:32-00:00

Re: Cross Compile HowTo?
type: item
description: Hi Cocob, i really believe that their is a way to do it! But my question is how. Could you give me an description about your way to do it?
creator: d_th
date: 2009-04-01T13:35:37-00:00

Re: Cross Compile HowTo?
type: item
description: The first step is to have a distribution of your cross compiler. After that in TheIde create a new BuildMethod (with GCC_ARM template) and configure name and path to compiler, includes and libs. And that's all ! choose your build method and press F7. cocob
creator: cocob
date: 2009-04-01T17:25:17-00:00

Re: Cross Compile HowTo?
type: item
description: Hi Cocob, that sounds pretty simple to me i will try that tomorrow. I cant believe its so simple; Thanks fore that hint!!!!!!!!!!!!!! Dieter
creator: d_th
date: 2009-04-01T20:57:20-00:00

Re: Cross Compile HowTo?
type: item
description: In most of the cases (if code is well made and have no errors in gcc and ms compilers) it is just that simple. You just open your project (called Package in U++) in another OS within TheIDE and compile it. And it just works.
creator: Mindtraveller
date: 2009-04-01T21:10:36-00:00

Re: Cross Compile HowTo?
type: item
description: Hi Cocob, so i tried a lot. But ther are always errors. Please can you send me an example of your GCC_ARM.bm File? The ToolChain is compiled on my Debian etch System. I have an U++ 2007.1 on this System because i am not able to build an 2008.1 on the etch system. MANY THANKS! Dieter
creator: d_th
date: 2009-05-11T13:07:26-00:00

Re: Cross Compile HowTo?
type: item
description: I don't know where is the problem exactly you must have something like this BUILDER = "GCC_ARM"; COMPILER = ""; DEBUG_INFO = "2"; DEBUG_BLITZ = "1"; DEBUG_LINKMODE = "0"; DEBUG_OPTIONS = "-O0"; DEBUG_FLAGS = ""; RELEASE_BLITZ = "0"; RELEASE_LINKMODE = "0"; RELEASE_OPTIONS = "-O3"; RELEASE_SIZE_OPTIONS = "-Os -finline-limit=20"; RELEASE_FLAGS = ""; DEBUGGER = "gdb"; PATH = "/path/to/gcc/arm/binaries"; INCLUDE = "/path/to/includes"; LIB = "/path/to/libs"; REMOTE_HOST = ""; REMOTE_OS = ""; REMOTE_TRANSFER = ""; REMOTE_MAP = ""; LINKMODE_LOCK = "0"; You should use verbose mode (setup menu) to debug your build method.
creator: cocob
date: 2009-05-11T17:27:30-00:00

Re: Cross Compile HowTo?
type: item
description: Hi Cocob, sorry, thats what i have tried. This is the contend of my GCC_ARM.bm BUILDER = "GCC_ARM"; COMPILER = ""; DEBUG_INFO = "2"; DEBUG_BLITZ = "1"; DEBUG_LINKMODE = "1"; DEBUG_OPTIONS = "-O0"; RELEASE_BLITZ = "0"; RELEASE_LINKMODE = "1"; RELEASE_OPTIONS = "-O3 -ffunction-sections"; RELEASE_SIZE_OPTIONS = "-Os -finline-limit=20"; DEBUGGER = "gdb"; PATH = " /usr/local/arm/cross-gcc-4.2.0-2.6.28-soft-dbg/i686-pc-linux -gnu/arm-926ejs-linux-gnueabi/bin "; INCLUDE = "/usr/local/arm/include/"; LIB = "/usr/local/arm/lib;/usr/local/arm/usr/lib"; REMOTE_HOST = ""; REMOTE_OS = ""; REMOTE_TRANSFER = ""; REMOTE_MAP = ""; And that is the output if i try to compile. ----- CtrlLib ( GUI GCC_ARM DEBUG SHARED BLITZ LINUX ) (1 / 9) BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp DropB ox.cpp DropList.cpp DropPusher.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSplitter.cpp SliderCtrl.cpp ColumnList.cpp Progress.cpp AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp Bar.cpp MenuBar.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp TabCtrl.cpp T reeCtrl.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.cpp PrinterJob.cpp Windows.cpp Win32.cpp TrayIconWin32.cpp TrayIconX11.cpp CtrlUtil.cpp Update.cpp LNGCtrl.cpp Ch.cpp ChGtk.cpp Cannot find executable 'arm-wince-pe-c++' ChWin32.cpp Cannot find executable 'arm-wince-pe-c++' CtrlLib.icpp Cannot find executable 'arm-wince-pe-c++' There were errors. (0:01.37) ----- CtrlLib ( GUI GCC_ARM DEBUG SHARED BLITZ LINUX ) (1 / 9) BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp DropB ox.cpp DropList.cpp DropPusher.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSplitter.cpp SliderCtrl.cpp ColumnList.cpp Progress.cpp AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp Bar.cpp MenuBar.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp TabCtrl.cpp T re…
creator: d_th
date: 2009-05-11T19:55:48-00:00

Re: Cross Compile HowTo?
type: item
description: default ARM build method seems to be configured for wince change this COMPILER = ""; with the name of your compiler cocob
creator: cocob
date: 2009-05-11T20:46:33-00:00

Re: Cross Compile HowTo?
type: item
description: ok, have changed to gcc = BUILDER = "GCC_ARM"; COMPILER = "gcc"; DEBUG_INFO = "2"; DEBUG_BLITZ = "0"; DEBUG_LINKMODE = "0"; DEBUG_OPTIONS = "-O0"; RELEASE_BLITZ = "0"; RELEASE_LINKMODE = "0"; ...snipp The Compiling output is now= ----- CtrlLib ( GUI GCC_ARM LINUX ) (1 / 9) cd /home/dieter/upp/uppsrc/CtrlLib LabelBase.cpp gcc -c -I"/home/dieter/upp/examples" -I"/home/dieter/upp/uppsrc" -I"/usr/local/arm/include/" -DflagGUI -DflagGCC_ARM -DflagLINUX -DbmYEAR= 2009 -DbmMONTH=5 -DbmDAY=11 -DbmHOUR=23 -DbmMINUTE=5 -DbmSECOND=19 -static -fexceptions -Os -finline-limit=20 -x c++ "/home/dieter/u pp/uppsrc/CtrlLib/LabelBase.cpp" -o "/home/dieter/upp/out/CtrlLib/GCC_ARM.Gui/LabelBase.o" In file included from /home/dieter/upp/uppsrc/Draw/Draw.h:4, from /home/dieter/upp/uppsrc/CtrlCore/CtrlCore.h:4, from /home/dieter/upp/uppsrc/CtrlLib/CtrlLib.h:4, from /home/dieter/upp/uppsrc/CtrlLib/LabelBase.cpp:1: /home/dieter/upp/uppsrc/Core/Core.h:303:28: error: bits/atomicity.h: No such file or directory In file included from /home/dieter/upp/uppsrc/CtrlCore/CtrlCore.h:4, from /home/dieter/upp/uppsrc/CtrlLib/CtrlLib.h:4, from /home/dieter/upp/uppsrc/CtrlLib/LabelBase.cpp:1: /home/dieter/upp/uppsrc/Draw/Draw.h:15:22: error: X11/Xlib.h: No such file or directory /home/dieter/upp/uppsrc/Draw/Draw.h:16:23: error: X11/Xutil.h: No such file or directory /home/dieter/upp/uppsrc/Draw/Draw.h:17:23: error: X11/Xatom.h: No such file or directory /home/dieter/upp/uppsrc/Draw/Draw.h:20:25: error: X11/Xft/Xft.h: No such file or directory /home/dieter/upp/uppsrc/Draw/Draw.h:21:36: error: X11/extensions/Xrender.h: No such file or directory In file included from /home/dieter/upp/uppsrc/CtrlCore/CtrlCore.h:30, from /home/dieter/upp/uppsrc/CtrlLib/CtrlLib.h:4, from /home/dieter/upp/uppsrc/CtrlLib/LabelBase.cpp:1: /home/dieter/upp/uppsrc/CtrlCore/X11Keys.h:1:24: error: X11/keysym.h: No such file or directory In file included from /home/dieter/upp/uppsrc/CtrlCore/CtrlCore.h:4, from /home/dieter/upp/uppsrc/Ct…
creator: d_th
date: 2009-05-11T21:11:54-00:00

Re: Cross Compile HowTo?
type: item
description: include dirs are missing like X11 headers directory. cocob
creator: cocob
date: 2009-05-12T07:06:58-00:00

Re: Cross Compile HowTo?
type: item
description: Hi Cocob, Yes, thats the Reason. But the path is already in the BuildMethod Discription. I will attach the file to this Message. I Think, their are some problems with the Environment of the Program. There is no effect after changing the Path to the Headerfiles. Have i adapt any other File to recognize the Pathes? I have added the Log to the file so the Message is mor readable Dieter
creator: d_th
date: 2009-05-12T09:54:31-00:00

Re: Cross Compile HowTo?
type: item
description: It's strange that it doesn't find part if internal STL implementation: "error: bits/atomicity.h: No such file or directory". This only happened to me when G++ was not installed correctly, path have gotten mixed up or did an automatic Linux update that changed GCC version. Can you check to see it you have these files in your -I folders which are not related to U++?
creator: cbpporter
date: 2009-05-12T10:48:01-00:00

Re: Cross Compile HowTo?
type: item
description: Hi there, is it necessary to change the file GccBuilder.cpp? Dieter
creator: d_th
date: 2009-05-19T20:14:10-00:00

Re: Cross Compile HowTo?
type: item
description: Hi all, why is nobody able to help me? i realy need help with this problem. i couldn't find a hint in the documentation. Dieter
creator: d_th
date: 2009-05-23T08:44:22-00:00