| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <HTML>
- <BODY>
- <link rel="stylesheet" type="text/css" href="PageStyle.css">
- <P> <IMG SRC="Images/Title.png">
- <P> <A href="../Manual.html">Back to main page</A>
- <P> <b>Getting started with David Forsgren Piuva's Software Renderer</b>
- <P> <IMG SRC="Images/Border.png">
- <P> Place the library's root folder inside of a new folder.
- <P> This allow keeping your own projects and the "temporary" folder that's
- <P> used for compiling quickly outside of the library's version history.
- <P>
- <P> If using Linux, you might need to install the X11 headers.
- <P> If it doesn't work, your Linux distro might not have an X11 server.
- <P> On debian based distributions:
- <P> <I>sudo apt-get install libx11-dev</I>
- <P>
- <P> If using a Raspberry Pi, you can use Raspbian (Buster or newer for X11 support) or Ubuntu Mate.
- <P> <IMG SRC="Images/Border.png">
- <P> Build and run an example program on Linux:
- <P> * Select an SDK example and open its folder in a terminal.
- <P> * Give permission to execute the build script.
- <P> <I>chmod +x build.sh</I>
- <P> * Run the build script.
- <P> <I>./build.sh</I>
- <P> <IMG SRC="Images/Border.png">
- <P> Run regression tests on Linux:
- <P> * Open the source folder in a terminal and run the test script:
- <P> <I>chmod +x test.sh</I>
- <P> <I>./test.sh</I>
- <P> <IMG SRC="Images/Border.png">
- <P> Create your own Linux project
- <P> * Copy one of the SDK examples.
- <P> * Change ROOT_PATH and TEMP_DIR in your build script
- <P> to refer to the same locations from a new source path.
- <P> * Add your own external dependencies to LINKER_FLAGS within a quote
- <P> with -l in front of each library name.
- <P> <IMG SRC="Images/Border.png">
- <P> Creating a terminal application
- <P> If your application doesn't create any window, you can make it more portable
- <P> by replacing "WINDOW_MANAGER=X11" with "WINDOW_MANAGER=NONE".
- <P> This will compile with NoWindow.cpp instead of X11Window.cpp in windowManagers.
- <P> <IMG SRC="Images/Border.png">
- <P> Create your own cross-platform CodeBlocks project:
- <P> * Select C++ 14 with G++ from the GCC toolchain.
- <P> * Link with "-lm -pthread" to get standard C++ math and threading.
- <P> * Include all source files in the DFPSR folder or just the ones you need.
- <P> * Include the window wrapper and its dependencies for each target build.
- <P> Most platforms will be targeted using NoWindow.cpp for text only.
- <P> This should work with most other IDEs that support the GCC toolchain.
- <P> <IMG SRC="Images/Border.png">
- </BODY>
- </HTML>
|