bayerj / arac

C++ library for neural networks.
Other
39 stars 57 forks source link

Build errors of convolve.cpp on linux #18

Open smithsp opened 11 years ago

smithsp commented 11 years ago

In issuing the scons command, I get the following errors:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/cpp/structure/connections/convolve.os -c -O3 -fPIC -I/usr/local/include -I/sw/include -I/usr/include src/cpp/structure/connections/convolve.cpp
src/cpp/structure/connections/convolve.cpp:9:23: error: cblas.h: No such file or directory
In file included from src/cpp/structure/connections/../modules/../../common/common.h:11,
                 from src/cpp/structure/connections/../modules/module.h:10,
                 from src/cpp/structure/connections/convolve.h:9,
                 from src/cpp/structure/connections/convolve.cpp:13:
src/cpp/structure/connections/../modules/../../common/functions.h:52:7: warning: no newline at end of file
In file included from src/cpp/structure/connections/convolve.h:10,
                 from src/cpp/structure/connections/convolve.cpp:13:
src/cpp/structure/connections/../parametrized.h:106:7: warning: no newline at end of file
src/cpp/structure/connections/convolve.cpp: In member function 'virtual void arac::structure::connections::ConvolveConnection::forward_process(double*, const double*)':
src/cpp/structure/connections/convolve.cpp:49: error: 'CblasRowMajor' was not declared in this scope
src/cpp/structure/connections/convolve.cpp:52: error: 'CblasNoTrans' was not declared in this scope
src/cpp/structure/connections/convolve.cpp:71: error: 'cblas_dgemv' was not declared in this scope
src/cpp/structure/connections/convolve.cpp: In member function 'virtual void arac::structure::connections::ConvolveConnection::backward_process(double*, const double*)':
src/cpp/structure/connections/convolve.cpp:88: error: 'CblasColMajor' was not declared in this scope
src/cpp/structure/connections/convolve.cpp:91: error: 'CblasNoTrans' was not declared in this scope
src/cpp/structure/connections/convolve.cpp:110: error: 'cblas_dgemv' was not declared in this scope
scons: *** [src/cpp/structure/connections/convolve.os] Error 1
scons: building terminated because of errors.

Note my environment:

> scons -version
SCons by Steven Knight et al.:
    engine: v2.2.0.issue-2856:2676:d23b7a2f45e8[MODIFIED], 2012/08/05 15:38:28, by garyo on oberbrunner-dev
    engine path: ['/u/smithsp/local64/lib/python2.7/site-packages/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 The SCons Foundation
> swig -version

SWIG Version 1.3.36

Compiled with g++ [x86_64-unknown-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information

Any suggestions? Am I not sufficiently providing BLAS/ATLAS packages?