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

learn more… | top users | synonyms

12
votes
4answers
21k views

Cannot find install-sh, install.sh, or shtool in ac-aux

This is my first time trying to compile and install anything on a linux machine. I got the latest version of https://github.com/processone/exmpp via git and read the instructions which state: 2. ...
10
votes
1answer
2k views

How to have Debian packaging generate two packages given an upstream source archive?

I am packaging something for my PPA. The upstream source is a .tar.gz archive which is Makefile-based. Since this package has a significant amount of architecture-independent data, it would be wise ...
9
votes
1answer
826 views

Detect if its Ubuntu Linux OS in Makefile

I want to create a makefile that will compile my objects and name them according to the Linux distro (e.g. Suse, RedHat, or Ubuntu). How can I detect if the OS is Ubuntu or not?
8
votes
1answer
3k views

What does “./configure; make; make install” do?

What does ./configure do? Why make then make install? How does it know where libs are? ( they are all there and loaded but it cant find them.) Why need libs if compiler is supposed to compile?
5
votes
2answers
2k views

Which file is changed after I do “make menuconfig”?

In linux, I thought that the file Makefile is changed after I run make menuconfig. But when I diff Makefile, I don't see any difference. Which file is changed after I do make menuconfig?
5
votes
4answers
8k views

Writing a “Hello World” Device Driver for kernel 2.6 using Eclipse

Goal I am trying to write a simple device driver on Ubuntu. I want to do this using Eclipse (or a better IDE that is suitable for driver programming). Here is the code: #include ...
5
votes
1answer
53 views

Checking which options were passed to ./configure

Is it possible to find out which options of the ./configure script were used to create the Makefile?
4
votes
1answer
889 views

Using makefile wildcard command for file names with spaces

I have a makefile that I use to compress pictures: src=$(wildcard Photos/*.jpg) $(wildcard Photos/*.JPG) out=$(subst Photos,Compressed,$(src)) all : $(out) clean: @rmdir -r Compressed ...
4
votes
4answers
7k views

Cannot install glib-dev

I tried to build dasher, but I got it needs glib. So doing so this came up: Checking for GLIB... configure: error: Package requirements (glib-2.0>= 2.6) were not met: No package 'glib-2.0' ...
3
votes
3answers
41k views

Error when installing Makefile: “make: *** No targets specified and no makefile found. Stop.”

In short while I run the make command it says: nir@nir:~/Downloads/xf86-video-intel-2.17.0$ make make: *** No targets specified and no makefile found. Stop. I looked inside the ...
3
votes
1answer
683 views

How do I get my compiler to locate the X11 header files?

I'm trying to use GLEW and XServer / X11 in a C++ app as instructed in Chapter 15 of the OpenGL Superbible, 5th ed. I'm using this Makefile: LIBDIRS = -L/usr/X11R6/lib -L/usr/X11R6/lib64 ...
3
votes
1answer
407 views

unbuntu, how do I make 'make' command work?

I am trying " Linux Kernel Module Programming - Compiling the Module " as in this youtube video. First I created a hello.c program. As a second step need to type command #gedit Makefile. It opens a ...
2
votes
4answers
55 views

Why do some commands execute properly only when the file being called is inside the working directory

I'm unable to successfully make a file when I do the following command make /home/me/Desktop/folderWithMakefile However an executable is created when I do the following cd ...
2
votes
1answer
816 views

Trouble compiling a kernel module in linux

I am using Ubuntu 12.04. I wrote a simple hello world kernel module (hello.c). I wrote the folllowing makefile for it: obj-m+=hello.o KDIR:= /usr/src/linux-headers-3.2.0-24-generic-pae all: ...
2
votes
1answer
133 views

Launchpad dailybuild source in subdirectory of branch

I have a repo branch that i have mirrored in Launchpad that I am trying to setup a daily build. The problem is that the source directory of the package is a subdirectory in the branch. When building ...
2
votes
0answers
55 views

Makefile question: how to make several analogous rules into one

I'm wondering if there's a way to make one rule out of the following several rules which are all similar in a Makefile that I have to edit: $(OBJECT_BUILD_DIR)/%.o : $(OBJECT_SRC_DIR)/%.cpp ...
2
votes
1answer
276 views

About the installation of Moses tool on ubuntu 11.04

we are working on project related to language translation with the help of moses tool...but we are not able to install moses...we face some installation problems. we make a directory on desktop named ...
2
votes
0answers
2k views

What are the differences between concurrency=shell and concurrency=makefile? [closed]

I feel that 11.10 boots very slow on my netbook. Many people said that changing concurrency method to shell in /etc/init.d/rc will speed up boot process, but the comment in the file said that the ...
1
vote
2answers
5k views

How to get missing dependency for make empathy: glib-compile-schemas?

I Downloaded empathy-3.0.1.tar.bz2 to install in Ubuntu 10.04 LTS. I ran the makefile and I got the error : configure: error: glib-compile-schemas not found. How can I fix this problem ? Please ...
1
vote
2answers
991 views

What is a makefile exactly and how we can create one?

I know this is a silly question, but since I am trying so hard to learn linux by myself, I need some help from you fellows. I found this task on the internet and I am trying to solve it but I don't ...
1
vote
3answers
544 views

qmake error when trying to build qwbfs

I'm trying to install qwbfs application but when i enter the command : make i get this: tools.c:8:25: fatal error: openssl/md5.h: No such file or directory compilation terminated. make[1]: *** ...
1
vote
2answers
1k views

“$MAKEOPTS” ignored, why?

I have defined export MAKEOPTS="-j4" in my ~/.profile file. But when I do a compilation with make, this option is ignored. I've consulted the GNU Make manual but it says nothing about this ...
1
vote
1answer
32 views

Can't “compile” the makefile

This is the make file: obj-m += hello_pass_arg.o KDIR = /lib/modules/$(shell uname -r)/build all: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules clean: rm -rf *.o *.ko *.mod.* *.symvers ...
1
vote
1answer
712 views

Can't make RTL8188CE drivers

I just downloaded the RTL8188CE drivers striaght from Realtek website. I have both build-essentials and linux-generic-headers installed. I go to the top directory of the downloaded driver and run make ...
1
vote
2answers
107 views

Folder with images in makefile

I have been using anjuta to make some programs. I have made a folder in the src directory of the program to store all the images and icons. ( /src/images/icons ) However when i build the tarball the ...
1
vote
2answers
387 views

Cannot build deb package

I have followed this tutorial on how to make a .deb package from source(tar.gz) and at the final build command dpkg-buildpackage -rfakeroot However I get this error at the bottom: make[2]: Entering ...
1
vote
1answer
1k views

How to install Hercules Webcam Deluxe

I am trying to install a Hercules Webcam Deluxe on my Ubuntu 11.10 (64 bits). I followed this guide: https://help.ubuntu.com/community/Ov51x Step by step, only changing wget ...
1
vote
0answers
29 views

How to convert files with make preserving the directory structure

I'd like to use Makefile to convert my flac music into mp3. The idea is: have the same directory structure with a different root name run a simple command to keep the mp3 folder in sync with the ...
1
vote
1answer
198 views

Install rt3572 driver for Asus Usb-N53 Adapter

I recently bought the asus USB-N53 wireless adapter, and want to install the latest driver for it. It comes with instructions of how to install the driver from the files provided, but I can't use ...
1
vote
0answers
315 views

HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': execvp: No such file or directory

hardik@ubuntu:~/ti-sdk-beagleboard-05.07.00.00/board-support/linux-3.3.7$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': ...
1
vote
0answers
147 views

Ubuntu Packaging Guide Tutorial: There seems to be no Makefile in this directory [closed]

I am attempting to package a simple video game for distribution on the Ubuntu Software Center. I have been working through the Ubuntu Packaging Guide Tutorial. I have succeeded in creating my GPG and ...
1
vote
0answers
1k views

Make compiling error 'No rule to make target' when trying to install a driver

When I try to install a driver via sudo make I get these errors: make -C /lib/modules/3.8.0-31-generic/build M= make[1]: Entering directory `/usr/src/linux-headers-3.8.0-31-generic' make[2]: *** No ...
1
vote
1answer
918 views

build a project with qmake-qt4

I'm new user of Ubuntu, so excuse me if my question is very obvious. I have a 32-bit Ubuntu 11.10 installed in VirtualBox, and I want to build a project using qmake-qt4, the problem is that I don't ...
1
vote
1answer
179 views

How to install bnetd in Lubuntu from command line?

I am trying to install bnetd on lubuntu and i got error compiling it (I have never compiled anything yet) I execute this at the terminal: loading cache ./config.cache checking host system type... ...
1
vote
0answers
154 views

dh_auto_install not working in ppa [closed]

trying to build a package in the ppa that works in local it gives an error because it doesn't find usr/include/* it seems like dh_auto_install is doing nothing while in local it's executing the ...
1
vote
1answer
2k views

fakeroot debian/rules binary error

I have a package I'm maintaining. When I issue "fakeroot debian/rules binary" I get this error: dh_install --sourcedir=debian/tmp cp: cannot stat `debian/tmp/usr/share/prg/1.svg': No such file or ...
1
vote
0answers
175 views

Adding my own pattern rules to gmake's “catalog of implicit rules” [closed]

On maverick... $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.10 Release: 10.10 Codename: maverick ... using make 3.81 ... $ make -version GNU ...
0
votes
2answers
27 views

Makefile compile

I have to compile ctorrent using makefile, but I always have the same error: make[1]: Entering directory `/home/g507565/Downloads/ctorrent-dnh3.3.2' test -z "/usr/local/bin" || mkdir -p -- ...
0
votes
2answers
11k views

'Make' error - glib.h no such file or directory

I have never built a project in Ubuntu before and I am trying to come to grips with the GNU build tools and process. When I try to make I get the glib.h - no such file or directory. This is the ...
0
votes
1answer
65 views

Add a new target into rules debian file [duplicate]

I want to add a new target rule in debian/rules and I want it to be executed before dpkg-source --before-build. This new target will generate a control file from a template file. How can I do that?
0
votes
1answer
647 views

Need to use sudo -s for make command depending on Ubuntu version

We have a Makefile for compiling a network interface's driver. When calling the Makefile in an Ubuntu 9.04 installation, we need to call just 'make'. However, when calling the Makefile in an Ubuntu ...
0
votes
1answer
30 views

gcc cannot find ansinist.h even though it is there in /usr/incude/ansinist

I am trying to make a program provided by NIST. I do not have much experience in such tasks. I am getting the following error. util.c:19:22: fatal error: ansinist.h: No such file or directory ...
0
votes
1answer
27 views

How to clean executable using make clean?

After compiling several *.c and *.h files using make, I cleaned up the object files using make clean. However I don't know how to remove the executable. my makefile code --> CC=gcc ...
0
votes
1answer
98 views

How can I get the bash $RANDOM in a makefile?

This works on OSX: RANDOM := $(shell /bin/bash -c "echo $$RANDOM") test: echo $(RANDOM) For cross platform random numbers I've instead resorted to this: RANDOM := $(shell od -An -N2 -i ...
0
votes
1answer
39 views

Is it possible to define a macro variable through make?

Below is my c code: #include main() { #ifdef HELLO printf(" hello "); #else printf(" else "); #endif } And my Makefiles is: all: gcc uss_main.c -o out ...
0
votes
1answer
67 views

compiling blt2.4 on 64bit ubuntu machine

I'm new to programming/linux and trying to install BLT2.4, which is needed for another program that will be installed later. First, I successfully installed tcl8.3 tk8.3 and their dev counterparts on ...
0
votes
1answer
373 views

How do I follow these “makefile” instructions?

I am a beginner of Linux. I don't know to handle the following instructions, please teach me in details. The instructions are below: Go to the mmed-release-0.1/src/. Modify the makefile to set ...
0
votes
1answer
2k views

How to edit makefile?

I want to add -std=c99 flag to make command but I have no idea how to do it. Where is related file located? @Andrejs Cainikovs But I have not found related file or files yet.
0
votes
1answer
538 views

Bash is abnormal in Makefile!

all, I have found that the same Makefile works well in Mac OS X, but does not work in Ubuntu. The snippet is as following: start: @echo $(seperator) @if [[ "$(PROJECT)" == "" ]]; then \ ...
0
votes
0answers
9 views

Problem with Automake Version in Compiling a Program

When doing make command, I got an error as: make[5]: Entering directory `/mirror/MyProgram-environment/MyProgram-1.1.92/utils_lgpl/MyVendor_common/packages/MyVendor_common/src' cd ../../../../.. ...