Questions tagged [makefile]

Questions relating to makefiles, (The file that contains the instructions for make)

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Use h5c++ and mpic++ wrapper compiler at the same time: makefile

I need to use the mpi and hdf5 wrap-up compilers in my makefile. What should I do? My naive approach was to add the h5c++ makefile command: CC := mpic++ hc5++ -std=c++14 -g -pedantic Which does not ...
JoseAf's user avatar
  • 1
0 votes
0 answers
405 views

make error: *** No rule to make target

I want to intall r.in.kinect GRASS GIS addon in ubuntu 22.04. This is the URL: https://github.com/tangible-landscape/r.in.kinect I cloned the git and then ran the command make MODULE_TOPDIR=../path/to/...
Sehwan Kim's user avatar
0 votes
1 answer
862 views

ERROR make: *** No targets specified and no makefile found. Stop

I am getting error for "make" command" as below: make: *** No targets specified and no makefile found. Stop. Here are the two command lines after downloading a Git repository: ./...
Dervish 007's user avatar
0 votes
0 answers
114 views

Why the variable value is not changing in the function?

In the following function main_script, the variable DEFAULT_BACKUP_DIR is not working as intended because the value /home/user/BACKUP is not assigned to it which I do not know why, and when I try to ...
ABSO's user avatar
  • 1
1 vote
0 answers
2k views

How to Add a New Path to pkg-config?

I've just start using GNU make because of a software package I'm trying to install. The tutorial is really good, but for some reason I'm not able to do it properly. I downloaded the files, extracted ...
Tanus Szabo's user avatar
-1 votes
1 answer
196 views

could not build custom configured nginx

I am using UBUNTU server 22.04, openssl version 3.0.2 and I was trying to build custom configured NGINX as a proxy for mail server however, when I run 'make' it gives me error. For that i referred to ...
anon999_void's user avatar
0 votes
0 answers
283 views

Error when using 'make install' command in qbittorrent installation

I am attempting to install qbittorrent software from tar.gz (https://www.qbittorrent.org/download.php) on ubuntu 22.04. I can unpack the zip files, run configure, and make executes just fine, but when ...
deathisinvtbl's user avatar
0 votes
0 answers
155 views

debuild cannot remove '..' permission denied, debian/rules:9: recipe for target 'clean' failed

I am trying to run debuild command to work with debian with my project However, when I run debuild command I get such error: hoseopjeong@hoseopjeong-VirtualBox:~/Documents/HoseopJeong_debian_lab9/...
javaprogrammer's user avatar
0 votes
0 answers
215 views

How to install missing shared library files: DMGMPI and FMPICH on Ubuntu 20.04?

I am stuck with missing library files ("dmgmpi" & "fmpich") compilation errors which I need in order to compile a makefile. The error status after the compilation is: bcdflt.o ...
Subhajit Kar's user avatar
2 votes
1 answer
3k views

Arguments for make

I know you can pass arguments like parameters, for example, make foo=bar. I am wondering if I can do this with only one argument, without the variable. For example, this is what I would like to do: ...
DaCuteRaccoon's user avatar
0 votes
0 answers
1k views

Linking Zlib with source compilation

I have compiled Libz using these steps: wget -c --no-check-certificate https://zlib.net/zlib-1.2.12.tar.gz ./configure --prefix=/home/zlib1/ make make install Similarly I have compiled OpenSSL and ...
Manukumar Puttaswamy's user avatar
0 votes
1 answer
355 views

Kernel Module exit message get printed next time when inserting the module

I have written simple kernel module to print Hello kernel msg. my_module.c #include <linux/module.h> #include <linux/init.h> /* Meta Information */ MODULE_LICENSE("GPL"); ...
bhagwat-99's user avatar
0 votes
1 answer
663 views

how do I modify makefile which is already compiled?

Let's say I have a makefile which looks like this: all: a_functions.o b_functions.o c_functions.o d_functions.o main.o gcc -o all a_functions.o b_functions.o c_functions.o d_functions.o main.o ...
game lover's user avatar
0 votes
0 answers
53 views

can't remove a game installed by make install command

I wanted to install a launcher which is actually for enter and play in a server in Minecraft(I don't know if giving the name of the game is forbidden) and to do this I went to the website of the ...
TarikTEM's user avatar
12 votes
1 answer
815 views

How to get Six (an old KDE game program) running in Kubuntu 20.04

Six was a gold-medal winner several times in a computer games olympiad. The source code is on GitHub https://github.com/melisgl/six/tree/master/six. It has been pinned for a couple of decades, but I ...
ForDummies's user avatar
0 votes
1 answer
5k views

"/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory" when compiling HTK

I'm trying to compile the HTK library, but run into issues: $ make all (cd HTKLib && make HTKLib.a) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/...
Rerun's user avatar
  • 131
3 votes
1 answer
760 views

Unreal 4 compiled successfully but UE4Editor file doesn't exist

I have Ubuntu 20.04 on a desktop with an old i7 CPU and 16 GiB of RAM. Here are the commands I ran to compile Unreal 4.27: ./Setup.sh ./GenerateProjectFiles.sh make -j 4 make -j 4 ShaderCompileWorker ...
kim holder's user avatar
  • 1,519
1 vote
0 answers
2k views

Cannot source venv using makefile

The Makefile inside project root # Makefile .PHONY: help help: @echo "Commands:" @echo "venv : creates development environment." # Environment .ONESHELL: venv: ...
Anel Music's user avatar
0 votes
0 answers
491 views

vmlinux is not being generated even after executing make -j4 .config command

I'm trying to build customized build for linux kernel, for that i have generated .config file based on my requirements but when building that .config file, it is not giving any error nor vmlinux file ...
Vivek Mak's user avatar
1 vote
0 answers
459 views

GNU make executes weird shell

The shell function in GNU make behaves weird on Ubuntu. Consider this simple Makefile: TEST1 := $(shell command -v sh) TEST2 := $(shell /bin/sh -c 'command -v sh') all: $(info TEST1 = $(TEST1))...
Jakub Klinkovský's user avatar
0 votes
0 answers
295 views

How to solve "make" issue while cross-compiling on the ubuntu

I am trying to cross-compile this (ultralytics/yolov5) project on my ubuntu machine. Since I am compiling it for my another machine "raspberry Pi" so I already installed the toolchain which ...
Jaskirat Singh's user avatar
2 votes
0 answers
4k views

insmod: ERROR: could not insert module simpleModule.ko: Operation not permitted

I'm a beginner learning about linux kernel. I tried to insert a simple module but encountered the following error. sudo insmod simpleModule.ko [sudo] password: insmod: ERROR: could not insert module ...
Raj Laddha's user avatar
0 votes
0 answers
24 views

Where to put library to allow programs to see it? [duplicate]

I wanted to compile mosaic on my ubuntu machine, but while compiling, I did not have right libpng version, so the compilation aborted with error: error: invalid use of incomplete typedef ‘png_struct’ {...
milanHrabos's user avatar
0 votes
1 answer
63 views

Is it possible to avoid executing make and make install with sudo?

Whenever it is possible, I try to use applications, libraries and plugins delivered through official Ubuntu APT. However, sometimes I try to compile something, like resynthesizer plugin for GIMP. In ...
matandked's user avatar
  • 1,079
0 votes
2 answers
1k views

Makefile with if statement error

Attempting to create a makefile with a run rule which has an if in it. When I run the command make run it returns this error: /bin/sh: 1: Syntax error: end of file unexpected (expecting "then&...
Theo Paraschiv's user avatar
0 votes
1 answer
3k views

Makefile: python: command not found

I have a Makefile that contains these two lines run: sim @python run.py $(INPUT) When I tried to run make run, I got the error message saying python is not found. I soon realized that was because ...
useru365465's user avatar
0 votes
1 answer
160 views

makedepf90: program for automatic creation of Makefile-style dependency lists for Fortran source code

I assumed it is only a couple of seconds installing this program, but it confuses me honestly. this program is for the automatic creation of Makefile-style dependency lists for Fortran source code. I ...
Kratos_GoS's user avatar
1 vote
1 answer
3k views

Error when using 'make install' command

I am attempting to install the WRF weather software (http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP7) that requires the installation of certain libraries. I can unpack the ...
jmaloney1985's user avatar
1 vote
1 answer
1k views

Install wxWidgets-3.1.4, Install Code::Blocks

After downloading and installing (./configure, make install) the latest wxWidgets-3.1.4 version from official page. I checked out latest Code::sBlocks with svn from official repository. In the folder ...
Hakikat41's user avatar
1 vote
0 answers
2k views

collect2: error: ld returned 1 exit status while compiling

first i want to say that i looked for every solution for this problem in the site ,but no luck ! i have a project which i'm trying to compile , when i compile it on Ubuntu 14 everything is ok , but ...
Colin Jack's user avatar
1 vote
2 answers
8k views

Software-installation error (makefile) on Ubuntu 20.04

I was trying to install geopsy software, but when I ran sudo make install the following error occured: cd mseed/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /opt/geopsy-3.3.0/...
nanandasari's user avatar
1 vote
1 answer
342 views

Newbie: How to use QMAKE to compile and install FaustLive on Ubuntu Studio 20.04? Can't create Makefile with qmake w/ linux-g++

FaustLive is an open source prototyping environment for Faust (open source, compiled audio programming language). Here is FaustLive's GitHub: https://github.com/grame-cncm/faustlive After successfully ...
CPLTarun's user avatar
  • 213
4 votes
1 answer
8k views

"make" command does not work in directories containing "space"

I often use make to compile programs. But, sometimes, only with some packages, when the directory contains a space, it says: No such file or directory Example: If I run make in the directory /home/...
Akib Azmain Turja's user avatar
-2 votes
1 answer
1k views

shell unnanme -r command not found

shantanu@LAPTOP-3NM82R8U:~/c$ make make: unname-r: Command not found make -C/lib/modules//build M=/home/shantanu/cmodules make[1]: *** /lib/modules//build: No such file or directory. Stop. Makefile:3:...
Shantanu Nawadkar's user avatar
0 votes
1 answer
408 views

Unable to locate package makefile

Hello everyone I am new in using Ubuntu operating system and facing a problem. I have installed GCC using sudo apt-get install gcc but when I run the following command sudo apt-get install ...
Bilal's user avatar
  • 1
0 votes
1 answer
199 views

Make error with Grib2 and Netcdf

I am trying to install a software package designed for weather modeling. This can be found here https://github.com/usgs/volcano-ash3d-metreader. The issue comes when I am trying to execute the 'Make ...
LvnTrvr's user avatar
  • 25
0 votes
0 answers
1k views

cannot execute binary file: Exec format error - Ubuntu 16.04 + Make + GCC

I am aware that other people had similar issues but mine seem to be unique as I am not making obvious mistakes. I have reviewed other questions and putting all required details below. When I am ...
Vidz's user avatar
  • 1
0 votes
0 answers
856 views

Finding -lgcc_s

I'm trying to install a program that seems to use libgcc_s.so. After implementing the possible remedies suggested in the SO:LINK, I still can't figure out why the compiler fails to find it. I get the ...
Sameeresque's user avatar
0 votes
0 answers
296 views

How to stop "make" from running "clean"?

Have a Makefile like this: all: build build: dot2tex -ftikz temporal_dag.dot --figonly > temporal_dag.tex latex notes && bibtex notes && latex notes && ...
mathtick's user avatar
  • 454
2 votes
1 answer
4k views

make: *** No rule to make target 'ell/util.c' needed by 'ell/util.lo'

I need to install ofono, so I cloned this ofono repository and did autoreconf -fi and ./configure in the directory. But when I am running make or sudo make install I am encountering the following ...
xjm's user avatar
  • 105
1 vote
0 answers
47 views

How to make 'Make' to handle more new pairs of source files indicated by its extension name

How can we modify a Makefile script to handle more new pairs of source files indicated by its extension name to be compiled by Make automatically correctly and preferably interactively #... objects = ...
itil memek cantik's user avatar
1 vote
0 answers
682 views

Problem while executing a Makefile

i'm installing the Rocket-Chip repository. I'm following the instructions from https://github.com/chipsalliance/rocket-chip. The instructions are: $ git clone https://github.com/ucb-bar/rocket-chip....
Andrea13's user avatar
0 votes
0 answers
230 views

Continue custom kernel creation and not start over again from square one

Task: Create a custom Ubuntu kernel from git sources (in my case hwe-branch). Short summary: I want to fix a error reported by the build scripts and then repeat only the last compilation/packaging ...
llvs's user avatar
  • 1
0 votes
1 answer
162 views

Packaging fails upon compiling 16.04 HWE kernel

Short summary: Packaging script looks in wrong path. Detailed error summary: To compile the kernel, I used the compilation instructions from here, which included the steps: Checkout git sources ...
llvs's user avatar
  • 1
1 vote
1 answer
408 views

configure: error: enet not found

I am trying to build 7kaa game on my Ubuntu machine. To build Makefile.am, I ran ./configure and the tail of the result is checking for gettext... yes checking for iconv... yes checking for OPENAL......
ar2015's user avatar
  • 395
0 votes
0 answers
100 views

Build libfslcodec-4.0.8 on Ubuntu 16.04 for IMX6Q

I installed Ubuntu 16.04 with kernel 4.1.15 on IMX6Q "sabresd" Board and successfully boot. I used this instruction to install rootfs also I changed distro and solved some issues by myself. Just now ...
Amir Farahani's user avatar
1 vote
2 answers
798 views

How to modify build rules in Makefile

I tried to compile FFmpeg from source code located HERE. All is good, but the built binaries lack ffplay. And looks like the build rule is missing from the makefile located under /fftools. How can I ...
Tina J's user avatar
  • 283
1 vote
0 answers
47 views

How to list /find all driver files getting compiled while doing make?

Driver files getting compiled while doing make, is there any ways to list using the makefiles?
Ravi Shankar.G's user avatar
0 votes
1 answer
1k views

Error while loading shared libraries: libpgplot.so:

I have compiled a program named vmed from its source code using Makefile. When I run make the compilation goes without any error, however when I try to run the program, it gives me following error: ./...
Shah5105's user avatar
0 votes
1 answer
973 views

The following Makefile is not working and I am not sure what's going on

obj-m += task.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean Makefile:3: *** missing separator. Stop.
Akshar Chikly's user avatar