Gmake command throws Error

  • viji19812001
  • Newbie
  • Newbie
  • viji19812001
  • Posts: 10

Post 3+ Months Ago

Hi sir,

Iam trying to run the following installation steps given below and I seem to face a problem. Can you please suggest a solution.

Installation step2-----------------------

- Using gmake.exe built in step 1, run (at top level) in the dos
window (here you need perl.exe in your path, it can be found in the
cygwin directory 'c:\cygwin\bin')

---> gmake.exe WIN32



Ok so here I had the gmake.exe built in the step1 copied to the top directory.
Also copied c:cgywin/bin to the path varaible from control pane->system ->Environment variables as that path contains perl.exe.
Also win32 is a directory created under the top level.

Once I run the command the output shows the following error:


gmake target=WIN32 DIRECTORY=win32 portable copyrite headrlib argfile postlink

gmake[1]: Entering directory `C:/optv_sdk32_gnu_cd'
perl utils/check_dir.pl portable/win32 gmake --no-print-directory -C portable WI
N32
'gmake' is not recognized as an internal or external command,
operable program or batch file.
gmake[2]: *** [WIN32] Error 1
gmake[1]: *** [portable] Error 2
gmake[1]: Leaving directory `C:/optv_sdk32_gnu_cd'
gmake: *** [WIN32] Error 2


Do we need to have read write permission for the win32 directory as rite now it shows as read only.
Please let me know what needs to be done as Iam not able to proceed further.

Regards,
vijaya.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I don't know what step 1 says but if Windows is telling you that gmake is not a recognized command, then either it wasn't installed correctly or you have to run it from the root directory. In other words cd \ first.

The other thing that I'm not sure of is, does cygwin have to be running?
  • viji19812001
  • Newbie
  • Newbie
  • viji19812001
  • Posts: 10

Post 3+ Months Ago

Hi,

Thanks for the response.

I would like to explain in brief as to what iam trying to do , so that you could help me better.

Iam trying to install the opentv (interactive tv)
kit for which I need to follow the instructions given below:

Step1:
Install Cygwin development environment.set PATH=c:\cygwin\bin;%PATH%.
(Step completed)

Step2:
setup Visual C++ to be able to compile under DOS.
Run the following commands in the dos window:
---> cd make-3.81
---> nmake /f NMakefile

this will build WinRel/make.exe
(Step completed)

Step3:
Using gmake.exe built in step 1, run (at top level) in the dos
window (here you need perl.exe in your path, it can be found in the
cygwin directory 'c:\cygwin\bin')

---> gmake.exe WIN32

this will build postlink\win32\postlink.exe

(this is not working...can you explain as to what needs to be done excatly)

Do we need to use the make.exe which was built in step1. If yes then how it needs to be given.
Also does it mean we need to add the path of perl.exe in our path variable.

Please help me in executing the step.

Regards,
vijaya.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Yes, it looks like the command should be make instead of gmake.

If I run: man gmake on my unix box, I get:

$ man gmake
MAKE(1) LOCAL USER COMMANDS MAKE(1)



NAME
make - GNU make utility to maintain groups of programs

SYNOPSIS
make [ -f makefile ] [ options ] ... [ targets ] ...


Even though I asked for the manual page for gmake, the command is given as make -f blah

That's why I think you saw that error. I would also have cgywin running at the same time.
  • viji19812001
  • Newbie
  • Newbie
  • viji19812001
  • Posts: 10

Post 3+ Months Ago

Hi,

Iam actually running all this on my windows xp machine.

also when i try giving make instead of gmake i get the following error:

C:\optv_sdk32_gnu_cd>make.exe win32
C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/make.exe target=WIN32 DIRECTORY=win32 po
rtable copyrite headrlib argfile postlink
make.exe[1]: Entering directory `C:/optv_sdk32_gnu_cd'
perl utils/check_dir.pl portable/win32 C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/m
ake.exe --no-print-directory -C portable WIN32
------------ portable.obj -----------------------
echo -D__win32__ /Ox -I../../portable > compile.tmp
cl @compile.tmp /c /MT /Gd /TC ../portable.c
process_begin: CreateProcess((null), cl @compile.tmp /c /MT /Gd /TC ../portable.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: *** [portable.obj] Error 2
make.exe[2]: *** [WIN32] Error 2
make.exe[1]: *** [portable] Error 2
make.exe[1]: Leaving directory `C:/optv_sdk32_gnu_cd'
C:\Symbian\9.2\S60_3rd_FP1\epoc32\tools\make.exe: *** [win32] Error 2


Not sure why Iam getting this error...it says file cant be found...but not able to figure out which file it is mentioning abt.
Also win32 is a readonly directory....and any directory when I try changing it to read-write by unchecking the button it returns back to readonly...Could the readonly attribute be a problem for the above command giving error.

Regards,
vijaya.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I understand that you are running the commands from a Windows command prompt. You made progress because we see that the command is make and not gmake. Now, it's a question of the make command seeing all that's needed for it to run.

The first problem is the no print directory error. We need to get all the options for make so try
make /? See if it lists the options.

If I were getting an error in Unix, I would try make -i which would tell it to ignore that error. Sometimes it works and sometimes it doesn't. I see a -w option it the man page.

http://unixhelp.ed.ac.uk/CGI/man-cgi?make

That's the Unix man page. I don't know if it's the same under your circumstances.
  • viji19812001
  • Newbie
  • Newbie
  • viji19812001
  • Posts: 10

Post 3+ Months Ago

Hi,
Thanks for the response.

The commands are the same for windows also. tried a couple of options.Even when I give make -i to ignore the errors I get the following output.

C:\optv_sdk32_gnu_cd>make -i win32

C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/make.exe target=WIN32 DIRECTORY=win32 po
rtable copyrite headrlib argfile postlink
make.exe[1]: Entering directory `C:/optv_sdk32_gnu_cd'
perl utils/check_dir.pl portable/win32 C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/m
ake.exe --no-print-directory -C portable WIN32
------------ portable.obj -----------------------
echo -D__win32__ /Ox -I../../portable > compile.tmp
cl @compile.tmp /c /MT /Gd /TC ../portable.c
process_begin: CreateProcess((null), cl @compile.tmp /c /MT /Gd /TC ../portable.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: [portable.obj] Error 2 (ignored)
lib /OUT:portable.lib portable.obj
process_begin: CreateProcess((null), lib /OUT:portable.lib portable.obj, ...) fa
iled.
make (e=2): The system cannot find the file specified.
make.exe[3]: [portable.lib] Error 2 (ignored)
perl utils/check_dir.pl copyrite/win32 C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/m
ake.exe --no-print-directory -C copyrite WIN32
------------ copyrite.obj -----------------------
echo -D__win32__ /Ox -I../../copyrite > compile.tmp
cl @compile.tmp /c /MT /Gd /TC ../copyrite.c
process_begin: CreateProcess((null), cl @compile.tmp /c /MT /Gd /TC ../copyrite.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: [copyrite.obj] Error 2 (ignored)
perl utils/check_dir.pl headrlib/win32 C:/Symbian/9.2/S60_3rd_FP1/epoc32/tools/m
ake.exe --no-print-directory -C headrlib WIN32
------------ headrlib.obj -----------------------
echo -D__win32__ /Ox -I../../portable -I../../file64 > compile.tmp
cl @compile.tmp /c /MT /Gd /TC ../headrlib.c
process_begin: CreateProcess((null), cl @compile.tmp /c /MT /Gd /TC ../headrlib.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe[3]: [headrlib.obj] Error 2 (ignored)

make (e=2): The system cannot find the file specified.
make.exe[3]: [compchck.obj] Error 2 (ignored)
make.exe[3]: *** No rule to make target `../../copyrite/win32/copyrite.obj', nee
ded by `postlink.exe'. Stop.
make.exe[2]: [WIN32] Error 2 (ignored)
make.exe[1]: Leaving directory `C:/optv_sdk32_gnu_cd'

Please let me know if u can figure out a way to remove these errors.
Error looks very similar for all folders...saying "specified file cant be found".

Regards,
vijaya.
  • viji19812001
  • Newbie
  • Newbie
  • viji19812001
  • Posts: 10

Post 3+ Months Ago

Hi,

Actually from the link that u sent i tried make -k option and now it complied and gave me the exe I wanted. Thanks for that information.

Also I need gcc.exe and gcc-dos.exe files to be saved in my bin how do i get them.

Can u please suggest.

Regards,
vijaya.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I'm glad the answer was on that site. However, you are trying to port a lot if Unix things to Windows, which doesn't always work.

http://sourceforge.net/projects/gcw/
http://gcc.gnu.org/


Look at those. ^^

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 74 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.