Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
35 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: ...
user avatar
0 votes
0 answers
113 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 ...
user avatar
0 votes
1 answer
75 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"); ...
user avatar
0 votes
1 answer
118 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 ...
user avatar
0 votes
0 answers
25 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 ...
user avatar
-1 votes
0 answers
61 views

Convert Makefile into Bash script

Hello i would like to convert a Makefile into a bash script or ansible-playbook any ideas ? build/nimbus_validator_client \ --log-level="$(RUNTIME_LOG_LEVEL)" \ --log-file=...
user avatar
12 votes
1 answer
779 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 ...
user avatar
0 votes
0 answers
1k 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 '/...
user avatar
  • 79
2 votes
1 answer
142 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 ...
user avatar
  • 1,319
0 votes
0 answers
46 views

How to debug Makefile based projects in any IDE in Linux Environment

I am compiling and debugging source code of Gpg4win in linux (ubuntu) environment. I successfully build project using console terminal by using simple commands like: ./autogen ./config make install ...
user avatar
0 votes
0 answers
549 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: ...
user avatar
0 votes
0 answers
265 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 ...
user avatar
1 vote
0 answers
134 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))...
user avatar
0 votes
0 answers
31 views

need to compile. from source¦no configure, no readme available

I downloaded the angryIP scanner in 2.x and 2.21. The old version, because I need to run it on a Tegra (ARM) processor. The universal plattform .deb fails to install, so it seems not to be that ...
user avatar
0 votes
0 answers
125 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 ...
user avatar
2 votes
0 answers
2k 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 ...
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’ {...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 1,049
0 votes
2 answers
559 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&...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 3
0 votes
1 answer
115 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 ...
user avatar
1 vote
1 answer
951 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 ...
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 ...
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 ...
user avatar
1 vote
2 answers
5k 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/...
user avatar
1 vote
1 answer
296 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 ...
user avatar
  • 203
3 votes
1 answer
4k 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/...
user avatar
-2 votes
1 answer
906 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:...
user avatar
0 votes
1 answer
211 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 ...
user avatar
  • 1
0 votes
1 answer
148 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 ...
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 ...
user avatar
  • 1
0 votes
0 answers
632 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 ...
user avatar
0 votes
0 answers
164 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 && ...
user avatar
  • 362
2 votes
1 answer
3k 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 ...
user avatar
  • 105
1 vote
0 answers
44 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 = ...
user avatar
1 vote
0 answers
377 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....
user avatar
0 votes
0 answers
144 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 ...
user avatar
  • 1
0 votes
1 answer
149 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 ...
user avatar
  • 1
1 vote
1 answer
257 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......
user avatar
  • 317
0 votes
0 answers
86 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 ...
user avatar
1 vote
2 answers
707 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 ...
user avatar
  • 283
1 vote
0 answers
36 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?
user avatar
0 votes
1 answer
796 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: ./...
user avatar
0 votes
1 answer
646 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.
user avatar
2 votes
1 answer
4k views

How to save Makefile output in a child directory

Running make in a folder containing a Makefile stores the output files of that Makefile in the same directory. Is it any way to store them in a child directory passing some arguments to the make ...
user avatar
  • 143
0 votes
1 answer
3k views

Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)

I feel I've tried everything but I feel I'm missing something really simple.. I'm trying to run a makefile from a project (which works fine on a Mac) on a Windows machine with WSL running but get a ...
user avatar
0 votes
0 answers
443 views

Compilation error when building squashfs tools

I tried to compile unsquashfs tool from GPL source, the sources are in the 'squashfs-tools' directory. Executing make gives error: Makefile:2: *** Sqlzma is not defined. Stop. As I see, the sqlzma ...
user avatar
  • 721
0 votes
1 answer
162 views

Difficulty installing program through makefile: "Are the same file"

I am attempting to install a CFD code called MISES on my ubuntu system, but every time I try to make the file, it generates a bunch of .o files then fails with the following output: install -s ises .....
user avatar
0 votes
1 answer
246 views

Where do I put my .a files

I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary ...
user avatar
0 votes
1 answer
280 views

problem in making software

I am trying to make an old version of lammps-13Jull11. I used this command in the src directory: make openmpi but it failed because of these errors: make[1]: Entering directory '/home/alireza/lammps-...
user avatar