I encountered this error when I was running my makefile:
clean: cleanlib
cleanlib:
( cd "D:\third party components\arpack96\ARPACK\BLAS"; "D:\third party components\arpack96\ARPACK\make" clean )
The command I use to run the make file is
make clean
This is incomprehensible, as both the paths are actually available on my machine ...
I am a newbie to DirectX SDK, Platfrom SDK and DirectShow. I downloaded latest Platform SDK and DirectX SDK August'09. I tried to build sample project in folder:
Microsoft Platform SDK\Samples\Multimedia\DirectShow\Capture\PlayCap\
And had following building errors:
LINK : fatal error LNK1181: cannot open input file 'D:\Program F...
I have a Makefile of the following content:
NUMBERS = 1 2 3 4
lib:
$(foreach var,$(NUMBERS),./a.out $(var);)
And this is the command that I run ( in the same directory as the Makefile)
make -f Makefile
But I got an error message saying that "The system cannot find the file specified".
Following the suggestion of one of the an...
I have a very simple makefile:
all:
@for i in 1 2 3;\
do \
echo "i: $$i";\
done
And yet when I run this, I got a "i was unexpected at this time" error.
Any idea why this is the case?
I am running on Windows XP. What's the Windows equivalent for the above script?
...
I need execute some make rules conditionally, only if the Python installed is greater than a certain version (say 2.5).
I've thought that I could do something like executing
python -c 'import sys; print int(sys.version_info >= (2,5))'
and then using the output ('1' if ok, '0' otherwise) in a ifeq make statement.
In a simple bash she...
I've spend the morning figuring out how in a makefile to do a shared library install under Linux.
So that's fine; I now have my shared object and a pair of soft links to it, one of which was created by ldconfig and one by me.
Now, I can also build my library as a static library.
When I check /usr/lib, I see the .a files there just bei...
I'm looking for a make system, along the lines of CMake or Bakefile, that supports the generation of Visual Studio project files and makefiles (targetting Linux) dual targeting x86 and x64 (in the same project/make file).
I've looked at CMake and Bakefile and they both appear to have limitations in this respect; they both appear to not ...
I develop C/C++ using the Eclipse IDE. Eclipse also generates a makefile which I don't want to edit as it will simply be overwritten.
I want to use that makefile for nightly build within Hudson.
How do I pass #defines which are made in the project file of the IDE to the makefile ? (and why doesn't Eclipse already include them in the g...
This is a similar question to the one I ask here. I am running on Windows XP.
I am trying to get for loop to work on Windows. Following the suggestion that I have to make sure that the command are valid cmd command, I constructed a valid for loop batch command:
@echo off
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09...
is there a tool to generate a makefile out of a visual studio Solution?
...
Is there a way to get GNU make to work correctly with filenames that contain colons?
The specific problem I'm running into happens to involve a pattern rule. Here's a simplified version that does not depend on cutting and pasting tab characters:
% make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is ...
I'm using Netbeans on Linux (Ubuntu 9.04) to build a C project.
How do I pass in an environment variable so that's it's visible to the Makefile?
If I do a normal export MYVAR="xyz" and then run make from the command line this works fine of course.
But Netbeans doesn't seems to use the .bashrc environment, so if I click "build" in Netb...
Hello
Most linux apps are compiled with
make
make install clean
As i understood, make takes names of build targets as arguments. so "install" is a target that copies some files and after that "clean" is a target that removes temporary files.
But what target "make" will build if no arguments are specified (first command in my example...
What do the make and shell option mean in g77? For example, if I have the following script in my Makefile:
FC = g77
FFLAGS = -O2 -mno-cygwin
LDFLAGS =
CD = cd
LN = ln
LNFLAGS = -s
MAKE = /bin/make
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
Does this mean that make operation needs to make use of /bin/make.exe?
On a side note: when I run the...
This is slightly off-topic, but can only be answered by programmers and is useful to many programmers:
Do you think it is useful to use a bug tracking system to keep track of personal todo items and to Get Things Done? I have not tried that; in fact, I don't have much experience with bug tracking systems. For my todo lists, I have playe...
Hello,
gcc 4.4.2 c89
I have written this Makefile. I am wondering is it a good design and easy to maintain?
I thing I am thinking about is that cltsvr_ults.o gets linked with both the SVR_OBJECTS and CLT_OBJECTS. Does this look correct?
Many thanks for any suggestions,
# ------------- SOURCE FILE ------------------------
SVR_OBJECTS...
There is a number of unit test frameworks for most of the languages, but I haven't come across a unit test for GNU make. It has conditionals, loops (the $(foreach ...) statement), and allows to write pretty sophisticated code. The examples might be things like BSD ports, GARNOME, and OpenCSW GAR.
There's also a debugger for GNU make....
My makefile fails with error:
Makefile:34: *** multiple target patterns. Stop.
What does it really mean, how can I fix this?
(GNU make manual, written by Captain Obvious, isn't helping).
Found it. I had rule in form:
$(FOO): bar
where FOO was set from shell command that polluted it with error message that contained a colon.
...
Hi,
I am looking at C makefile, and I have a question.
I know that 'make a' will make the target a, which is supposed to be defined in the makefile.
I want to know whether the target name itself can be supplied as an argument to make.
i.e. this is what I want to do:
$(target_name) is the name supplied to command 'make'. For example...
I want to find all .c files under a directory and add them all to SRC files to compile in cmake. How can I do this in CMakeList.txt.
for regular makefiles I can create
SPECIFIED_SRC_FILE = $(foreach d,$(SPECIFIED_SRC_DIRS),$(wildcard $(addprefix $(d)/,.c)))
bu I couldn't get how to do something like this in CMakeList.txt.
Thank you...