Help setting up make

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
anaheimgary
Posts: 1
Joined: Sat Jul 11, 2009 7:20 pm

Help setting up make

Post by anaheimgary »

I am evaluating Zeus. So far I like everything very much (especially the Python scripting).

The only thing I can't get set up to my needs is project building.

I have a "sample" C++ project and a valid makefile. I use the Mingw compiler to make the code. I think I have all the paths set up correctly. I can make the project from the command line (see output below). I cannot make from Zeus. I appear to be invoking the makefile correctly, but I get these process_easy: DuplicateHandle(In) failed (e=6) messages.

Has anybody seen this before???


Result of running make from command line
========================================

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Users\Gary\DspsEmulator>make
g++ -c -o bin\Debug\DspsEm_main.o -O0 -g -Iinc -MTbin\Debug\DspsEm_main.o -MFbin\Debug\DspsEm_main.o.d -MD main.cpp
g++ -c -o bin\Debug\DspsEm_DataProcessor.o -O0 -g -Iinc -MTbin\Debug\DspsEm_DataProcessor.o -MFbin\Debug\DspsEm_DataProcessor.o.d -MD src/DataProcessor.cpp
g++ -c -o bin\Debug\DspsEm_FileSet.o -O0 -g -Iinc -MTbin\Debug\DspsEm_FileSet.o -MFbin\Debug\DspsEm_FileSet.o.d -MD src/FileSet.cpp
g++ -c -o bin\Debug\DspsEm_Globals.o -O0 -g -Iinc -MTbin\Debug\DspsEm_Globals.o -MFbin\Debug\DspsEm_Globals.o.d -MD src/Globals.cpp
g++ -c -o bin\Debug\DspsEm_MatchedFilter.o -O0 -g -Iinc -MTbin\Debug\DspsEm_MatchedFilter.o -MFbin\Debug\DspsEm_MatchedFilter.o.d -MD src/MatchedFilter.cpp
g++ -c -o bin\Debug\DspsEm_Replica.o -O0 -g -Iinc -MTbin\Debug\DspsEm_Replica.o -MFbin\Debug\DspsEm_Replica.o.d -MD src/Replica.cpp
g++ -o bin\Debug\DspsEm.exe bin\Debug\DspsEm_main.o bin\Debug\DspsEm_DataProcessor.o bin\Debug\DspsEm_FileSet.o bin\Debug\DspsEm_Globals.o bin\Debug\DspsEm_MatchedFilter.o bin\Debug\DspsEm_Replica.o -g


Result of running make from Zeus
================================


--------------------------------------------------------------------------
Zeus for Windows Programmers Editor - Version 3.97
Copyright (c) Xidicone P/L 1993-2009. All rights reserved.
--------------------------------------------------------------------------
**** Unregistered Software. To be used for evaluation purposes only. ****
--------------------------------------------------------------------------

--------------------Configuration: Inc - Debug--------------------
g++ -c -o bin\Debug\DspsEm_main.o -O0 -g -Iinc -MTbin\Debug\DspsEm_main.o -MFbin\Debug\DspsEm_main.o.d -MD main.cpp
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
g++ -c -o bin\Debug\DspsEm_main.o -O0 -g -Iinc -MTbin\Debug\DspsEm_main.o -MFbin\Debug\DspsEm_main.o.d -MD main.cpp
Counted 11 args in failed launch
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

To do this you would need to setup a workspace and use it to run the makeFrom the output below it appears you have already figured out how to configure theWorkspace so just ignore the above ;)
--------------------Configuration: Inc - Debug--------------------
g++ -c -o bin\Debug\DspsEm_main.o -O0 -g -Iinc -MTbin\Debug\DspsEm_main.o -MFbin\Debug\DspsEm_main.o.d -MD main.cpp
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
g++ -c -o bin\Debug\DspsEm_main.o -O0 -g -Iinc -MTbin\Debug\DspsEm_main.o -MFbin\Debug\DspsEm_main.o.d -MD main.cpp
Counted 11 args in failed launch
The DuplicateHandle error has been reported before and from what I can tell this error is caused by the GNU make doing something strange things to the stdout handle. See this link for more details:

http://www.zeusedit.com/forum/viewtopic.php?t=204

To work around to this problem is to wrap the make command inside a batch file like this:

http://www.zeusedit.com/forum/viewtopic.php?t=174

Cheers Jussi
Post Reply