Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

How do you build Open-Source projects from source?

OpenStudy (anonymous):

Say I've downloaded the NetHack source and just changed one line in there, and I want to build the application. How is that done?

OpenStudy (llib_xoc):

For many GNU open source projects, there are often just three steps after downloading a tarball: tar -xzf path_to_down_loaded_file.tgz # maybe cd to a sub-directory ./configure make # assuming GNU make Note: this is for *simple* projects. GCC is not simple. This assumes either a Unix or Linux set of tools (shell, awk, sed, etc) because the configure script and Makefiles assume that those tools are available.

OpenStudy (anonymous):

lol

OpenStudy (anonymous):

I'm scratching my head over the instructions to build the NetHack project.

OpenStudy (llib_xoc):

I'll take a look. Where did you get it?

OpenStudy (anonymous):

http://nethack.org/

OpenStudy (anonymous):

http://nethack.org/v343/download-src.html

OpenStudy (llib_xoc):

And what environment are you trying to build it in?

OpenStudy (anonymous):

the windows platform

OpenStudy (llib_xoc):

I'm going to try it on my Powerbook.

OpenStudy (llib_xoc):

Cygwin or MingW?

OpenStudy (anonymous):

mingw building stuff from source is not a trivial task :-D

OpenStudy (llib_xoc):

Yeah. And this is *not*, regrettably, simple. And it hasn't been built with the MAC Xcode IDE... I wonder if it'll build with bare GCC. What version of GCC do you have (not that it *should* be important)

OpenStudy (anonymous):

I don't know what version of mingw I have :(

OpenStudy (anonymous):

lol

OpenStudy (llib_xoc):

OK. I'll look at this for a while, then have a couple of appointments later. I'll give you a status before I go offline. I don't know which would be easier, to convert their MAC notion of projects to Makefiles, or to Xcode, which I don't know very well. Guess I answered that for myself. It's Makefiles. Have you tried it with Visual Studio?

OpenStudy (anonymous):

I don't own visual studio :(

OpenStudy (llib_xoc):

There's a free download on microsoft.com, I've heard.

OpenStudy (anonymous):

I have the visual C++ express edition

OpenStudy (llib_xoc):

It might be easier to use that compiler, as a smarter C compiler. This is looking like I'll have to build Makefiles out of thin air. Did you find any .u files in your distribution?

OpenStudy (anonymous):

I found .uu files

OpenStudy (anonymous):

and a makefile

OpenStudy (llib_xoc):

Did you also download 3.4.3? I tried a find and found uu files but no makefile. Where do you see it?

OpenStudy (llib_xoc):

Got it. sys/unix/Makefile*

OpenStudy (anonymous):

/nethack-3.4.3/sys/

OpenStudy (anonymous):

right

OpenStudy (anonymous):

I'm sure that building the game is still easier than building huge projects like Linux etc.

OpenStudy (llib_xoc):

I'm sure. Never tried that. I've tried GCC many times, and succeeded. Not lately.

OpenStudy (llib_xoc):

OK. make install is running. I'm off to my first appt. See you later.

OpenStudy (anonymous):

I've double clicked on something called a nethack VC++6 workspace

OpenStudy (anonymous):

right, will see you

OpenStudy (anonymous):

Steps to build: sys\winnt\nhsetup.bat Make sure to edit your Makefile to decide if you want GRAPHICAL=Y or GRAPHICAL=N mingw32-make -f Makefile.gcc install Did you try this? It was in the sys/winnt/Install.nt file. It outlines the necessary steps to build and install.

OpenStudy (llib_xoc):

My Unix build got here: cc -o nethack monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o version.o -ltermlib ld: library not found for -ltermlib collect2: ld returned 1 exit status make[1]: *** [Sysunix] Error 1 make: *** [nethack] Error 2 I have to research termlib.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!