I need someone to compile a program from source.

spoonm

Can count to 3.
Member
Joined
May 20, 2015
Messages
192
Trophies
0
Website
spoonm.org
XP
299
Country
Brazil
The project you linked is using CMake instead of a regular GNU/Make makefile.

That's cool. Some projects don't even include makefiles. If you're familiar with the command line, these steps should be enough:
  • cd to the root of the repository. (To get it off github, git clone https://github.com/FGRE/nptools, then navigate to nptools/)
  • Use mkdir to create a build directory. (mkdir build)
  • cd to build.
  • Run cmake .. to get CMake to read CMakeLists.txt files and handle the rest of the compilation process.
Install CMake and have its process in your PATH environment variable. If you don't want to have it there permanently, run set PATH=%PATH%;C:\Path\To\CMake in the command prompt instance you're running.

I have never used CMake, so I can't help you with troubleshooting, in case you do encounter problems. Keep in mind GNU/Make and CMake are not compiler alternatives(don't quote me on that for CMake), but rather tools to assist the compilation process. Makefiles are there to simplify life, compiling is done purely by running make filename, where filename follows a recipe.

I'd advise you to read tutorials on how to use CMake.

For some reason, the CODE tags aren't working...

EDIT: Just realized you wanted someone to compile it for you. I'd do it, but I really can't be bothered to install CMake and use it just for that. You should use the opportunity to get familiar with CMake and other build utilities, like GNU/Make. On Windows, I used MinGW's mingw32-make, since I had been using it for gcc(GNU C Compiler), from GCC(GNU Compiler Collection, heh).

You can install GCC through mingw-get, which you install in order to install MinGW's packages, upon its own installation. Be sure to mark g++(GNU C++ Compiler) for instalation, if you want to compile C++ projects(like the one you linked).

Again, I never used CMake. Sorry, pal. Pressure the developers to include a binary release with the GitHub releases, maybe they'll do it.
 
Last edited by spoonm,
  • Like
Reactions: Lycan911

Lycan911

wolf boi
OP
Member
Joined
May 11, 2014
Messages
2,132
Trophies
1
Age
25
XP
4,118
Country
Germany
The project you linked is using CMake instead of a regular GNU/Make makefile.

That's cool. Some projects don't even include makefiles. If you're familiar with the command line, these steps should be enough:
  • cd to the root of the repository. (To get it off github, git clone https://github.com/FGRE/nptools, then navigate to nptools/)
  • Use mkdir to create a build directory. (mkdir build)
  • cd to build.
  • Run cmake .. to get CMake to read CMakeLists.txt files and handle the rest of the compilation process.
Install CMake and have its process in your PATH environment variable. If you don't want to have it there permanently, run set PATH=%PATH%;C:\Path\To\CMake in the command prompt instance you're running.

I have never used CMake, so I can't help you with troubleshooting, in case you do encounter problems. Keep in mind GNU/Make and CMake are not compiler alternatives(don't quote me on that for CMake), but rather tools to assist the compilation process. Makefiles are there to simplify life, compiling is done purely by running make filename, where filename follows a recipe.

I'd advise you to read tutorials on how to use CMake.

For some reason, the CODE tags aren't working...

EDIT: Just realized you wanted someone to compile it for you. I'd do it, but I really can't be bothered to install CMake and use it just for that. You should use the opportunity to get familiar with CMake and other build utilities, like GNU/Make. On Windows, I used MinGW's mingw32-make, since I had been using it for gcc(GNU C Compiler), from GCC(GNU Compiler Collection, heh).

You can install GCC through mingw-get, which you install in order to install MinGW's packages, upon its own installation. Be sure to mark g++(GNU C++ Compiler) for instalation, if you want to compile C++ projects(like the one you linked).

Again, I never used CMake. Sorry, pal. Pressure the developers to include a binary release with the GitHub releases, maybe they'll do it.
Thanks for your reply. I'm a complete noob when it comes to programming and compiling, which is why I made this thread. I'll try asking the person who made this project to release a compiled program, gonna post back when/if he does so.
 

spoonm

Can count to 3.
Member
Joined
May 20, 2015
Messages
192
Trophies
0
Website
spoonm.org
XP
299
Country
Brazil
Thanks for your reply. I'm a complete noob when it comes to programming and compiling, which is why I made this thread. I'll try asking the person who made this project to release a compiled program, gonna post back when/if he does so.

If he doesn't want to, let me know and I'll compile it for you. I can compile it on Windows 7, but not Windows 10, since I don't personally have a machine running that OS.

EDIT: Had some time to spare. Wasted a lot of it. Set CMake's CMAKE_C_COMPILER to gcc and CMAKE_CXX_COMPILER to g++, but the compilers failed the compiling test. At the moment, I gave up trying CMake and looked at the makefile history for nptools. There was a .sh file used for compiling that consisted of single g++ lines.

For that, though, I needed libnpa. Hooray, libnpa is by FGRE, but boohoo, they're using CMake there too. But wait, they had a g++ line for it some time ago. Oh no, that requires the Boost library. "How do I install Boost to MinGW?" led me to a lot of tutorials on compiling with nmake, bjam, etc.

So I lost my cool and now I have to shower and go to school. Found a MinGW installation with boost included, but since the g++ lines used for compiling those projects are super outdated, I didn't want to try that.

Oh well, guess I'll need to git gud if no one else shows up.
 
Last edited by spoonm,
  • Like
Reactions: Lycan911

Lycan911

wolf boi
OP
Member
Joined
May 11, 2014
Messages
2,132
Trophies
1
Age
25
XP
4,118
Country
Germany
The person who made the program still didn't answer my email, so I'm guessing he either dropped the project or just couldn't be bothered with it :/
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm