You are not logged in.

#1 2010-08-02 11:14:37

rp181
Member
Registered: 2010-04-03
Posts: 81

LFANN Installation

I am trying to install lfann, but it is failing. Its only dependency is fann, which i have installed. When i try to install lfann, i get:

==> Starting build()...
gcc -shared -pipe -Wall `pkg-config --cflags lua` -O2 -fpic src/interface.c -o lfann.so -shared `pkg-config --libs lua` -ldoublefann
In file included from src/interface.c:21:0:
src/net.c: In function 'priv_callback_handle':
src/net.c:39:2: warning: implicit declaration of function 'fann_get_user_data'
src/net.c:39:22: warning: initialization makes pointer from integer without a cast
src/net.c: In function 'lfann_net_gc':
src/net.c:170:24: warning: initialization makes pointer from integer without a cast
src/net.c: In function 'lfann_net_set_weight':
src/net.c:338:2: warning: implicit declaration of function 'fann_set_weight'
src/net.c: In function 'lfann_net_set_callback':
src/net.c:397:3: warning: implicit declaration of function 'fann_set_user_data'
src/net.c: In function 'lfann_net_get_layer_array':
src/net.c:424:2: warning: implicit declaration of function 'fann_get_num_layers'
src/net.c:426:2: warning: implicit declaration of function 'fann_get_layer_array'
src/net.c: In function 'lfann_net_get_bias_array':
src/net.c:449:2: warning: implicit declaration of function 'fann_get_bias_array'
src/net.c: In function 'lfann_net_get_connection_array':
src/net.c:471:47: error: invalid application of 'sizeof' to incomplete type 'struct fann_connection' 
src/net.c:472:2: warning: implicit declaration of function 'fann_get_connection_array'
src/net.c:483:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:483:26: error: dereferencing pointer to incomplete type
src/net.c:493:4: error: invalid use of undefined type 'struct fann_connection'
src/net.c:493:27: error: dereferencing pointer to incomplete type
src/net.c:498:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:498:26: error: dereferencing pointer to incomplete type
src/net.c:499:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:499:25: error: dereferencing pointer to incomplete type
src/net.c:503:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:503:10: error: dereferencing pointer to incomplete type
src/net.c:503:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:503:43: error: dereferencing pointer to incomplete type
src/net.c:504:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:504:10: error: dereferencing pointer to incomplete type
src/net.c:504:3: error: invalid use of undefined type 'struct fann_connection'
src/net.c:504:42: error: dereferencing pointer to incomplete type
src/net.c: In function 'lfann_net_get_activation_function':
src/net.c:602:2: warning: implicit declaration of function 'fann_get_activation_function'
src/net.c: In function 'lfann_net_get_activation_steepness':
src/net.c:665:2: warning: implicit declaration of function 'fann_get_activation_steepness'
src/net.c: In function 'lfann_net_get_rprop_delta_zero':
src/net.c:910:2: warning: implicit declaration of function 'fann_get_rprop_delta_zero'
src/net.c: In function 'lfann_net_set_rprop_delta_zero':
src/net.c:922:2: warning: implicit declaration of function 'fann_set_rprop_delta_zero'
src/net.c: In function 'lfann_net_get_network_type':
src/net.c:986:2: warning: implicit declaration of function 'fann_get_network_type'
src/net.c: In function 'lfann_net_get_connection_rate':
src/net.c:997:2: warning: implicit declaration of function 'fann_get_connection_rate'
src/interface.c: In function 'luaopen_lfann':
src/interface.c:202:47: error: 'FANN_SIN' undeclared (first use in this function)
src/interface.c:202:47: note: each undeclared identifier is reported only once for each function it appears in
src/interface.c:203:57: error: 'FANN_SIN_SYMMETRIC' undeclared (first use in this function)
src/interface.c:204:47: error: 'FANN_COS' undeclared (first use in this function)
src/interface.c:205:57: error: 'FANN_COS_SYMMETRIC' undeclared (first use in this function)
src/interface.c:222:57: error: 'FANN_NETTYPE_LAYER' undeclared (first use in this function)
src/interface.c:223:60: error: 'FANN_NETTYPE_SHORTCUT' undeclared (first use in this function)
src/interface.c:244:63: error: 'FANN_E_SCALE_NOT_PRESENT' undeclared (first use in this function)
make: *** [lfann.so] Error 1
/tmp/clyde-phani/lfann/lfann/PKGBUILD: line 21: 1: command not found
    Aborting...
error: Build failed

Offline

Board footer

Powered by FluxBB