Porting
Racer to other platforms
Racer
is crossplatform, but that doesn't mean just a recompile will do. |
|
If you want to port Racer to other platforms (like Solaris,
FreeBSD or whatever) this document contains some hints on what you need to do.
The list may not be complete.
Here's the list of pitfalls:
- include/qlib/debug.h; check the QPC2Host list of macros;
the endianness #ifdef list may need to be updated to include the new OS. Windows
& Linux are assumed to be little-endian, SGI/Mac are assumed big-endian.
- include/qlib/os.h; define your OS settings generally. This
includes using X11, using Carbon (Mac) and some other options.
Source code changes:
- You'll probably need lots of #ifdef's to get it to compile
(include files that don't exist on platforms).
- For the main updates, you need to add code probably to: src/libs/qlib/qopengl.cpp,
qfont.cpp, qxwindow.cpp, qevent.cpp, qaudport.cpp and qapp.cpp.
- In qapp.cpp, make sure that in CreateSysFonts() some system
fonts are created.
- NLib will probably be easiest to convert; start with that
(src/libs/nlib).
- Port NLib and QLib first, then proceed to D3, only then start
at application code (Racer's lib/libu and Racer itself).
Porting isn't easy; programming experience
is required to get things going.
(last
updated
November 13, 2012
)