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
317
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

Well-Known Member
OP
Member
Joined
May 11, 2014
Messages
2,136
Trophies
2
Age
26
XP
4,495
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
317
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

Well-Known Member
OP
Member
Joined
May 11, 2014
Messages
2,136
Trophies
2
Age
26
XP
4,495
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 :/
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    👈 [belongs to one]
    +2
  • K3Nv2 @ K3Nv2:
    I wish people that think they're right about everything didn't exist half the time
  • AncientBoi @ AncientBoi:
    Such as you?
  • K3Nv2 @ K3Nv2:
    That's your way of thinking
  • BigOnYa @ BigOnYa:
    I bet it be tough finding a job, if you were a nudist.
  • AncientBoi @ AncientBoi:
    or vice versa
  • K3Nv2 @ K3Nv2:
    Nah it's easy all they gotta do is blow long breaths of air
  • BigOnYa @ BigOnYa:
    Confronts a nudist "Why be a nudist?" "I'm not a nudist you dick, I'm homeless and poor."
    +1
  • AncientBoi @ AncientBoi:
    I'm also saving 💰 . You know how much it is to just wash your clothes? pffffft
    +1
  • K3Nv2 @ K3Nv2:
    I saved 1k this month by being poor tbh
    +1
  • BigOnYa @ BigOnYa:
    Been eating Ramen all month, but my PC is badass!
    +1
  • K3Nv2 @ K3Nv2:
    Ramen still delicious don't care how much money I'll have
    +1
  • Minox @ Minox:
    I'm eating less, but mostly because I'm trying to avoid getting called heavy again during this year's health exam
    +1
  • Minox @ Minox:
    There's only so many ways they can say "You're fat by our country's standards"
    +1
  • K3Nv2 @ K3Nv2:
    My cholesterol was almost 350 so really stopped going out lol
  • AncientBoi @ AncientBoi:
    [uploads some 🐟 for you] :D @Minox
  • Minox @ Minox:
    I'll stick with my kimchi thank you
  • K3Nv2 @ K3Nv2:
    Triglycerides almost 900
  • Minox @ Minox:
    No idea what any of those things you mention are
    +1
  • K3Nv2 @ K3Nv2:
    Cholesterol and Triglycerides? Basically a way they measure fatty cells in your blood
  • AncientBoi @ AncientBoi:
    Cholesterol is sorta high, according to my doc
  • K3Nv2 @ K3Nv2:
    I've been taking fiber pills, eating more grapes, switched to wheat bread in hopes to lower it
    +1
  • BigOnYa @ BigOnYa:
    I like wheat bread, I even like the chunky wheat bread with pieces of whole grain in it.
    BigOnYa @ BigOnYa: I like wheat bread, I even like the chunky wheat bread with pieces of whole grain in it.