Best way to compile programs

Polarise

Well-Known Member
OP
Member
Joined
Jul 12, 2016
Messages
827
Trophies
0
Age
23
XP
1,143
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.
 

Mikemk

Well-Known Member
Member
Joined
Mar 26, 2015
Messages
2,090
Trophies
1
Age
28
XP
3,126
Country
United States
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

  • make.zip
    118 bytes · Views: 167

Polarise

Well-Known Member
OP
Member
Joined
Jul 12, 2016
Messages
827
Trophies
0
Age
23
XP
1,143
Country
United States
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.
 

Mikemk

Well-Known Member
Member
Joined
Mar 26, 2015
Messages
2,090
Trophies
1
Age
28
XP
3,126
Country
United States
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
 

0x40

Well-Known Member
Member
Joined
Apr 20, 2013
Messages
281
Trophies
1
Location
/
XP
807
Country
United States
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.
 

Mikemk

Well-Known Member
Member
Joined
Mar 26, 2015
Messages
2,090
Trophies
1
Age
28
XP
3,126
Country
United States
make
Or cmake
When using the command line, the name of the command is also the name of the program.
 

Polarise

Well-Known Member
OP
Member
Joined
Jul 12, 2016
Messages
827
Trophies
0
Age
23
XP
1,143
Country
United States
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
 

Polarise

Well-Known Member
OP
Member
Joined
Jul 12, 2016
Messages
827
Trophies
0
Age
23
XP
1,143
Country
United States
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu