Difference between revisions of "Talk:Compiling"

From NetHackWiki
Jump to navigation Jump to search
(Unbreak layout.)
Line 1: Line 1:
 +
I tried to download MinGW, and WinRAR said that w32api-3.9.tar within the .tar.gr file under the current section is corrupt. Am I donwloading the wrong file? --[[User:71.225.64.232|71.225.64.232]] 14:44, 29 April 2007 (UTC)
 +
:<tt>.tar.gz</tt> is not a <tt>rar</tt>-file. WinZip (at least) knows how to open .tar.gz files. --[[User:Paxed|Paxed]] 15:15, 29 April 2007 (UTC)
 +
:Also, you don't need to download any .tar.gz files; there's a [http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721&release_id=158801 MinGW-5.1.3.exe] that you want. --[[User:Paxed|Paxed]] 15:20, 29 April 2007 (UTC)
 +
::Oh, guess I was grabbing the wrong file. Thanks a ton. --[[User:71.225.64.232|71.225.64.232]] 21:36, 29 April 2007 (UTC)
  
I tried to download MinGW, and WinRAR said that w32api-3.9.tar within the .tar.gr file under the current section is corrupt. Am I donwloading the wrong file? --[[User:71.225.64.232|71.225.64.232]] 14:44, 29 April 2007 (UTC)
+
How do I open Makefile.gcc so I can get NetHack on graphical mode? [[User:69.109.231.64|69.109.231.64]] 22:48, 20 May 2007 (UTC)
  
 +
:Makefile.gcc is a plain ASCII text file, you can open it with notepad or any editor of your choice. But you have to make sure your editor uses real tabs (not spaces expanded to tab widths) as makefiles need real tabs. - [[User:Progo|Progo]] 05:27, 21 May 2007 (UTC)
  
:
+
== OS X ==
<tt>.tar.gz</tt> is not a <tt>rar</tt>-file. WinZip (at least) knows how to open .tar.gz files. --[[User:Paxed|Paxed]] 15:15, 29 April 2007 (UTC)
 
  
:
+
This is my first time ever compiling anything more complicated than "Hello World", and I've never touched the command line outside of Windows before, so I'm sure I'm missing plenty, but the instructions didn't work for me and this is how I fixed it: I spent several hours working out that two lines of
Also, you don't need to download any .tar.gz files; there's a [http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721&release_id=158801 MinGW-5.1.3.exe] that you want. --[[User:Paxed|Paxed]] 15:20, 29 April 2007 (UTC)
 
 
  
::
+
E int FDECL(srandom, (unsigned int));
Oh, guess I was grabbing the wrong file. Thanks a ton. --[[User:71.225.64.232|71.225.64.232]] 21:36, 29 April 2007 (UTC)
 
  
 +
need to be commented out in system.h to get it to compile.
  
 +
Also, the given permissions didn't work so I just set all to 777 and they did (...again, noob; correct me if you know better, and the given instructions didn't work on any of these counts). And don't forget to add /usr/games to your $PATH and bash profile. Currently trying to use these instructions to compile SlashEM, too.
  
How do I open Makefile.gcc so I can get NetHack on graphical mode? [[User:69.109.231.64|69.109.231.64]] 22:48, 20 May 2007 (UTC)
+
-adamlouis[at]gmail.com
  
 +
PS: Ah! http://nethack.wikia.com/wiki/Pkgsrc
  
 +
== Could someone update the Windows section? ==
  
:
+
MinGW is now at version 5.1.6; the article needs to be updated to reflect this, since the current instructions don't work for 5.1.4 (the earliest still-available version). [[User:Dr. 8-Bit|Dr. 8-Bit]] 01:28, April 19, 2010 (UTC)
Makefile.gcc is a plain ASCII text file, you can open it with notepad or any editor of your choice. But you have to make sure your editor uses real tabs (not spaces expanded to tab widths) as makefiles need real tabs. - [[User:Progo|Progo]] 05:27, 21 May 2007 (UTC)
+
:Never mind; it seems I merely forgot to install the make component. [[User:Dr. 8-Bit|Dr. 8-Bit]] 16:34, May 6, 2010 (UTC)
  
 +
== Windows ==
  
==
+
I keep getting an error when compiling with tty graphics:
Windows ==
 
  
 +
process_begin: CreateProcess(NULL, windres -oo/console.o --include-dir ../sys/winnt -i ../sys/winnt/console.rc, ...) failed
 +
make (e=2): The system cannot find the file specified.
 +
ming32-make: *** [o/console.o] Error 2
  
I keep getting an error when compiling with tty graphics:
+
Does anyone know what I can do to fix the problem? -Thanks, [[User:JDGKruse|JDGKruse]] 04:21, June 1, 2010 (UTC)
 
 
 
 
  process_begin: CreateProcess(NULL, windres -oo/console.o --include-dir ../sys/winnt -i ../sys/winnt/console.rc, ...) failed
 
 
 
 
 
  make (e=2): The system cannot find the file specified.
 
 
 
 
 
  ming32-make: *** [o/console.o] Error 2
 
 
 
 
 
Does anyone know what I can do to fix the problem? -Thanks, [[User:JDGKruse|JDGKruse]] 04:21, June 1, 2010 (UTC)
 
 
 
 
 
==
 
OS X ==
 
 
 
 
 
 
 
This is my first time ever compiling anything more complicated than "Hello World", and I've never touched the command line outside of Windows before, so I'm sure I'm missing plenty, but the instructions didn't work for me and this is how I fixed it: I spent several hours working out that two lines of
 
 
 
 
 
 
 
E int FDECL(srandom, (unsigned int));
 
 
 
 
 
 
 
need to be commented out in system.h to get it to compile.
 
 
 
 
 
 
 
Also, the given permissions didn't work so I just set all to 777 and they did (...again, noob; correct me if you know better, and the given instructions didn't work on any of these counts). And don't forget to add /usr/games to your $PATH and bash profile. Currently trying to use these instructions to compile SlashEM, too.
 
 
 
 
 
 
 
-adamlouis[at]gmail.com
 
 
 
 
 
 
 
PS: Ah! http://nethack.wikia.com/wiki/Pkgsrc
 
 
 
 
 
==
 
Could someone update the Windows section? ==
 
 
 
 
 
 
 
MinGW is now at version 5.1.6; the article needs to be updated to reflect this, since the current instructions don't work for 5.1.4 (the earliest still-available version). [[User:Dr. 8-Bit|Dr. 8-Bit]] 01:28, April 19, 2010 (UTC)
 
 
 
 
 
:
 
Never mind; it seems I merely forgot to install the make component. [[User:Dr. 8-Bit|Dr. 8-Bit]] 16:34, May 6, 2010 (UTC)
 

Revision as of 11:11, 1 June 2010

I tried to download MinGW, and WinRAR said that w32api-3.9.tar within the .tar.gr file under the current section is corrupt. Am I donwloading the wrong file? --71.225.64.232 14:44, 29 April 2007 (UTC)

.tar.gz is not a rar-file. WinZip (at least) knows how to open .tar.gz files. --Paxed 15:15, 29 April 2007 (UTC)
Also, you don't need to download any .tar.gz files; there's a MinGW-5.1.3.exe that you want. --Paxed 15:20, 29 April 2007 (UTC)
Oh, guess I was grabbing the wrong file. Thanks a ton. --71.225.64.232 21:36, 29 April 2007 (UTC)

How do I open Makefile.gcc so I can get NetHack on graphical mode? 69.109.231.64 22:48, 20 May 2007 (UTC)

Makefile.gcc is a plain ASCII text file, you can open it with notepad or any editor of your choice. But you have to make sure your editor uses real tabs (not spaces expanded to tab widths) as makefiles need real tabs. - Progo 05:27, 21 May 2007 (UTC)

OS X

This is my first time ever compiling anything more complicated than "Hello World", and I've never touched the command line outside of Windows before, so I'm sure I'm missing plenty, but the instructions didn't work for me and this is how I fixed it: I spent several hours working out that two lines of

E int FDECL(srandom, (unsigned int));

need to be commented out in system.h to get it to compile.

Also, the given permissions didn't work so I just set all to 777 and they did (...again, noob; correct me if you know better, and the given instructions didn't work on any of these counts). And don't forget to add /usr/games to your $PATH and bash profile. Currently trying to use these instructions to compile SlashEM, too.

-adamlouis[at]gmail.com

PS: Ah! http://nethack.wikia.com/wiki/Pkgsrc

Could someone update the Windows section?

MinGW is now at version 5.1.6; the article needs to be updated to reflect this, since the current instructions don't work for 5.1.4 (the earliest still-available version). Dr. 8-Bit 01:28, April 19, 2010 (UTC)

Never mind; it seems I merely forgot to install the make component. Dr. 8-Bit 16:34, May 6, 2010 (UTC)

Windows

I keep getting an error when compiling with tty graphics:

process_begin: CreateProcess(NULL, windres -oo/console.o --include-dir ../sys/winnt -i ../sys/winnt/console.rc, ...) failed
make (e=2): The system cannot find the file specified.
ming32-make: *** [o/console.o] Error 2

Does anyone know what I can do to fix the problem? -Thanks, JDGKruse 04:21, June 1, 2010 (UTC)