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
  • 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.
  • K3Nv2 @ K3Nv2:
    Been getting this honey wheat bread from aldis pretty decent not very sweet to out do it
  • K3Nv2 @ K3Nv2:
    Me making any food at home is an improvement to how I use to be
    +1
  • BigOnYa @ BigOnYa:
    I have an bread machine and use it alot, better than breads you buy, but don't last as long, cause no bs preservatives
  • K3Nv2 @ K3Nv2:
    I got compliments about my weight loss and thought well guess I can pig out again now I'm the piggy
  • BigOnYa @ BigOnYa:
    My biggest prob is alcohol, definitely is fattening
  • K3Nv2 @ K3Nv2:
    I know when to stop at least honestly don't get those that go and go with food
  • BigOnYa @ BigOnYa:
    Or those that order 2 big macs , large fry, ice cream sundie, then a diet coke
  • K3Nv2 @ K3Nv2:
    I might get downing two big macs but nah that's it
  • BigOnYa @ BigOnYa:
    Ok that will be $15.99, cash or charge?
  • K3Nv2 @ K3Nv2:
    My go to orders usually a mcdouble and a mcchicken and I'm happy rarely mess with fries
  • K3Nv2 @ K3Nv2:
    Pro tip ask for that clowns jizzmac sauce on your mcdouble
    +1
  • BigOnYa @ BigOnYa:
    Do they charge extra when you add sauce,etc? I know burger king used to not, but don't know nowadays
  • K3Nv2 @ K3Nv2:
    They may squrit it for free if you ask nice
    +1
  • K3Nv2 @ K3Nv2:
    Last time I got bk it was 35c per sauce fuck you king of my nutsack
    +1
  • K3Nv2 @ K3Nv2:
    I'll buy a bottle of baby rays BBQ for $2 and add it from home out of spite
    +1
  • BigOnYa @ BigOnYa:
    I like baby rays, my favorite is KC masterpiece tho. Figured all you could buy is that there.
  • K3Nv2 @ K3Nv2:
    The metro doesn't discriminate good sauce
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Baby Rays isn't that what killed the crocodile hunter?
  • Psionic Roshambo @ Psionic Roshambo:
    If only he had done an endorsement for them....
  • Psionic Roshambo @ Psionic Roshambo:
    Oy mate don't let a bad bbq sauce kill your party! Baby Rays are killing it!! The flavor hits you right in the chest!
    +1
  • Xdqwerty @ Xdqwerty:
    My phone only has 13% battery so i don't have much time left
  • Xdqwerty @ Xdqwerty:
    Now 12%
  • BigOnYa @ BigOnYa:
    Happy birthday, btw
    BigOnYa @ BigOnYa: Happy birthday, btw