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

learn more… | top users | synonyms

1
vote
1answer
16 views

Building and using a lib without installing it? (e.g. libcurl)

I'd like to use libcurl (a lib that handles HTTP connections) by linking it statically to a program I am writing. I am new to building programs from their source, so I have no clue on how to do it ...
0
votes
3answers
46 views

how to run “sudo make” and sudo “make install”

I've installed lubuntu yesterday and noticed that the fans aren't working and want to try the solution kevbelisle came up with. ...
0
votes
2answers
24 views

Edit make file permanently

I'm a newbie with Linux, I'm using for few days, I'm trying to edit a makefile, adding a line in the CFLAGS field, via gedit, but when I compile the file It reverse back to the original version, ...
0
votes
0answers
32 views

don't run command make in order to build file .ko

I just setup Ubuntu 14.04 to learn about it. I’m learning write driver in Ubuntu. When I run the sample lesson hello , I have a problem. I created a file hello.c and a Makefile, but when I run ...
1
vote
2answers
20 views

Make error for latex processing

I want to execute the following Makefile: main.pdf: main.tex main.bib pdflatex main.tex bibtex main.aux pdflatex main.tex pdflatex main.tex It comes from this site: ...
0
votes
1answer
48 views

File creating permission Denied [duplicate]

I have removed Windows 7 and installed Unbuntu 14.04. I have successfully installed LAMP but the problem is that I cannot save a file with a PHP extension in local-server using the Bluefish editor . ...
0
votes
0answers
25 views

can't install capybara-webkit

When I bundle install I get: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb Command 'qmake -spec linux-g++ ' not available Makefile not found ...
1
vote
1answer
1k 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 ...
2
votes
2answers
1k 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 far: $ sudo apt-get install -y ccache Then $ dpkg -l ccache ii ccache 3.1.6-1 ...
0
votes
0answers
31 views

error while installing make file

$ make install Making install in src make[1]: Entering directory `/lustre/work/biocore/prasuna/SPici/SPICi/src' make[2]: Entering directory `/lustre/work/biocore/prasuna/SPici/SPICi/src' test -z ...
0
votes
0answers
25 views

Wifi USB Driver installation fails

When ever i try to install wi fi drivers for my device WN727N, i always get stuck at make step. When ever i run make command it ends at Makefile:243: recipe for target 'LINUX' failed make: *** ...
1
vote
1answer
41 views

How to build a source file using make? [closed]

I am trying to build a source using make? This is the first time I am trying to do this as there is no other way to install the program. Contents of directory containing the source are shown here. I ...
0
votes
2answers
62 views

Makefile: how to change a specific rule

this is my first question here, I hope to do everything in the right way. I'm a quite new Ubuntu user and if possible I need some help with a specific Makefile. I downloaded QEMU 2.1.0 and I'm ...
0
votes
0answers
152 views

Error: Unable to access jarfile spl.jar for stanford portable library

I'm trying to install the Stanford library for Harvard's CS50 but I'm running into a few problems... I've got the .h files in usr/local/include/spl and I've got the libcs.a in usr/local/lib but I'm ...
3
votes
2answers
8k views

Getting missing dependency for compilation 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
3answers
1k views

How to create a makefile with a shell script

I have a shell script, and would like to convert it to a makefile so that it can be executed with the command 'make all'. How would I go about this? Thanks
0
votes
0answers
113 views

WARNING: TARGET is empty make: Nothing to be done for `first

Can anyone help with this error WARNING: TARGET is empty make: Nothing to be done for first'. I wish to build this qt package When I run ./compile in the the downloaded folder, it gives this ...
2
votes
1answer
1k views

My makefile results in: No rule to make target `arch/x86/tools/relocs.c', needed

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: ...
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 ...
1
vote
1answer
40 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, ...
3
votes
1answer
76 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 ...
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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
852 views

Missing separator in makefile

I have next code in Makefile: CFLAGS=-Wall -g clean: rm -f ex1 When I run "make clean" I receive next error: Makefile:4: * missing separator. Stop. Why? How I can fix it?
0
votes
0answers
62 views

How do I build Bitcoin from source on Ubuntu 14.04 [duplicate]

(Using Autotools) I have downloaded the Bitcoin source from "Bitcoin Core Version 0.9.1" When I input the following command ./autogen.sh it produces the following warning: includes' is the old name ...
1
vote
1answer
63 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 ...
3
votes
3answers
54k 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 ...
1
vote
0answers
2k 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 ...
0
votes
1answer
52 views

LD_LIBRARY_PATH

I have tried to link VINCIA to ROOT, but there is a problem related to the location of the shared libraries in my system. Since I have installed all these tools in a directory which is different than ...
5
votes
4answers
11k 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 ...
0
votes
2answers
88 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
1answer
196 views

m4 preprocessor “ERROR: end of file in string”

I'm getting this error msg: m4:myPerlScript.pl:77: ERROR: end of file in string when trying to use m4 to replace a string in some perl scripts. I'm making the call inside a makefile. $(OUTDIR)/%: ...
0
votes
1answer
629 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 ...
1
vote
1answer
91 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 ...
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?
1
vote
0answers
87 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 ...
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?
0
votes
1answer
279 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 ...
1
vote
0answers
408 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': ...
0
votes
1answer
48 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
2answers
14k 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 ...
1
vote
0answers
345 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 ...
17
votes
4answers
29k 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. ...
0
votes
1answer
44 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
87 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
294 views

Editing the path files for configuring make file

I installed a new software in my Ubuntu 12.04. To install I downloaded it,and then do these in the terminal cd ~/Downloads chmod +x gpucomputingsdk_4.2.9_linux.run ...
1
vote
2answers
3k 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 ...
0
votes
1answer
106 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 ...
1
vote
1answer
2k 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 ...
3
votes
1answer
1k 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 ...