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

learn more… | top users | synonyms

1
vote
1answer
12 views

problem in installing libfreenect2 on ubuntu 15.04

I'm trying to install libfreenect2. I have cloned the repository. I have made cmake successfully. But when I make the file, I get the following error: [ 3%] Building CXX object ...
10
votes
1answer
2k 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
2answers
38 views

How to add permanent flags? [closed]

I'm trying to compile my file by using make file.cpp It is doing g++ file.cpp -o file I need to add permanent -std=c++11 to it. Is it possible? How to do it?
7
votes
2answers
6k 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 $ dpkg -l ccache ii ccache 3.1.6-1 Compiler ...
1
vote
1answer
29 views

SNAP Installation C++

I am new to Linux and working in its environment. I have trouble understanding and installing SNAP library for C++ on Ubuntu 14.04. I am following this tutorial. Inside the SNAP directory I run the ...
0
votes
1answer
510 views

building caffe: failed to see hdf5.h

Hello caffe is a lib for deeplearning. When trying to build that lib under 15.04, the compilation fails with the message: :~/App/caffe$ make all PROTOC src/caffe/proto/caffe.proto CXX ...
1
vote
1answer
25 views

Must have libdb to build apt-ftparchive

I'm trying to build APT. However, I keep getting this message from the ftparchive makefile: Must have libdb to build apt-ftparchive It doesn't always print this, only sometimes? Which package do ...
0
votes
1answer
25 views

“Command not found” error in the installation process

Why I receive the following error while trying to install this package? and how can I resolve it? root@me-System-Product-Name:/home/me/Desktop/mfcuk-master# ls AUTHORS configure.ac INSTALL ...
0
votes
0answers
81 views

/usr/bin/ld: cannot find -ltk

I have just finished installing xgrafix and I moved onto installing xpdp1 and I am running into the following error. I have found similar post about linking the libraries but I cannot seem to get it ...
2
votes
2answers
1k 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 \ ...
3
votes
2answers
215 views

No targets specified and no makefile found in Nominatim installation

I'm trying to setting up my own OpenStreetMap server and i followed the official tutorial in Wikipedia and one other tutorial. First i clone Nominatim from GIT and i build it by taping : cd ...
0
votes
0answers
11 views

How can I create a configuration file?

I am have NXT-ROS and I'm trying to follow these steps: http://wiki.ros.org/nxt_ros/Tutorials/Getting%20started I am on step 3.2 and I don't know how to create a configuration file. I will also need ...
1
vote
3answers
206 views

bash:./program-name: Permission denied [closed]

I am trying to compile a set of c programs using makefile. The make command runs perfectly on any laptop, but on a PC, I get this error. I found a few links when I googled, but my problem isnt ...
0
votes
1answer
46 views

Multiple files in program tar.gz installation package. What should I compile?

I downloaded a tar.gz file, extracted it and there are 3 files: Makefile, program.c and protocol.h I've opened them in gedit and Makefile contains only one line program : program.c protocol.h In ...
0
votes
1answer
77 views

I can't run a program in Ubuntu 14.04

I've got a problem with a program I downloaded last week from GitHub. I tried to chmod it (a+x), tick option to run it as a program, but it didn't help. I don't get any notifications. It just does ...
0
votes
1answer
132 views

Add a new target into rules debian file

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
0answers
122 views

How to add libxml2 to a Makefile?

While compiling a C++ tool called BioC I encountered a problem with the libxml header. In my attempt to solve it I downloaded libxml2-2.9.2 and compiled it in '/usr/local/lib/'. Then I studied the ...
3
votes
3answers
71k 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
3answers
17k 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
0answers
148 views

No targets specified and no makefile found

What dependency am I missing? I am stuck on this one since hours. Any help is very appreciated. ./configure output http://pastebin.com/yEZ7snWp
0
votes
0answers
423 views

collect2: error: ld returned 1 exit status in snort

i am trying to make a shared object in snort. i have 3 files: 1.rule2329.c(my shared object) and 2.innerworkingsdynamic.c and a 3.makefile. this is my makefile content: ...
0
votes
1answer
33 views

Writing a makefile

I want to write a makefile that has a build rule, a run rule and a clean (delete the exe file) rule . This is quite a simple task, but how can one incorporate some rule in the makefile such that the ...
0
votes
1answer
177 views

make command fails

Hello Im completly new to Lubuntu(started this weekend). The first thing i want to install give me know a lot of trouble for this time. I want to install a driver for the Novation Launchapad. I have ...
0
votes
0answers
94 views

makefile: how to perform “ranlib” operation correctly

I downloaded a third party lib( Library link) which installs and compiles properly. It creates multiple object file (*.o), rather than creating executable, it's using gnu libtool to do some scripting. ...
0
votes
0answers
76 views

How to modify Makefile and configure file to create executable

I am new to linux/ubuntu; so, please bear with me if my question is trivial. I downloaded a library (http://www.jasoncantarella.com/wordpress/software/tsnnls/ ). It seems that this library uses ...
0
votes
0answers
197 views

“No targets specified and no makefile found. Stop.” , error occures while building android source code

I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository. Then I set required initial setup environment. And then try to build android source code. I did this entire ...
0
votes
1answer
510 views

Error running make - array type has incomplete element type

I am trying to install libbow library. When i run make file the following error is generated gcc -c -Ibow -I. -I./argp -DHAVE_LIBNSL=1 -DHAVE_STRERROR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_RANDOM=1 ...
0
votes
3answers
252 views

Error while make install xnee

I did the ./configure and make with root permission but I can't make install. output: Making install in libxnee make[1]: Entering directory '/home/alex/xnee-3.19/libxnee' Making install in src ...
1
vote
2answers
123 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: ...
1
vote
1answer
259 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
1k 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
80 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
143 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 ...
0
votes
1answer
173 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
137 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
2k 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 ...
0
votes
0answers
182 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
90 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
74 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
141 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
304 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 ...
4
votes
2answers
11k 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
2k 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
2
votes
1answer
2k 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
4k 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
52 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
198 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
15 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
4k 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
4k 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?