Skip to main content

Questions tagged [makefile]

A makefile is an input file for the build control language/tool make. It specifies targets and dependencies along with associated commands to perform (a.k.a. recipes) to update the targets.

0 votes
0 answers
23 views

CMake: including assimp header files and linking to shared library [duplicate]

I am trying to include the assimp library to import models. When I went to compile the code using CMake I got a series of errors. I followed the build instructions to build a dynamic library on Assimp'...
aag's user avatar
  • 13
0 votes
1 answer
20 views

How to modify an environment variable from a MakeFile generated by a CMakeLists.txt?

I'm building a Qt project using CMake under Linux. My CMakeLists.txt generates .make files that I later run with make command. Because the projet contains .ui files, at some point uic is invoked. ...
jpo38's user avatar
  • 21.2k
0 votes
1 answer
22 views

Makefile Doesn't Recompile File After Source Changes

I am writing a small OS, but when I try to edit the stage1 bootloader source file it doesn't get recompiled. Here is the main Makefile: # Tools ASM = nasm # Directories SRC_DIR = src TARGET_DIR = ...
setorano's user avatar
0 votes
0 answers
23 views

converting a custom MAkefile rule to CmakeLists.txt

I have a Makefile which passes a define to each built target, by using the following rules: GET_SOURCE_ID = `grep $< $(SOURCE_IDS_LIST)| cut -f 1` %.o: %.c $(HEADERS) $(SOURCE_IDS_LIST) $(CC) $...
danmcb's user avatar
  • 341
0 votes
0 answers
34 views

Makefile - Header files not found even after inclusions

I am porting nRF8001 library to a stm32 mcu and in the makefile no matter how I include the header files it's not recognizing the path. I am not sure what's wrong with this makefile TARGET=main ...
Hako's user avatar
  • 3
-2 votes
0 answers
47 views

growisofs - How do I fix the errors returned by attempting to compile it in cygwin? [closed]

Context: I'm attempting to build growisofs from its source code (version 7.1) using the following command in the Cygwin terminal: make TARGET_ARCH=-m64, but it gives me several errors when I attempt ...
moochandaleech's user avatar
0 votes
1 answer
31 views

How to setup environmental variable from inside qmake .pro file on linux?

I need to setup environmental variable with path from inside the .pro file which of course builds tons of stuff. The path is known. The behavior I expect is: # my_project.pro DESTDIR=~/cool/path/to/a/...
Tomasz Małachowski's user avatar
0 votes
1 answer
59 views

C Preprocessor `#define` works on my local machine but failed in GitHub Actions despite being on the same architecture [closed]

C preprocessing defines are hard to guarantee its 'portability'? I think its my skills issue. In vector.h, I use a token VECTOR_H_i_TYPE, which is NOT explicitly defined in vector.h. It is to ...
Jim's user avatar
  • 707
0 votes
1 answer
74 views

How to configure debug and release mode for c++ with cmake

I am trying to set up a c++ project with cmake. I want to be able to compile my project in both release and debug mode, and I therefore want different folders for my executables. Since there are only ...
Henrik Melfald Kittang's user avatar
-1 votes
2 answers
37 views

How to get output of ls command into make variable and use it later on?

I want to get the output of the following shell command into a make variable: # The following is used as a path containing the following directories named: # install-20240714, install-20240715, ...
Thesevs SCUTULATUS's user avatar
1 vote
1 answer
63 views

dSYM not generated when building with make

On macOS 12.7.5 (Monterey) using gcc to compile *.c: gcc version 13.2.0, with gnu make 3.81, (I prefer command line tools over XCode), when I pass CFLAGS = -g in a makefile I get full debugging ...
perlboy's user avatar
  • 106
1 vote
0 answers
31 views

rspamd error: undefined reference to 'EVP_*'

I am trying to install rspamd, but am encountering the following error: [ 90%] Linking CXX executable rspamd librspamd-server.so: error: undefined reference to 'EVP_MD_get_size' librspamd-server.so: ...
BrownianBridge's user avatar
-1 votes
0 answers
15 views

Makefile Error "target pattern contains no '%'"

I'm encountering an error while running make with the following message: /home/ubuntu/.local/lib/python3.12/site-packages/cocotb/share/makefiles/simulator/Makefile.icarus:79: *** target pattern ...
Cornor Dark's user avatar
0 votes
1 answer
16 views

Serialize specific build targets during build process

I am facing fatal error C1060: compiler is out of heap space issue on Windows OS while compiling specific .c files in my project. Those .c files are huge and they eat memory when i run the build in -j%...
kathy's user avatar
  • 37
1 vote
0 answers
70 views

/usr/bin/ld multiple definition of during compile

I just want to mention that I didnt write this code or modify it in any way prior to trying to compile it. I have just been copying the source from EL5 to 6 to 7 and compiling it. I think when it went ...
ZCT's user avatar
  • 329

15 30 50 per page
1
2 3 4 5
1706