Questions tagged [make]

make is a utility that automates the build process by managing dependencies amongst targets.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

gcc build error : cannot find -lssl

Hey all, i am trying to build a project called RamCloud on CentOS Linux release 7.4.1708 this project specifically requires gcc 4.9 and with my centos i only had gcc 4.8 so i had to : completely ...
-1
votes
1answer
39 views

Make issues while installing Fingerprint Feature Extractor software [closed]

I am trying to use an old software that extracts fingerprint data from an image. For the life of me, I cannot get the program to compile. I specifically am trying to run the make command and build the ...
1
vote
2answers
137 views

How to make apt read a different sources.list

I am trying to install a program for my user because I don't have sudo privileges. I tried to install dos2unix package as follows: apt-get source dos2unix ./configure --prefix=$HOME/myapps make ...
0
votes
1answer
833 views

arithmetic operation inside Makefile rules

I need to perform an arithmetic operation inside a bash loop as explained below CYCLE?=3 COUNT=1 download_when_ready: ## Will try the download operations many times till it succeeds or it reaches 10 ...
1
vote
1answer
269 views

How to add dependency to CMakeLists.txt

I am working on an already build shared library. When I run cmake -C $ILCSOFT/ILCSoft.cmake the output says at somepoint: -- Check for FastJet (3.1.2) -- Check for FastJet_LIBRARIES: fastjet -- ...
0
votes
2answers
85 views

Error in bin/sh when installing automake-1.13

I'm attempting to install automake-1.13.4 on my system. First, I do ./configure which creates a Makefile compatible with my system. However, when I execute make, it runs for a bit, but then returns ...
0
votes
2answers
1k views

make multiple targets

I have this Makefile: P5.obj P5.sym: P5.asm lc3as P5.asm I want the assembler to run if either P5.obj or P5.sym are out of date. However, deleting P5.sym does not cause it to be regenerated. ...
2
votes
1answer
2k views

Fedora 27 /usr/bin/ld: cannot find -lstdc++

I have Fedora 27. I am building something from source. (It is https://github.com/xmrig/xmrig-nvidia if that matters). Make gets to linking and then fails with this message: /usr/bin/ld: cannot find -...
2
votes
2answers
2k views

Run build command from vim, send output to another tmux pane?

I'm using tmux and Vim as my development IDE. I have 3 panes open in tmux: one for editing source code, one for debugging and one as a display console. From Vim I would like to run the make command ...
1
vote
0answers
774 views

Trying to build GNU Icecat Browser from tarball in Debian

I got the icecat-52.3.0-gnu1.tar.bz2 file from http://ftp.gnu.org/gnu/gnuzilla/52.3.0/, then followed the directions in the readme as follows: tar xvjf ~/Downloads/icecat-52.3.0-gnu1.tar.bz2 mkdir /...
0
votes
1answer
53 views

Why does GNU make's eval convert a list to a scalar?

I'm trying to to use eval to define a few make variables, but implicitly it seems to convert a list into a scalar. I can't seem to figure out how to avoid this behavior. Here's my current Makefile: ...
2
votes
0answers
603 views

Is there an automatic translator from Makefile to CMakeLists.txt?

I have several inherited projects - on RHEL 7, part of which are created using make, and the rest are utilising cmake. I'm wondering: is there an automatic translator that will take a Makefile as ...
1
vote
1answer
44 views

When should “lib” and “include” directories be built when compiling from source?

I am trying to build binutils on platform A, which will be run on platform A and targets platform B. I have the source of binutils in /home/cedric/source/binutils-2.29/, and I perform the following 2 ...
-1
votes
1answer
1k views

What does exactly does GNU make dep do?

I am trying to understand GNU Make and trying to understand some c code and GNU autotools. There's a folder let's say lib, with three subfolders and a makefile. lib ...libA ...---compile.sh ...---...
1
vote
1answer
57 views

Makefile cppUtest output reformat

I need to reformat the output of a program created with cppUtest during my build from inside a makefile. I have this target in my Makefile: .PHONY: runalltests runalltests: ##@tests Run all tests. ...
-1
votes
1answer
62 views

Reference function in Makefile?

I'm modifying a Makefile to add a command which will be used to update and compile a dependency. I already have the make clean command working. Now I'm trying to make it run before I run any other ...
-4
votes
1answer
986 views

Cannot compile TpLink Archer T9UH adapter drivers on Kali Linux VM [duplicate]

I downloaded the drivers for linux from Tp Link website but when I try to run 'make' command to compile them I get the following error: "NO SKRC,we will use default KSRC" make ARCH=x86_64 ...
0
votes
1answer
59 views

imake on fedora 25 doesn't work

I tried to personalize the Makefile.tmpl makefile.rules and since then I can’t get the imake to run anymore under Fedora 25. The command xmkmf -a gets me the following mv -f Makefile Makefile.bak ...
1
vote
1answer
57 views

mv *.cache.{js,woff} sub_folder - works as shell command but not inside a Makefile

After building something with make I want to move all the files that end in .cache.{js,woff} to a sub folder. (cd $(PFROOT)/PVWR2/gwt/pdfwebviewer/; \ mkdir -p cache_files; \ mv *.cache.{js,woff} ...
0
votes
1answer
2k views

mdbtools fatal error: sql.h when installing

I want install mdbtools from source and I get the following error fatal error: sql.h: No such file or directory so I read the following solutions, but I don't really understand them https://...
0
votes
2answers
8k views

make: Nothing to be done for 'build'

I am learning C++, though I have now a general question, i.e. not for programmers, but IMHO best fit for Linux users. I want the: make command to always build a new binary, which could easily be ...
0
votes
1answer
735 views

Using install -D in Makefile

I'm trying to edit a Makefile that contains: ... install -d $(DESTDIR)/usr/lib/myApp install -d $(DESTDIR)/usr/lib/myApp/scripts install -t $(DESTDIR)/usr/lib/myApp/scripts \ src/scripts/ap.sh \ ...
2
votes
1answer
419 views

GNU install -d recursive?

I have 3 commands to create the folders necessary in a Makefile: install -d $(DESTDIR)/usr/lib/app install -d $(DESTDIR)/usr/lib/app/scripts install -d $(DESTDIR)/usr/lib/app/scripts/...
4
votes
0answers
799 views

Visualizing dependencies coded up in makefiles as a graph

Closely related to How to display dependencies given in a makefile as a tree? But the answers given there is not satisfactory (does not work). Is there a tool to visualize the Directed Acylic Graphs (...
2
votes
1answer
532 views

How to make a static binary build of vorbis-tools ogg123?

In order to run ogg123 (for getting wav from ogg vorbis) I need to get (not found) or compile static build. I tried this on Amazon Linux (the same version as current AWS Lambda): ./configure --...
1
vote
1answer
700 views

GNU make - How to concatenate to variable depending on shell command result (GCC version)?

I want to add another option to the CFLAGS make variable, depending on the result of a shell command that i want to execute outside of a recipe in my "configuration" section of the makefile. This is ...
-3
votes
1answer
709 views

Setting up T4UHP drivers and Interfaces

I was wondering how to install Debain based OS (Kali Linux) on my T4UHP, get it setup and running. I have had a lot of trouble with most of the tutorials and have decided to turn to fellow Linux user ...
0
votes
1answer
385 views

How to compile and use make command to install this certain program/tool?

Introduction I'm following through the book "Learning linux binary Analysis". This book uses 32 bit code examples. The book wants me to either use a tool called Eresi or his own tool called Quenya ...
-1
votes
2answers
945 views

Make file error *** missing separator upon making intel ethernet driver

Hi all Thanks for reading I recently installed Ubuntu MATE 16.0.4 and trying to install Intel I219-V ethernet driver which could be found https://downloadcenter.intel.com/product/82186/Intel-Ethernet-...
0
votes
1answer
48 views

How can I refactor this Makefile to not use fake .out outputs?

I have tests in tests/FILENAME-test.sh and for each one I want to run the script inside a docker container. How can I refactor this Makefile to not use TEST_OUTPUTS like I have? Also, how can I make ...
0
votes
1answer
152 views

Start multiple vagrant boxes in parallel via Makefile

I have three vagrant boxes I usually need simultaneously so I created a Makefile to start them all at once. Well, one after the other actually. The Makefile looks like this basically: up: cd ...
2
votes
1answer
2k views

set a variable based on the value of an environment variable

Inside my makefile, I need to set a variable based on an environment variable called MY_SERVER_ENV. I tried this: gulp:=./node_modules/.bin/gulp ifeq ($(MY_SERVER_ENV), 'prod') branch:=...
1
vote
0answers
427 views

Undefined references to 'get_rome_version' and 'rome_download' when compiling 'btusb_probe' in SM-G360T kernel

When I try to compile the kernel for the Samsung SM-G360T / SM-G360T1, I get identical issues for two different source repositories of the kernel. Kernels I am using: https://github.com/MSM8916-...
-1
votes
1answer
3k views

How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command: make modules I get the following ...
4
votes
1answer
8k views

Pass an option to a makefile

Makefile my_test: ifdef $(toto) @echo 'toto is defined' else @echo 'no toto around' endif Expected behavior $ make my_test no toto around $ make my_test toto toto is defined ...
-4
votes
1answer
73 views

Folder exclusion formatting issue

I'm trying to create make targets for flawfinder and cppcheck that will recursively search the current directory, but ignore directories named "Test". However, I have run into some issues with ...
2
votes
1answer
129 views

make unable to recurse for autoconf-like projects

I've built a Linux system running on an ARMv7 chip and it works surprisingly well, but I have run into a problem with native builds. First I bootstrapped by cross-compiling on an x86-64 system, and ...
3
votes
1answer
685 views

Why does make behave strangely when writing multiple targets using the % character?

According to GNU Make Manual A rule with multiple targets is equivalent to writing many rules, each with one target, and all identical aside from that. The same recipe applies to all the targets, ...
0
votes
0answers
264 views

Building Device Drivers “make” Error

I'm quite new to Linux Kernel Development, and I have an issue trying to build my device drivers so that I can test them and run the strace command on them. However, for some reason, in any directory (...
6
votes
2answers
8k views

Why both `make clean` and `make mrproper` are used?

It is written in the linux kernel Makefile that clean - Remove most generated files but keep the config and enough build support to build external modules mrproper - Remove all generated ...
1
vote
2answers
850 views

mk, sed, and embedding environment variables [closed]

When using mk, GNU sed, I find that variables do not expand at all. Problematic code: VAR=qux ... build: sed -i "s|FOO = .*|FOO = $VAR|" bar.file This seems to run the following: sed -i "s|...
3
votes
1answer
203 views

Stow - no configure script

In the program GNU Stow, the symlink farm manager/package manager/whatever you want to call it, you can run the following commands to install a package to /usr/local: ./configure --prefix=/usr/local ...
0
votes
1answer
598 views

Error installing aircrack-ng during make step, something about HMAC?

I'm trying to install aircrack-ng in kali rolling, and I'm trying to use the make function, but I get an error saying something about a file named HMAC_CTX: crypto.c: In function 'calc_mic': crypto.c:...
1
vote
1answer
220 views

Kernel make error: “sorry, unimplemented: -mfloat-abi=hard and VFP”

I am trying to compile kernel for Allwinner A10 processor (sun4i, ARMV7) for Android 4.1.2. Config file is copied from the device. This is the output : $ make ARCH=arm CROSS_COMPILE=/home/user/...
0
votes
0answers
439 views

VirtualBox faulty UI: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Gy8Y9jNtrJ: Connection refused

I just installed Fedora 26 4.11.11-300.fc26.x86_64 and am trying to install and run VirtualBox. Note that I had the same problems with the previous version/kernel build recently and removed the old ...
0
votes
2answers
3k views

how to fix fatal error: gd.h: No such file or directory

I am trying to install some software called CRISPResso on my mac using sudo pip install. When I type the command CRISPResso --help I get the following message. You need to install and have the ...
1
vote
0answers
36 views

problems in download software in Ubuntu on Windows [closed]

I am using the Ubuntu on Windows 10 feature and am trying to download the software S4. I have problems installing, and in fact I don't even understand some of the instructions as I'm pretty new to ...
0
votes
1answer
846 views

CMake returns linux/videodev.h not exist while build opencv

Got problem while building opencv accoding to link: Determining if the include file linux/videodev.h exists failed with the following output: Change Dir: /home/pi/opencv-3.1.0/build/CMakeFiles/...
1
vote
0answers
315 views

can't make after doing cmake

Not sure this is the correct place to ask my question, but I'd like to give it a try as some people already managed to help me here in the past. I am trying to run this software on my computer: ...
3
votes
1answer
10k views

How to append some text to a variable in makefile?

I have a Makefile. Somewhere in the makefile there is a variable defined: FOO=hello Later on I need to append some text to FOO's content. I tried it like this: FOO=$(FOO)_world I suggested that ...