Skip to main content

Questions tagged [makefile]

The tag has no usage guidance.

2 votes
1 answer
4k views

Can't use Makefile on a mac. Whether tab or 4 spaces the error is: " *** missing separator. Stop."

I am using an M1 powered mac. I am trying to use makefile in a project and to my surprise, no matter what I do it ends being a missing separator error. my Makefile below won't run no matter what. I ...
black sensei's user avatar
-1 votes
1 answer
259 views

Why don’t make check the timestamp when the dependency file is not generated?

I create an ugly Makefile, it worked beyond my expectations. When main.o is not built successfully, the executable is built every time I make. In my opinion, after the main.o target command is ...
chen zhang's user avatar
-1 votes
1 answer
15k views

What exactly cmake say: /usr/bin/ld: cannot find -ledit or /usr/bin/ld: cannot find -lcurses?

I am using ubuntu 20.04. I am doing debugging of building with cmake. What exactly cmake say: /usr/bin/ld: cannot find -ledit, i.e.what is ledit? What is /usr/bin/ld: cannot find -lcurses exactly? I ...
Dmitriy Ogureckiy's user avatar
2 votes
1 answer
6k views

Makefile with source command not working

I have the following Makefile env: source venv/bin/activate When I do make env to activate a python virtual env, I'm getting the following error source venv/bin/activate make: source: No such ...
user1187968's user avatar
0 votes
1 answer
3k views

Variables not being set in Makefile

I have to set the profile variable in Makefile, if it's not set by default, here is my approach. But when I run this, echo statements work fine, but variables are not being set. set_vars: if [ &...
DilLip_Chowdary's user avatar
5 votes
1 answer
6k views

cd in a Makefile doesn't seems to be taken into account after sshfs

I have a Makefile with a sshfs command followed with a cd command: mr: # mount-remote sshfs -p 5022 -o nonempty [email protected]:mnt /home/julien/myworking_path cd ./...
JKHA's user avatar
  • 189
0 votes
0 answers
74 views

Makefile: Why command sequece is executed before call it?

Below makefile, ${PATH}/CMD0.log is generated by CMD0. check_file is command sequence to check warnings from CMD0.log. First it will check if CMD0.log exists. When run make clean; make, it shows CMD0....
Fisher's user avatar
  • 697
1 vote
1 answer
3k views

A try to write a batch script to find all the .c files in the current directory and compile them

I was trying to write a make analog in windows, using batch files But I am a noob in batch scripting, here is my try - I am trying to make a batch script which fill find all the .c files in the ...
armangrewal007's user avatar
2 votes
0 answers
1k views

GnuMake SHELL under windows

I am trying to make a simple makefile (GNU Make 3.81) work under windows, using cygwin installed with the git-for-windows "distro". Everything seems to work, but the SHELL. It always shows &...
gcb's user avatar
  • 5,021
0 votes
1 answer
967 views

Capture output of powershell command in makefile on windows

I'm trying to create a Makefile that will work on both windows and unix-based operating systems. (For reference, the windows version of make it should work with can be found here). As part of the ...
qwertycomputer's user avatar
0 votes
0 answers
521 views

Kali Linux won't install Wise Tiger Wireless Adapter Driver

I have currently dual booted Kali Linux and I have a Wise Tiger WT-AC9006 wireless adapter. I have downloaded the driver from the company site and attempted to install it via the command line: ./...
bballboy8's user avatar
  • 101
1 vote
2 answers
9k views

RPC header not found despite being installed

I'm trying to install MB-system on my Arch Linux machine. I installed all necessary dependencies and have the package libtirpc installed. When running the configure script, it ends with: checking rpc/...
Turtle10000's user avatar
0 votes
0 answers
214 views

How to fix cmake error on payday 2 super blt source in debian buster

I have debian 10 running on a virtual machine inside windows 10. I have installed build-essential, openssl, libssl-dev, libcurl4-openssl-dev, and cmake. I am trying to have cmake generate a makefile ...
hackall360's user avatar
0 votes
1 answer
2k views

Can one make symlinks in Makefiles that work on Linux and Windows?

I have a project comprised of tasks. Each task has three subdirectories: input, code, and output. In the code directory resides a Makefile with the recipes needed to make the output from the code and ...
Levi Crews's user avatar
1 vote
0 answers
84 views

DMX4LINUX drivers wont build properly

I am currently troubleshooting a situation in which I am trying to build drivers for ENTECC'S Open DMX to usb converter. I am currently building this on a Raspberry Pi 3, using the pre release ...
gooseinmyway's user avatar
0 votes
1 answer
71 views

autotools dosnt create Makefile.im or Makefile on new computer

So i have a problem compiling my software project on my new computer. Unfortunately my old computer is broken and i have to use the new one. My Problem is, that i cant build my software project the ...
Bertram's user avatar
1 vote
1 answer
3k views

cocotb-config: command not found

Im running into an issue with cocotb make files cant be found?? $ git clone https://github.com/potentialventures/cocotb Cloning into 'cocotb'... $ cd cocotb/examples/endian_swapper/tests $ make ...
Christian Morsing's user avatar
5 votes
1 answer
9k views

Install R 3.5.2 under Ubuntu: "jni.h: No such file or directory"

I have a problem with installing the newest version of R, an error "fatal error: jni.h: No such file or directory" that I don't understand appeared. Here is what I did before getting an error in the ...
Aimeric Dabin's user avatar
0 votes
1 answer
79 views

Has anyone managed to build the STAF framework on raspberry pi with os raspbian v9?

STAF (Software Testing Automation Framework) is a open source framework for testing automation http://staf.sourceforge.net/index.php. It is supported for several platform but not yet for raspberry, ...
Paolo Branca's user avatar
0 votes
1 answer
63 views

Trying to compile Asylia via its makefile, with MinGW... Wrong compiler? How to fix?

I'm trying to compile Asylia via its makefile, with MinGW... Am I using the wrong compiler? It's seems MinGW is getting stuck on the square brackets in "$(BUILD):"... And square brackets in MinGW are ...
Malady's user avatar
  • 187
-4 votes
1 answer
382 views

What does 'xxx' mean in Makefile? [closed]

I'm trying to looking for the meaning of 'xxxxxx' in Makefile as the below example. ## Variables and scripts NCROOT = `ncroot` TEST_NAME = apb_uart_rx_tx what is the ncroot? Is ...
al01's user avatar
  • 1
0 votes
1 answer
38 views

Is this make behavior expected?

My folder structure looks like this: . ├── app.c ├── inc │   ├── butil.h │   └── libs │   ├── flagutil.h │   ├── libflagutil.c │   └── libflagutil.o └── Makefile My Makefile looks like ...
Bogdan M.'s user avatar
  • 115
0 votes
1 answer
671 views

Failed to compile with make command

I'm working on cygwin. Most Unix commands work just fine. Also I can compile with g++ and gcc, but I get the error below when I execute make: /cygdrive/b/tpm/src $ make -f makefile.mak "c:/program ...
user avatar
1 vote
1 answer
1k views

configure command doesn't generate Makefile?

Here is my code: ubuntu@ubuntu:~/tpm2-tss$ ./configure --enable-unit checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file ...
user avatar
1 vote
2 answers
277 views

Linux From Scratch [closed]

I am currently doing Linux From Scratch.I downloaded some packages.I unzip them using the "tar" command and do the following inside that extracted package: configure make make test make install One ...
PRANAY KASTHALA's user avatar
2 votes
1 answer
730 views

Use variable inside of command in Makefile

Let's say the LINK variable contains the following: 1a2b3c. I'd like to display Full path: /home/build/1a2b3c. PWD is currently at /home; I can't get the following to work: @echo "Full path: $(...
Karl Morrison's user avatar
3 votes
0 answers
3k views

How to port $(shell find . -name '*.cpp') on windows?

I have this in makefile: # find cpp files in subdirectories SOURCES := $(shell find . -name '*.cpp') So I wanted to make generic FIND command that behaves correctly on windows and linux: ifeq ($(OS)...
Tomáš Zato's user avatar
  • 4,524
0 votes
1 answer
400 views

Unable to use make when building fbida (fbi) from source

I am trying to install fbida (Fbi), framebuffer image viewer, on Ubuntu 16.04. I am trying to build from source fbida v2.13 (www.kraxel.org/releases/fbida/) since when I do install using sudo apt-get ...
Zythyr's user avatar
  • 271
1 vote
2 answers
187 views

Why Make keeps creating directory over and over?

i have a makefile that creates some docs from my source: /home/share/htdocs: #installs apache and make sure we have /htdocs... /home/share/htdocs/doxjs: /home/share/htdocs mkdir -p $@ chgrp ...
gcb's user avatar
  • 5,021
4 votes
2 answers
6k views

Send env to a makefile target

I am trying to set an env var which is git sha1 commit for a makefile target. I am setting a lot of env vars and only this fails with no such file or directory error. I am hell confused. Please help ...
Medhamsh's user avatar
  • 303

15 30 50 per page