Best way to compile programs

  • Thread starter Thread starter Polarise
  • Start date Start date
  • Views Views 3,621
  • Replies Replies 47

Polarise

Well-Known Member
Member
Joined
Jul 12, 2016
Messages
827
Reaction score
99
Trophies
0
Age
25
XP
1,173
Country
United States
Hello, when I go to github and see the projects, I see that there are different file formats that they use to compile them.

Example:
[CMAKE]
[MAKEFILE].

Is there even a program where I could just click on that make file and it compiles? That would be great because I don't like using command lines.
 
You type "make", is it that hard?
For the really lazy, you could always include this shell script in the same folder as the Makefile, then you can just double-click. If you're on Linux or Mac, you might need to change it from make.bat to make.sh (or just make).

PS: Worst compression ratio ever.
 

Attachments

You type "make", is it that hard?
For the really lazy, you could always include this shell script in the same folder as the Makefile, then you can just double-click. If you're on Linux or Mac, you might need to change it from make.bat to make.sh (or just make).

PS: Worst compression ratio ever.
So I go to the file location of where the source is, I go to file, open in command window, then type make? Does it even matter if it is named cmake or makefile?

Btw I am on Windows.
 
So I go to the file location of where the source is, I go to file, open in command window, then type make? Does it even matter if it is named cmake or makefile?

Btw I am on Windows.
If there's a file named CMakefile, type cmake, then make.
Otherwise, if there's a file named Makefile, type make
 
What are the differences between the two and other names?
CMake does things like check for dependencies and figures out what libraries to use, and lets you configure things like the install prefix. It's similar to running a ./confiigure script, which some projects require you to do before running make. There's also aimake and qmake, and probably a whole bunch of other build systems.
 
make
Or cmake
When using the command line, the name of the command is also the name of the program.
 
make
Or cmake
When using the command line, the name of the command is also the name of the program.
when I type make or cmake in the command line it says an error. Is there a program that needs to be installed?
 
So I installed it successfully and now it says this when I type make on the command line:

Code:
C:\Users\*****\OneDrive\Documents\Wii U Backup\wiiu\apps\wupinstaller-master>make
make[1]: /c/Users/*****/OneDrive/Documents/Wii: No such file or directory
make[1]: *** No rule to make target `/c/Users/******/OneDrive/Documents/Wii'.  Stop.
make: *** [build] Error 2
 
Run it from a folder without spaces in the name
So I put the files on my desktop in a folder named compile. Now I came across this:

Code:
make[1]: *** No rule to make target `c:/Users/tarik/Downloads/wupinstaller-master/wupinstaller-master/src/entry.c', needed by `entry.o'.  Stop.
make: *** [build] Error 2
 

Site & Scene News

Popular threads in this forum