open-discussion > Welcome to Open-Discussion
Showing 1-6 of 6 posts
Display:
Results per page:
Jan 27, 2014  10:01 AM | Neuroinformatics Support
Welcome to Open-Discussion
Welcome to Open-Discussion
Mar 17, 2017  01:03 AM | Hiroyuki Akama - Tokyo Institute of Technology
Installation Question
Hello. Please forgive me for sending you a very basic question on installing Friend into a Ubuntu machine.
I am a complete beginner of Friend. When running ./buildAllUbuntu.sh and after vieweing many "recreating *** library" messages, I came across some warnings especially as follows,
main.cpp: In function 'int main(int, char**)':
main.cpp:17:37: error: 'strcpy' was not declared in this scope
if (argc >1) strcpy(port, argv[1]);
and only libMotor.so, libconnectivity.so, libBrainDecoding.so and libROI.so were created in /Application.
I am wishing to run a Python file in frontends, but engine.connectEngine(); dumped an error.
maybe executing the engine has something wrong. Much appreciated if you could help me.

The other messages are following.
/usr/local/fsl/extras/src/zlib/gzlib.c: In function 'gz_open':
/usr/local/fsl/extras/src/zlib/gzlib.c:11:17: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration]
# define LSEEK lseek
^
/usr/local/fsl/extras/src/zlib/gzlib.c:184:24: note: in expansion of macro 'LSEEK'
state->start = LSEEK(state->fd, 0, SEEK_CUR);
^
/usr/local/fsl/extras/src/zlib/gzread.c: In function 'gz_load':
/usr/local/fsl/extras/src/zlib/gzread.c:31:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
ret = read(state->fd, buf + *have, len - *have);
^
/usr/local/fsl/extras/src/zlib/gzread.c: In function 'gzclose_r':
/usr/local/fsl/extras/src/zlib/gzread.c:650:11: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
ret = close(state->fd);
^
/usr/local/fsl/extras/src/zlib/gzwrite.c: In function 'gz_comp':
/usr/local/fsl/extras/src/zlib/gzwrite.c:79:33: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration]
if (have && ((got = write(state->fd, state->next, have)) < 0 ||
^
/usr/local/fsl/extras/src/zlib/gzwrite.c: In function 'gzclose_w':
/usr/local/fsl/extras/src/zlib/gzwrite.c:528:12: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
ret += close(state->fd);

Thank you so much in advance.

Hiroyuki AKAMA
Associate Professor,
School of Life Science and Technology
Tokyo Institute of Technology,
Institute of Liberal Arts,
W9-10, O-okayama, Meguro-ku, Tokyo-152-8552
Japan
akama.h.aa@m.titech.ac.jp
http://www.dp.hum.titech.ac.jp
Mar 17, 2017  09:03 AM | Rodrigo Basilio - IDOR
RE: Installation Question
Hello, professor AKAMA,

My name is Rodrigo Basilio and I am the main developer of Friend Engine.
Thanks for using Friend Engine.
We opted to recreate these libraries bacause in some Linux installations the user did not have these libraries for some reason. Dont bother about these warnings.

Please add this include line in the main.cpp file

#include < cstring >
or 
#include < string.h >

to get rid of the error. I will update the github to correct this error for new users.

Best,
Rodrigo

PS.: Feel free to send more questions if you need.
Mar 17, 2017  07:03 PM | Hiroyuki Akama - Tokyo Institute of Technology
RE: Installation Question
Dear Rodrigo
Thank you so much. I have created "engine" in the directory Application and after executing this file to establish the local connection, I could run a frontend files of Python.
I feel it is quite cool and I am looking forward to performing a rt-MVPA using our GE Signa machine.
Much appreciated.

Best regards

Hiroyuki 

Hiroyuki AKAMA
Associate Professor,
School of Life Science and Technology
Tokyo Institute of Technology,
Institute of Liberal Arts,
W9-10, O-okayama, Meguro-ku, Tokyo-152-8552
Japan
akama.h.aa@m.titech.ac.jp
http://www.dp.hum.titech.ac.jp
Mar 17, 2017  08:03 PM | Hiroyuki Akama - Tokyo Institute of Technology
RE: Installation Question
Hi again

BTW there is no Frontends/Matlab/Friend.m in the package I installed. As I have Matlab and Instrument Control toolbox running in my Ubuntu machine, is there any other way instead of using Friend.m mentioned in the manual?
Thank you so much in advance.

Hiroyuki

Hiroyuki AKAMA
Associate Professor,
School of Life Science and Technology
Tokyo Institute of Technology,
Institute of Liberal Arts,
W9-10, O-okayama, Meguro-ku, Tokyo-152-8552
Japan
akama.h.aa@m.titech.ac.jp
http://www.dp.hum.titech.ac.jp
Mar 18, 2017  02:03 PM | Rodrigo Basilio - IDOR
RE: Installation Question
This file was renamed to FriendMotor.m and FriendRoi.m. The main difference between them is the plugin they use.

Best,
Rodrigo