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

learn more… | top users | synonyms

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
votes
1answer
24 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
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 ...
0
votes
2answers
25 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
27 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
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 ...
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 ...
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?
1
vote
0answers
28 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
817 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?
1
vote
1answer
190 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
1answer
96 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
310 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
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
0answers
69 views

building/installing package with monodevelop failed, “Cannot open assembly '/usr/local/lib/…”

I want to build/install a mono/c# app I made on Linux. I made a packaging project and added a "tarball" package, using a generated autotools makefile. When i build the package and try to install it ...
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
2answers
737 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
1
vote
0answers
145 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 ...
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. ...
0
votes
1answer
38 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
0answers
33 views

how write Makefile for zeromq application

sudo make has error make all-am make[1]: Entering directory `/home/martin/Downloads/LivefeedServer' make[1]: *** No rule to make target `liblzmq.o', needed by `liblzmq.a'. Stop. make[1]: Leaving ...
0
votes
0answers
37 views

Colormake not working properly

I'm having a problem to use colormake (1) (2). First I installed it with apt-get and try to compile my makefile, but what I got, wasn't colourized properly. In other words, colors are changed, but ...
0
votes
0answers
512 views

Make file for creating shared library with multiple sources

I am having the makefile which will create a shared library for limited number of sources, FLAGS := -fPIC -O3 -g -Wall -Werror CC := gcc MAJOR := 0 MINOR := 1 NAME := foo VERSION := $(MAJOR).$(MINOR) ...
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
201 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
970 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
66 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
0answers
255 views

install Hello world module program on Beagle board-xm

i trying to insert a module onto Beagle-board-xm using cross compilation my Host Platform is Ubuntu 12.04.2 LTS and my target is Linux arm 3.6.8-x4 #1 SMP Tue Nov 27 17:49:05 UTC 2012 armv7l ...
0
votes
0answers
275 views

cannot find include file “fstream.h”

I need to compile files using makedepend. The command is makedepend -v -I/usr/include/g++-3/ $(IFLAGS) -- $(CFLAGS) -- $(SRCS) which was given as part of the MakeFile (the MakeFile was not created by ...
1
vote
1answer
907 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 ...
0
votes
0answers
91 views

JC1 error for make file on ubuntu terminal

I am new to Linux. Using make command resulted in the following error: LINK Sample_x86 jc1: error: unrecognized command line option ‘-quiet’ jc1: error: unrecognized command line option ‘-auxbase ...
3
votes
1answer
679 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 ...
0
votes
1answer
212 views

Undefined reference to symbol 'FcPatternAddDouble' - issue with building program

I'm Ubuntu 13.04 user. I haven't been able to build/install Japanese third-party software for artists called AzDrawing. Based on readme file, I executed make command in proper directory. At first it ...
0
votes
1answer
178 views

x11 directory specified in makefile doesn't exist, but project compiles and runs perfectly

So the x11 directory defined in the makefile is: usr/X11R6/lib64, which does not exist. however, the project compiles perfectly in Kdevelop and runs with no problems. If I take out all inclusions of ...
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... ...
0
votes
0answers
34 views

Problem with `make` command for ttf in Splash2 : unrecognized option

I want to compile ttf from Splash2 and i have a makefile in ttf's directory. when i run make command , it says unrecognized option ‘-non_shared’. How can i fix this error ?
2
votes
1answer
808 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: ...
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 ...
0
votes
1answer
389 views

Installing wifi driver error 127

I've got problem with installation wifi driver, terminal says error 127. make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-32-generic' ...
3
votes
1answer
400 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 ...
-1
votes
1answer
588 views

what is use of gcc flag -Wall [closed]

can some one help me to understand the use of -Wall flag in gcc? I am working on make file and not able to understand this flag. Thanks, vivek
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 ...
4
votes
1answer
881 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 ...
0
votes
1answer
167 views

Problems compiling Library

I am having some difficulties compiling some files that I downloaded (for academic purposes). I ran the following command : cd tmp/Detri_2.6.a/detri then make detri_new CC=gcc To build a ...
0
votes
1answer
370 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 ...
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
275 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 ...
3
votes
3answers
40k 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 ...
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?
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' ...