eduard-permyakov / permafrost-engine

An OpenGL RTS game engine written in C
GNU General Public License v3.0
2.65k stars 114 forks source link

Build with gmake #15

Closed Martinfx closed 4 years ago

Martinfx commented 4 years ago

Hi, i compiled with code with gmake but have issues in Makefile Target system is FreeBSD

lol@ ~/D/permafrost-engine (master)> gmake deps PLAT=LINUX
mkdir -p ./lib
make -C ./deps/GLEW extensions
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 37: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 38: Could not find config/Makefile.
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 39: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 40: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 41: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 50: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 52: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 78: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 80: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 82: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 113: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 115: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 116: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 117: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 118: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 119: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 120: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 124: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 125: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 126: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 127: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 128: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 129: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 129: warning: duplicate script for target "(strip,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 119: warning: using previous script for "(strip,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 130: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 173: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 175: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 177: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 184: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 185: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 185: warning: duplicate script for target "(strip,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 119: warning: using previous script for "(strip,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 186: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 190: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 191: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 191: warning: duplicate script for target "(strip,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 119: warning: using previous script for "(strip,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 192: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 211: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 212: warning: duplicate script for target "(,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 116: warning: using previous script for "(,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 213: warning: duplicate script for target "(,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 116: warning: using previous script for "(,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 214: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 216: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 217: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 218: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 218: warning: duplicate script for target "(ln)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 126: warning: using previous script for "(ln)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 218: warning: duplicate script for target "(-sf,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 126: warning: using previous script for "(-sf,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 219: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 222: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 223: warning: duplicate script for target "ifeq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 213: warning: using previous script for "ifeq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 223: warning: duplicate script for target "(,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 116: warning: using previous script for "(,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 224: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 225: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 226: warning: duplicate script for target "ifneq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 114: warning: using previous script for "ifneq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 226: warning: duplicate script for target "(ln)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 126: warning: using previous script for "(ln)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 226: warning: duplicate script for target "(-sf,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 126: warning: using previous script for "(-sf,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 227: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 250: Missing dependency operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 251: warning: duplicate script for target "ifeq" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 213: warning: using previous script for "ifeq" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 251: warning: duplicate script for target "(,)" ignored
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 116: warning: using previous script for "(,)" defined here
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 252: Need an operator
make[1]: "/permafrost-engine/deps/GLEW/Makefile" line 255: Need an operator
make[1]: Fatal errors encountered -- cannot continue
make[1]: stopped in /permafrost-engine/deps/GLEW
gmake: *** [Makefile:133: lib/libGLEW.so.2.2] Error 1
eduard-permyakov commented 4 years ago

This is an issue building the GLEW dependency. It's possible the version committed to the repo isn't 100% up to date or has some artifacts. Try cloning from the official repo and building libGLEW.so.2.2 from there, then copying it to the 'permafrost-engine/lib' folder. Alternatively, you can try getting it using the FreeBSD package manager.

Note that I'm not officially supporting FreeBSD, only Linux and Windows. I've never tried building for the FreeBSD platform. That being said, I see no barriers to getting it built for FreeBSD, provided you get the dependencies building. It's just that you might have to hack around a tiny bit with the build scripts.