Where is .../png.d
by Winston Nguyendon · in Torque Game Engine · 03/11/2003 (8:35 pm) · 8 replies
Please help. Newbie. when I first compile un der Linux, where is the file ...lib.. /png.d
Linux compiler Gcc3 crash within the very first source coded file. I found a "png.d", under /vc7, but I thought VC7 is for Visual C 7.0, or 6.0 for MS Window. How do I compile under LINUX 2.4.4
Linux compiler Gcc3 crash within the very first source coded file. I found a "png.d", under /vc7, but I thought VC7 is for Visual C 7.0, or 6.0 for MS Window. How do I compile under LINUX 2.4.4
About the author
#2
03/11/2003 (9:48 pm)
Giao, if you are getting a specific error message, please post it. Generally the .d files are autogenerated by the compiler. They contain a list of the dependent header files for a give source file.
#3
when I type
"Make -f mk/configure.mk OS=LINUX COMPILER=GCC2 BUILD=DEBUG"
It said VALID
And then I type "make"
The very first file "...Compile lpng/png.c "
" out.GCC2.DEBUG/lpng/png.d: No such file or directory
make[1]: *** [out.GCC2.DEBUG/lpng/png.obj] Error 1
make: 888 [default] Error 2
----------------
Hoe can I pass this point. I am compiling for the first time, with LINUX 2.4.4.
Thank you.
03/12/2003 (11:51 am)
please help:when I type
"Make -f mk/configure.mk OS=LINUX COMPILER=GCC2 BUILD=DEBUG"
It said VALID
And then I type "make"
The very first file "...Compile lpng/png.c "
" out.GCC2.DEBUG/lpng/png.d: No such file or directory
make[1]: *** [out.GCC2.DEBUG/lpng/png.obj] Error 1
make: 888 [default] Error 2
----------------
Hoe can I pass this point. I am compiling for the first time, with LINUX 2.4.4.
Thank you.
#4
What version of gcc? (gcc --version)
Try running this command from the top level torque folder:
find lib -name "png.d" -print
Does it find any files?
03/12/2003 (12:44 pm)
What version of make are you using? (make --version)What version of gcc? (gcc --version)
Try running this command from the top level torque folder:
find lib -name "png.d" -print
Does it find any files?
#5
there is no png.d file, because the soucre code .../lib/lpn/png.c suppose to open ( MKdir ) a directory call "out" but It never did create this directory.
From the DIR.OBJ variable in conf.mk. It said that is where a directory name "out" should be created.
I am experiment with installing "libpng" and "Zlib" of GNU , and will not bother with this local and unconventional way, TORQUE is compiling libpng.
Unless you know a better way, and I think you do, to get this TORQUE to compile. I amusing the HEAD version. and I am using gcc3.2 the newest gcc compiller.
I may have to go back to gcc2.x
03/12/2003 (2:21 pm)
I am researching this un common way of compiling. I know from my file, it is the LIBPNG and ZLIB.there is no png.d file, because the soucre code .../lib/lpn/png.c suppose to open ( MKdir ) a directory call "out" but It never did create this directory.
From the DIR.OBJ variable in conf.mk. It said that is where a directory name "out" should be created.
I am experiment with installing "libpng" and "Zlib" of GNU , and will not bother with this local and unconventional way, TORQUE is compiling libpng.
Unless you know a better way, and I think you do, to get this TORQUE to compile. I amusing the HEAD version. and I am using gcc3.2 the newest gcc compiller.
I may have to go back to gcc2.x
#6
You didn't mention what make version you are using. It maybe a problem with your make.
You can try removing the -MD flag from conf.UNIX.mk. Then the compiler won't try to generate the .d files, which are really mini-makefiles that contain dependency information for the source. This isn't the ideal solution since you won't be able to rebuild properly after making changes, but it might be enough to get you going.
03/12/2003 (4:16 pm)
I know that gcc 3.2 works with torque, I've used it many times. You didn't mention what make version you are using. It maybe a problem with your make.
You can try removing the -MD flag from conf.UNIX.mk. Then the compiler won't try to generate the .d files, which are really mini-makefiles that contain dependency information for the source. This isn't the ideal solution since you won't be able to rebuild properly after making changes, but it might be enough to get you going.
#7
I switch back to gcc2.9.5 and totally refresh, and reload my linux to 2.4.4-4GB from SuSE linux and original loads.
This has solve my problems. I will try to use GCC3.2 next.
But this time I will use the older MAKE facilities.
Thank you so much.
It works :)
03/12/2003 (5:18 pm)
Hi, Jhon Quintley.I switch back to gcc2.9.5 and totally refresh, and reload my linux to 2.4.4-4GB from SuSE linux and original loads.
This has solve my problems. I will try to use GCC3.2 next.
But this time I will use the older MAKE facilities.
Thank you so much.
It works :)
#8
03/12/2003 (5:48 pm)
Not sure I really did anything to help, but you're welcome anyway :)
Associate Edward F. Maurina III
Roaming Gamer LLC
Compiling under linux
and here is a link to the online docs.
If you've already tried this you might re-ping this forum in about a day if you don't get help from someone by then.
Good luck!
-Ed