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,089
Trophies
1
Age
28
XP
3,107
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: 166

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,089
Trophies
1
Age
28
XP
3,107
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,089
Trophies
1
Age
28
XP
3,107
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
  • RedColoredStars @ RedColoredStars:
    i dont know why tv manufactures put the hdmi ports in dumb locations so the cables have to stick out, and then down, putting strain on the ports. Instead of having the ports along the bottom edge of the tv facing downwards.
  • ZeroT21 @ ZeroT21:
    windows me was mostly on laptops if i remembered correctly
  • SylverReZ @ SylverReZ:
    @RedColoredStars, I hate that too where you have to use an HDMI extension for an Amazon Fire Stick.
    +1
  • RedColoredStars @ RedColoredStars:
    I had a desktop with ME on it.
  • SylverReZ @ SylverReZ:
    @ZeroT21, And also cheap-ass desktop PCs like eMachines.
  • RedColoredStars @ RedColoredStars:
    Worst MS OS in history. Period.
  • K3Nv2 @ K3Nv2:
    My entertainment centers blocking all my io gotta fix that eventually
  • ZeroT21 @ ZeroT21:
    I had used win 98 SE till XP arrived
  • SylverReZ @ SylverReZ:
    Had a ton of bugs and often crashed. It even didn't support DOS compatibility with older games. :feelsbadman:
  • SylverReZ @ SylverReZ:
    I only grew up with Windows XP because I was lucky.
  • RedColoredStars @ RedColoredStars:
    I downloaded XP on dialup when it came out. Overnights for like a week. cuz I couldn't tie up the phone line during the day. It was so awesome and worked so great going from ME to XP.
  • K3Nv2 @ K3Nv2:
    Vga pins were a dick
  • K3Nv2 @ K3Nv2:
    I kind of want down a large pizza at 10am then crash out
  • ZeroT21 @ ZeroT21:
    Having pizza all day? done it
  • K3Nv2 @ K3Nv2:
    Nah pizza hut open at 10:30
  • ZeroT21 @ ZeroT21:
    just buy a stack of pizza and keep the rest you don't need yet frozen
  • K3Nv2 @ K3Nv2:
    Or buy frozen pizza
  • ZeroT21 @ ZeroT21:
    I buy the regular kind, not the frozen stuff
  • ZeroT21 @ ZeroT21:
    supermarket pizza is ass
  • K3Nv2 @ K3Nv2:
    x65 would just yell at me
  • ZeroT21 @ ZeroT21:
    sounds ok, he didn't pull a gun out ,so...
  • K3Nv2 @ K3Nv2:
    $12 large any style pizza deal
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
    K3Nv2 @ K3Nv2: Nah I can still go for totinos