Author Topic: Please Help me for importing VC6 project files of NetHack  (Read 5825 times)

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
Please Help me for importing VC6 project files of NetHack
« on: August 29, 2008, 05:05:20 am »
Hello all respected developer:

When I tried to import VC6 workspace and project files of NetHack 3.4.3, I found the newest nightly build of Code::Blocks can't handle some commands well.

Code::Blocks seems not to import the "PostBuild_Cmds" and "Cmd_Line" commands. Could someone add this commands support? If Code::Blocks can also support to converting nmake makefiles to mingw32-make makefiles automatically, it will be very wonderful!

Another question is, will Code::Blocks make plan for supporting building others languages like assembler or Java? Thanks for answering very much!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Please Help me for importing VC6 project files of NetHack
« Reply #1 on: August 29, 2008, 08:54:59 am »
What I see in the first trial when opening the workspace is this:
Project: "NetHackW"=.\build\NetHackW.dsp - Package Owner=<4>
in the workspace file which is wrong as the patch "build" does not exist (and the dsp file has a different case).

It seems those files are not really up-to-date which is bad. So it  might not even be an error with C::B but with a broken project file. But I'll see what I can do...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline courage

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Please Help me for importing VC6 project files of NetHack
« Reply #2 on: August 29, 2008, 10:10:14 am »
What I see in the first trial when opening the workspace is this:
Project: "NetHackW"=.\build\NetHackW.dsp - Package Owner=<4>
in the workspace file which is wrong as the patch "build" does not exist (and the dsp file has a different case).

It seems those files are not really up-to-date which is bad. So it  might not even be an error with C::B but with a broken project file. But I'll see what I can do...

Hi Morten:

In order to compile nethack343 with Code::Blocks on windows, I excute "\sys\winnt\nhsetup.bat" first, then it will copy nethack VC6 workspace file in the nethack root directory, make build directory, and copy all the necessary VC6 project files and nmake makefiles into the build directory. Please see: http://nethack.wikia.com/wiki/Compiling

Besides copy and change the include file "rpcndr.h" form mingw32 into nethack include directory, we also should define macro _WIN32_IE >= 0x0300 in nethackw project file to let "win/win32/mhmenu.c" passed.

I could build some parts of nethack projects with code::blocks, but I found code::blocks doesn't import the shell commands to excute files after building. I see that code::blocks seems to ignore the dependency of these projects when importing VC6 workspace file. Please see: http://nethack.wikia.com/wiki/Makedefs. We have to build makedefs first to create some files that project nethackw needs, but when I press "build workspace" in code::blocks, it will build nethackw project first.

Thanks for your concernning.

« Last Edit: August 30, 2008, 05:13:51 am by courage »