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

learn more… | top users | synonyms

16
votes
4answers
25k 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. ...
11
votes
1answer
5k 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?
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
1k 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?
5
votes
2answers
3k 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
10k 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?
5
votes
1answer
1k 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
49k 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
38 views

does “make” recompile all of the files or just changed ones

suppose that you have a program which you installed that from source by make command . That program include files a.cc, b.cc, c.cc, d.cc and ... . Now I changed a.cc a bit. In order to enable the ...
3
votes
1answer
959 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
602 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
2answers
7k 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 ...
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
1k 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
137 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
58 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
310 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
2k 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
577 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
2k 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
38 views

Installation of .c files in phylip

I am trying to install .C functions of PHYLIP in Linux/ubuntu. I read documentation and it mentioned it is very easy compilation and of .C functions: To make executables, use your C compiler. It ...
1
vote
1answer
699 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 \ ...
1
vote
1answer
25 views

Looping in bash from Makefile

i need to write a Makefile that compiles each .cpp in current directory in .so file (with flags -shared -fPIC) and copyies .so file into "../../dir/" directory without ".so" extension. For example, ...
1
vote
2answers
171 views

How do I set up ccache?

I want to use ccache to speed up compilation. I came across how do I enable ccache This is what I have done so fat: $ sudo apt-get install -y ccache Then $ dpkg -l ccache ii ccache 3.1.6-1 ...
1
vote
1answer
57 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
759 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
113 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
459 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
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
12 views

Modify Ubuntu toolchain

In version 11.10 the flag "--as-needed" became default in the Ubuntu toolchain. Due to many problems I have with undefined symbols at runtime I don't want to change all the makefiles anymore. I want ...
1
vote
0answers
70 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
690 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
367 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
255 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
1k 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
198 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
169 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
0answers
176 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
44 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
3answers
3k views

How do i install with makefile? I get erorr while typing `./configure` [closed]

I'm trying to install Intel driver from here: http://intellinuxgraphics.org/2011Q4.html However when running ./configure and then make I get the following output: $ ./configure checking for a ...
0
votes
2answers
13k 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
74 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
748 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
39 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
453 views

config.status: error: cannot find input file: `Makefile.in'

I'm trying to install mod_WSGI on Ubuntu 12.04. Here is the set of commands that I'm following: wget http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz tar xvfz mod_wsgi-3.4.tar.gz cd ...