su -
pkg install git
pkg install gmake
pkg install glew
pkg install openal-soft
pkg install freeglut
exit
git clone https://github.com/andreasdr/tdme2
cd tdme2
Note: HARDWARE_THREADS should be replaced with the number of your CPU hardware threads, e.g. if you have 2 cores and hyperthreading, you can use 4.
gmake clean && gmake -j HARDWARE_THREADS mains
sudo apt-get install git
sudo apt-get install make
sudo apt-get install g++
sudo apt-get install libglew-dev
sudo apt-get install libopenal-dev
sudo apt-get install freeglut3-dev
git clone https://github.com/andreasdr/tdme2
cd tdme2
Note: HARDWARE_THREADS should be replaced with the number of your CPU hardware threads, e.g. if you have 2 cores and hyperthreading, you can use 4.
make clean && make -j HARDWARE_THREADS mains
TDME2 supports OpenGL-ES2. As FreeGLUT does not include support for GLES2 by default we need to compile our own version of FreeGLUT.
sudo apt-get install cmake
git clone https://github.com/dcnieho/FreeGLUT.git
cd FreeGLUT/freeglut/freeglut
cmake -DCMAKE_BUILD_TYPE=Debug -DFREEGLUT_GLES=ON -DFREEGLUT_BUILD_DEMOS=NO
make
sudo make install
If you get the following error if building TDME2 with FreeGLUT/GLES2 support:
/usr/local/lib/libfreeglut-gles.so: undefined reference to `glutCreateMenuUcall'
Then open FreeGLUT/freeglut/freeglut/src/fg_ext.c and comment out the following line: "CHECK_NAME(glutCreateMenuUcall);" like "// CHECK_NAME(glutCreateMenuUcall);" Go back to the folder where you issued cloning FreeGLUT. Then do again:
cd FreeGLUT/freeglut/freeglut
make
sudo make install
Before running a TDME2 binary like described below you need to execute the following command in your TDME2 folder just that the FreeGLUT/GLES2 library is found.
export LD_LIBRARY_PATH=/usr/local/lib
Go back into your TDME2 folder and continue to build TDME2.
Note: HARDWARE_THREADS should be replaced with the number of your CPU hardware threads, e.g. if you have 2 cores and hyperthreading, you can use 4.
make clean && make -j HARDWARE_THREADS mains GLES2=YES
You have to install XCode or XCode command line tools.
git clone https://github.com/andreasdr/tdme2
cd tdme2
Note: HARDWARE_THREADS should be replaced with the number of your CPU hardware threads, e.g. if you have 2 cores and hyperthreading, you can use 4.
make clean && make -j HARDWARE_THREADS mains
Install 64 Bit MSYS2 from https://www.msys2.org/, e.g. msys2-x86_64-20190524.exe, then update your MSYS2 installation and install packages.
pacman -Syu
pacman -S git
pacman -S make
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-glew
pacman -S mingw-w64-x86_64-openal
pacman -S mingw-w64-x86_64-freeglut
git clone https://github.com/andreasdr/tdme2
cd tdme2
Note: HARDWARE_THREADS should be replaced with the number of your CPU hardware threads, e.g. if you have 2 cores and hyperthreading, you can use 4.
make clean && make -j HARDWARE_THREADS mains
Install Visual Studio 2019 Community Edition and install Windows 7 SDK. Be aware that the makefile uses the default installation paths for libraries and headers.
Use a GIT client with the following URL: https://github.com/andreasdr/tdme2 and clone to a folder into your home folder like "tdme2" OR send your browser to "https://github.com/andreasdr/tdme2" and click "Clone or download/Download ZIP" and extract ZIP somewhere in your home folder, e.g. "tdme2".
Open your Visual Studio 2019 Community command line interface app for native X64 builds and execute the following commands. You need to adjust "tdme2" if you used a different folder.
cd %HOMEPATH%/tdme2
nmake -f Makefile.nmake
This will build TDME2 executables into your "tdme2" folder. You need to copy DLLs still to this folder, just that those dependencies are found. You need to adjust "tdme2" if you used a different folder.
cd %HOMEPATH%/tdme2
copy ext\fbx\win64\lib\libfbxsdk.dll .
copy ext\win-freeglut\libs\freeglut.dll .
copy ext\win-glew\libs\glew32.dll .
copy ext\win-openal-soft\libs\OpenAL32.dll .
copy ext\win-pthread\libs\pthreadVC2.dll .
- All *.EXE files are generated in your "tdme2" folder root. You should just be able to launch them from there. So you can ignore 2.
- The MSC build process is WIP
You find binaries in
- ./bin/tdme/tests/
- ./bin/tdme/tools/
You have to execute the binaries from tdme2 root folder like:
$ pwd
/usr/home/andreas/Development/drewke.net/tdme2
$ ./bin/tdme/tests/AngleTest
-
Links
- TDME2 Engine, see README.md
- TDME2 Model Editor, see README-ModelEditor.md
- TDME2 Particle System Editor, see README-ParticleSystemEditor.md
- TDME2 Level Editor, see README-LevelEditor.md
- TDME2 How to build, see README-BuildingHowTo.md
-
Build instructions will follow for NetBSD, OpenBSD, ...