Author Topic: CodeBlocks + Pdcurses  (Read 4676 times)

Offline ppnl

  • Single posting newcomer
  • *
  • Posts: 7
CodeBlocks + Pdcurses
« on: January 09, 2023, 06:11:26 am »

I'm trying to get pdcurses up in codeblocks and have hit a snag. I'm useing this tutorial:

https://www.youtube.com/watch?v=mYnfix8ruAo&t=300s

I get to the point where it asks me to change to a win32 directory with:

C:\program files\CodeBlocks\pdcurses-3.8>cd win32

But there is no win32 directory.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: CodeBlocks + Pdcurses
« Reply #1 on: January 09, 2023, 11:58:35 pm »
have you build pdcurses?

Offline ppnl

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks + Pdcurses
« Reply #2 on: January 10, 2023, 01:47:39 am »
No I have not. That is the next step after changing to the directory that I want it in I think.

But I think I have it figured out. I read down the comments after the video and someone mentioned that as of 2020 the directory name is wincon. I have that. It is a 14 year old tutorial so I suppose it isn't a surprise that something has changed.

It seems like every time I try to do something of any complexity at all on a computer I trip over some trivial detail. Even registering on this forum. One of the robot questions was "what is the number one greater than the current year?" The answer would be 2024 right? Nope. The question was out of date and the answer was 2023. Sometimes I just give up.

Anyway I will give it another try. Thanks for the input.

Offline ppnl

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks + Pdcurses
« Reply #3 on: January 10, 2023, 03:10:40 am »

Ok, next problem. I'm trying to compile it and the command the tutorial gives isn't working. The command they give is:

mingw32-make -f mingwin32.mak

I get errors:

mingw32-make: mingwin32.mak: No such file or directory
mingw32-make: *** No rule to make target 'mingwin32.mak'.  Stop.

I checked the MinGW\bin directory. There is a mingw32-make.exe there. There is no mingwin32.mak.


Offline nenin

  • Almost regular
  • **
  • Posts: 228
Re: CodeBlocks + Pdcurses
« Reply #4 on: January 11, 2023, 07:30:36 am »
There is no mingwin32.mak.
mingwin32.mak should be somewhere in project directory, this is a make file or the part of the make file.

Offline ppnl

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks + Pdcurses
« Reply #5 on: January 11, 2023, 09:16:33 am »

I'm doing this from a command prompt. I extracted the pdcurses.zip to c:\program files\codeblocks\pdcurses-3.8

Is that where mingwin32.mak should be? I have searched the entire computer and there does not seem to be a file by that name anywhere.

Is this file downloaded in pdcurses.zip or is it suppose to be created in the process?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: CodeBlocks + Pdcurses
« Reply #6 on: January 11, 2023, 10:32:33 am »
Following the instructions here you need to write just
Code
mingw32-make

Building external libraries is OT here.

Offline ppnl

  • Single posting newcomer
  • *
  • Posts: 7
Re: CodeBlocks + Pdcurses
« Reply #7 on: January 11, 2023, 06:13:45 pm »
Off topic? I'm not sure why setting up pdcurses for codeblocks is off topic. And after searching the forum it is an issue that has been addressed before. Unsuccessfully apparently.

But ok, whatever. I will search for help elsewhere. 

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: CodeBlocks + Pdcurses
« Reply #8 on: January 11, 2023, 06:19:43 pm »
The original question is not OT, but building the library itself is.