How do I run this git hub program?

Hey guys, there is no make file to run. Do I run eclipse and make a new project?

But there is cmake files so I don't know how to implement them with unbuntu and the terminal.

Here is the link:

https://github.com/elaurens/yafic

p.s. I just want this to run in Linux and download csv files through C++.

Thanks!
Last edited on
It uses cmake. You need to pass the cmake file to cmake, it generates a makefile, then you run make.
Thank you so much I just downloaded cmake. Now what?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$ cmake
cmake version 2.8.12.2
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Options
  -C <initial-cache>          = Pre-load a script to populate the cache.
  -D <var>:<type>=<value>     = Create a cmake cache entry.
  -U <globbing_expr>          = Remove matching entries from CMake cache.
  -G <generator-name>         = Specify a build system generator.
  -T <toolset-name>           = Specify toolset name if supported by
                                generator.
  -Wno-dev                    = Suppress developer warnings.
  -Wdev                       = Enable developer warnings.
  -E                          = CMake command mode.
  -i                          = Run in wizard mode.
  -L[A][H]                    = List non-advanced cached variables.
  --build <dir>               = Build a CMake-generated project binary tree.
  -N                          = View mode only.
  -P <file>                   = Process script mode.
  --find-package              = Run in pkg-config like mode.
  --graphviz=[file]           = Generate graphviz of dependencies, see
                                CMakeGraphVizOptions.cmake for more.
  --system-information [file] = Dump information about this system.
  --debug-trycompile          = Do not delete the try_compile build tree.
                                Only useful on one try_compile at a time.
  --debug-output              = Put cmake in a debug mode.
  --trace                     = Put cmake in trace mode.
  --warn-uninitialized        = Warn about uninitialized values.
  --warn-unused-vars          = Warn about unused variables.
  --no-warn-unused-cli        = Don't warn about command line options.
  --check-system-vars         = Find problems with variable usage in system
                                files.
  --help-command cmd [file]   = Print help for a single command and exit.
  --help-command-list [file]  = List available listfile commands and exit.
  --help-commands [file]      = Print help for all commands and exit.
  --help-compatcommands [file]= Print help for compatibility commands.
  --help-module module [file] = Print help for a single module and exit.
  --help-module-list [file]   = List available modules and exit.
  --help-modules [file]       = Print help for all modules and exit.
  --help-custom-modules [file]= Print help for all custom modules and exit.
  --help-policy cmp [file]    = Print help for a single policy and exit.
  --help-policies [file]      = Print help for all policies and exit.
  --help-property prop [file] = Print help for a single property and exit.
  --help-property-list [file] = List available properties and exit.
  --help-properties [file]    = Print help for all properties and exit.
  --help-variable var [file]  = Print help for a single variable and exit.
  --help-variable-list [file] = List documented variables and exit.
  --help-variables [file]     = Print help for all variables and exit.
  --copyright [file]          = Print the CMake copyright and exit.
  --help,-help,-usage,-h,-H,/?= Print usage information and exit.
  --help-full [file]          = Print full help and exit.
  --help-html [file]          = Print full help in HTML format.
  --help-man [file]           = Print full help as a UNIX man page and exit.
  --version,-version,/V [file]= Show program name/version banner and exit.

Generators

The following generators are available on this platform:
  Unix Makefiles              = Generates standard UNIX makefiles.
  Ninja                       = Generates build.ninja files (experimental).
  CodeBlocks - Ninja          = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
  Eclipse CDT4 - Ninja        = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles
                              = Generates Eclipse CDT 4.0 project files.
  KDevelop3                   = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.
  Sublime Text 2 - Ninja      = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                              = Generates Sublime Text 2 project files.

mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$  

cmake -f CMakeLists.txt
make
Last edited on
Thank you so much. I am stuck at this part. Thanks again for the special forumla. I just started ubuntu yesterday.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$ cmake - CMakeLists.txt
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- YAFIC VERSION 0.0.a
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   thread
--   filesystem
--   program_options
--   system
--   date_time
-- Optional package Sqlite3 was not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mathewfok/Documents/yafic-master
mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$ make
Scanning dependencies of target yaficdata
[  6%] Building CXX object src/data/CMakeFiles/yaficdata.dir/Stock.cpp.o
[ 13%] Building CXX object src/data/CMakeFiles/yaficdata.dir/Industry.cpp.o
[ 20%] Building CXX object src/data/CMakeFiles/yaficdata.dir/Sector.cpp.o
[ 26%] Building CXX object src/data/CMakeFiles/yaficdata.dir/SectorContainer.cpp.o
[ 33%] Building CXX object src/data/CMakeFiles/yaficdata.dir/xml_parser.cpp.o
[ 40%] Building CXX object src/data/CMakeFiles/yaficdata.dir/SqliteManager.cpp.o
In file included from /home/mathewfok/Documents/yafic-master/src/data/SqliteManager.cpp:1:0:
/home/mathewfok/Documents/yafic-master/inc/data/SqliteManager.hpp:6:21: fatal error: sqlite3.h: No such file or directory
 #include <sqlite3.h>
                     ^
compilation terminated.
make[2]: *** [src/data/CMakeFiles/yaficdata.dir/SqliteManager.cpp.o] Error 1
make[1]: *** [src/data/CMakeFiles/yaficdata.dir/all] Error 2
make: *** [all] Error 2
mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$ 


The answer to the error seems to be in here. http://social.msdn.microsoft.com/Forums/en-US/7466182c-c12b-4241-af7f-2509fc69e15e/include-header-file-?forum=vclanguage
Last edited on
Got it to work!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mathewfok@mathewfok-Satellite-C855:~/Documents/yafic-master$ make
[  6%] Building CXX object src/data/CMakeFiles/yaficdata.dir/SqliteManager.cpp.o
[ 13%] Building CXX object src/data/CMakeFiles/yaficdata.dir/HistoData.cpp.o
Linking CXX static library libyaficdata.a
[ 46%] Built target yaficdata
Scanning dependencies of target yaficnet
[ 53%] Building CXX object src/net/CMakeFiles/yaficnet.dir/yahoo_config.cpp.o
[ 60%] Building CXX object src/net/CMakeFiles/yaficnet.dir/http_helper.cpp.o
[ 66%] Building CXX object src/net/CMakeFiles/yaficnet.dir/yahoo_finance.cpp.o
Linking CXX static library libyaficnet.a
[ 66%] Built target yaficnet
Scanning dependencies of target do_request
[ 73%] Building CXX object src/net/CMakeFiles/do_request.dir/do_request.cpp.o
Linking CXX executable do_request
[ 73%] Built target do_request
Scanning dependencies of target get_histodata
[ 80%] Building CXX object src/net/CMakeFiles/get_histodata.dir/get_histodata.cpp.o
Linking CXX executable get_histodata
[ 80%] Built target get_histodata
Scanning dependencies of target get_industries
[ 86%] Building CXX object src/net/CMakeFiles/get_industries.dir/get_industries.cpp.o
Linking CXX executable get_industries
[ 86%] Built target get_industries
Scanning dependencies of target get_stocks
[ 93%] Building CXX object src/net/CMakeFiles/get_stocks.dir/get_stocks.cpp.o
Linking CXX executable get_stocks
[ 93%] Built target get_stocks
Scanning dependencies of target yql_request
[100%] Building CXX object src/net/CMakeFiles/yql_request.dir/yql_request.cpp.o
Linking CXX executable yql_request
[100%] Built target yql_request

Topic archived. No new replies allowed.