Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem with compiling from Source

Help
christian
2007-09-23
2013-04-25
  • christian
    christian
    2007-09-23

    Hello

    Need some help. I try to compile from source the actual stable release 0.2.8-rc1, but get the following error.
    mv -f .deps/yahooquote.Tpo .deps/yahooquote.Plo
    /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../libawf -I../src -I../ -I/include/ta-lib -DHAVE_CONFIG_H   -g -O2 -MT tafn.lo -MD -MP -MF .deps/tafn.Tpo -c -o tafn.lo tafn.cc
    g++ -DHAVE_CONFIG_H -I. -I../libawf -I../src -I../ -I/include/ta-lib -DHAVE_CONFIG_H -g -O2 -MT markets.lo -MD -MP -MF .deps/markets.Tpo -c markets.cc -o markets.o
    mv -f .deps/marketrecord.Tpo .deps/marketrecord.Plo
    /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../libawf -I../src -I../ -I/include/ta-lib -DHAVE_CONFIG_H   -g -O2 -MT isin.lo -MD -MP -MF .deps/isin.Tpo -c -o isin.lo isin.cc
    g++ -DHAVE_CONFIG_H -I. -I../libawf -I../src -I../ -I/include/ta-lib -DHAVE_CONFIG_H -g -O2 -MT tafn.lo -MD -MP -MF .deps/tafn.Tpo -c tafn.cc -o tafn.o
    tafn.cc:22:23: error: ta_common.h: No such file or directory
    tafn.cc:23:21: error: ta_func.h: No such file or directory
    tafn.cc:24:21: error: ta_libc.h: No such file or directory
    tafn.cc: In constructor 'ta_init::ta_init()':
    tafn.cc:41: error: 'TA_Initialize' was not declared in this scope
    tafn.cc: In destructor 'ta_init::~ta_init()':
    tafn.cc:47: error: 'TA_Shutdown' was not declared in this scope
    tafn.cc: In function 'void obv(const std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> >&)':
    tafn.cc:82: error: 'TA_OBV' was not declared in this scope
    tafn.cc:82: error: 'TA_SUCCESS' was not declared in this scope
    tafn.cc: In function 'void moving_average(const std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, moving_average_type, int)':
    tafn.cc:110: error: 'TA_MAType' was not declared in this scope
    tafn.cc:110: error: 'TA_MA' was not declared in this scope

    I useed Qtstalker before, so talib ist installed. I upgraded talib to the actual stable release 0.4.0 but same error occour.

    Thanks for a short advice what is missing ...
    Chris

     
    • christian
      christian
      2007-09-23

      Just to inform you the -I/include/ta-lib is a bug since talib changed their install dir it is /usr/local/lib. would be Nice someone cann add a switch to configure file.

      Chris