Forum archive
Noob Compiling
- I'm trying to compile jfBuild,
I use DevC++ 4.9.9.2 with GCC 3.4.2 and buildport_src_20050216.
When I try to use make I get Makefile.shared missing error.
So I tried different approach: I've put all *.c files into the project, and added include path to build's headers. This should at least produce object files which I can try to link manually.
Anyway even using this approach I'm getting lots of warning and errors in many files
for example:
line 436 D:\buildport\src\defs.c `tiletovox' undeclared (first use in this function)
line 893 D:\buildport\src\polymost.c `pthtyp' undeclared (first use in this function)
line 893 D:\buildport\src\polymost.c `pth' undeclared (first use in this function)
line 2133 D:\buildport\src\polymost.c `drawingskybox' undeclared (first use in this function)
.etc
I'm sure some of this errors are caused by bad compiler switches etc. but there is too many of them and I don't know what to do.
Can anyone help me or even better has anyone working project files/setup for devc++? - I forgot to include the Makefile.shared file in the Build distribution. I've put it at http://jonof.edgenetwork.org/misc/Makefile.shared until the next version is packaged and released.
Jonathon - Even when I've downloaded makefile.shared I'm unable to compile a thing:
I have modified makegnu.bat to reflect my install:
@echo off
SET PATH=%PATH%;"D:\Dev-Cpp\bin"
SET INCLUDE="D:\Dev-Cpp\include";"D:\buildport\include"
SET LIB="D:\Dev-Cpp\lib"
echo %path%
echo %include%
echo %lib%
make -f Makefile %1 %2 %3 %4 %5
make now starts fine, but it throws error when it tries to rebuild game.c :
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
process_begin: CreateProcess((null), uname -s, ...) failed.
gcc -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL -DDEBUGGINGAIDS -ggdb
-W -Wall -Werror-implicit-function-declaration -Wno-char-subscripts -Wno-unused
-march=pentium -funsigned-char -DNO_GCC_BUILTINS -DUSE_GCC_ASSEMBLY -DUSE_GCC_PR
AGMAS -Iinclude/ -I../jfaud/inc -DUNKNOWN=1 -DRENDERTYPE=1 -DDYNAMIC_OPENGL -c s
rc/game.c -o obj.gnu/game.o 2>&1
'gcc' is not recognized as an internal or external command,
operable program or batch file.
make: *** [obj.gnu/game.o] Error 1
seems like it is unable to find gcc. But when I type gcc on commandline after envvars set it loads up fine, saying no input file specified. What am I doing wrong?
Please has someone succeded to compile current build source release with devcc ? - on my compiler djgpp (gcc for dos) the path is used to find gcc for manual execution. but not with a utility like make or rhide. for those utilities to work i have to set the enviroment variable djgpp=<full path name to djgpp.env> and the djgpp.env file tells all utilities where to find everything as well as default compiler flags. check to see if you have something similar to this and if you do then you need to set an environment variable to it
Compile solved
Thanks to massive JonoF's help I was able to compile both Game and Editor with devc++, so now this thread is no longer actual. Thank you JonoF ;).Noob Compiling
In case anyone's bewildered at what etko's getting at, I made some Dev-C++ projects for the engine port so that people can compile the various bits that way if they so desire. Duke hasn't been given the same treatment yet, but I'll get to that in time. The files will be distributed with the port source from now on.
Jonathon