Questions tagged [makefile-project]

69 questions
22
votes
2 answers

Check if a makefile exists before including it

I have a makefile that includes a Rules.mak file that holds includes to tools I want to use. Problem is that the tools folder has free options if they want to extract a version or use the "native" installation. So I want to include the tools…
Andreas
  • 379
  • 3
  • 13
9
votes
3 answers

Makefiles, "configure" files, and other compilation tools -- How do they work? Why do they work the way they do?

I'm still new to the UNIX/Linux world, and, in particular, to related tools, such as the GCC compiler. Namely, I'm still new to makefiles and things like that (I use MinGW on Windows), since so far, most of my development has been with IDEs like…
user541686
  • 189,354
  • 112
  • 476
  • 821
7
votes
2 answers

QtCreator importing makefile projects

have You ever tried to import classic c++/make project into QtCreator ? Lets say I wanted to use in my gui project some library that needs to be build. How can I do this ?
Sebastian Dusza
  • 2,302
  • 2
  • 24
  • 49
5
votes
1 answer

Multi directory makefile for project

This is how my directory looks like: /project makefile /ceda_lib makefile files.... /general makefile files.... /CLI makefile files.... /objects files.o Makefile(main): 1…
alienCY
  • 215
  • 1
  • 10
4
votes
2 answers

Is there a Make debugger? I need to figure out someone else's makefile

I need to add some capabilities to very complex, multi-layered makefile (lots of include files, lots of targets, lots of variables) that was written by someone else who of course is no longer with the company. There are some folks here who…
SDGator
  • 1,855
  • 3
  • 19
  • 24
4
votes
1 answer

Error: use of deleted function std::basic_ofstream (OpenCV and C++11)

I'm trying to import a project that I wrote some time ago under Windows using C++11 and OpenCV but it is giving me troubles and I can't figure out why. It is a MakeFile project and I added a line to enable C++11 support. However, when I'm trying to…
user667804
  • 692
  • 5
  • 23
4
votes
2 answers

Integrate MinGW with Visual Studio 2010 (Makefile Project)

I'm trying to get MinGW (Version 4.7.2) working with Visual Studio 2010 to use some of the new C++11 features (sadly I'm still on WindowsXP and can't use Visual Studio 2012). To get started, I created a project with: File -> New Project -> Visual…
Constantin
  • 7,926
  • 12
  • 71
  • 112
3
votes
0 answers

Makefile-based Eclipse CDT with run/debug launch configuration depend on release/debug build configuration

I have a Makefile that based on given target (all/debug) generates executable in release/debug directories on the project folder. I have setup the Eclipse-CDT C/C++ build behavior mechanism to generate the right output depending on the active build…
dashesy
  • 2,229
  • 3
  • 39
  • 56
3
votes
1 answer

Building libvpx with Visual Studio 2015 on Windows 10 using Bash

I've found a bug in libvpx which is impeding my use of alpha in videos. I've fixed the bug but it means I must rebuild libvpx (the prior build is lost in the mists of time except for the headers and libraries). I've fetched version 1.6.1 and…
hatcat
  • 1,736
  • 15
  • 37
3
votes
0 answers

How can I build erlang project with Makefile in IntelliJ?

I want to use IntelliJ to build/debug an erlang project which comes with Makefile. Any idea?
user1532146
  • 165
  • 2
  • 14
3
votes
1 answer

Eclipse on Ubuntu: No rule to make target `all' error using existing makefile/project

I'm running Eclipse 3.7.2 with CDT installed. Ubuntu 12.04 LTS. I have an existing makefile C++ project that I'm trying to import from Geany. I can run $ make in the project's root directory, and everything builds as expected. My error in Eclipse:…
drmuelr
  • 804
  • 1
  • 11
  • 26
2
votes
2 answers

Automatically make files with Gnu Make utility with different build structure than source

I've seen the following technique used to automatically compile all of the C (or C++, or I suppose whatever extension you wanted) files in a particular directory. SOURCE_DIRS = . SOURCES := $(subst ./,,$(wildcard $(SOURCE_DIRS:=/*.cpp))) HEADERS :=…
Leif Andersen
  • 19,065
  • 16
  • 62
  • 92
2
votes
0 answers

Breakpoints are not being hit - Linux development with C++ in Visual Studio

I am trying to make a makefile linux development project using Visual Studio and WSL. I created a MakeFile Project Under the Cross Platform option, and connected to my WSL using ssh from the connection manager. When running the program (F5), the…
2
votes
1 answer

Qt Creator: How to use environment variables in the "project.includes" file when using Qt Creator as a code editor only (makefile project)

I am using Qt Creator as a Code Editor for a Makefile project (created by New File or Project -> Import Project -> Import Existing Project). Qt Creator creates an empty "projectname.includes" file. I maintain this file manually to resolve code…
2
votes
1 answer

Variable expansion in makefile for loop

APPS = a b c a_OBJ = x.o y.o z.o b_OBJ = p.o q.o r.o c_OBJ = s.o t.o k.o all: for i in $(APPS); \ do echo $("$${i}_OBJ"); \ done; In the above given sample Makefile I want to print the list of obj files inside the for loop…
bawejakunal
  • 1,488
  • 1
  • 21
  • 48
1
2 3 4 5