Home Using software from a c++ program
Reply: 2

Using software from a c++ program

nest-user Published in 2017-12-07 13:08:48Z

I downloaded a c++ program for a software that i want to use, with the following directories : CHANGELOG LICENSE README.md build doc include src

The code is a bit old , and i want to compile it from a linux terminal , i know that i have to use gcc and make for that( that's all the install details says) but the src directories containing cpp files doesnt have a 'main.cpp' file , the build contains one file : Makefile What are the steps to follow to use this software , and how can i compile this with no main.cpp I'm using gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) and GNU Make 3.81 ; but the program is a bit old ( 2011)

Wouter Coebergh
Wouter Coebergh Reply to 2017-12-07 13:12:23Z

Without testing, could you try something like:

$ apt install cmake make gcc g++ 
$ cd build
$ cmake .
$ make .
$ make install
Clearer Reply to 2017-12-07 13:12:44Z

Most likely, just run make in the build folder

If that doesn't work, try reading the readme file.

You may have link errors, in which case you'll have to figure out which libraries are missing.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.338707 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO