Hi Freesurfer users,
I'm trying to compile utils on my Ubuntu 10.04 64 bit machine and I am getting a considerable amount of error while compiling afni.c
- I am using gcc-4.4.3, g++-4.4.3 for compilers - I have successfully installed VXL and MNI as per the developer's guide (I am not building any GUI apps) - Had to add "-I/usr/src/linux-headers-2.6.32-43/include" under CFLAGS in utils/Makefile since without it, it would spit out error message saying it cannot find <linux/compiler.h> - under the utils folder, "make" gives an error along the lines of "expected specifier-qualifier-list before ‘size_t’" (attaching error log file) - tried using older compiler gcc-3.3, g++3.3 but problems seems worse
I'm a bit stuck here and hoping that someone has had experience similar to this who can lend me some help?
Thanks very much!
cheers
Danny Kim Children's Brain Mapping Centre BC Children's Hospital
Hi Kim
You are missing some packages. https://help.ubuntu.com/community/CompilingEasyHowTo
You should install teh essential package for compiling in ubuntu by
sudo apt-get install build-essential and sudo apt-get install linux-libc-dev to get Linux headers in /usr/include/linux.
When building you should ensure that you meet the dependency before compiling.
Cheers
Knut J
On 10/18/2012 11:10 PM, Kim, Daniel wrote:
Hi Freesurfer users,
I'm trying to compile utils on my Ubuntu 10.04 64 bit machine and I am getting a considerable amount of error while compiling afni.c
- I am using gcc-4.4.3, g++-4.4.3 for compilers
- I have successfully installed VXL and MNI as per the developer's guide (I am not building any GUI apps)
- Had to add "-I/usr/src/linux-headers-2.6.32-43/include" under CFLAGS in utils/Makefile since without it, it would spit out error message saying it cannot find <linux/compiler.h>
- under the utils folder, "make" gives an error along the lines of "expected specifier-qualifier-list before 'size_t'" (attaching error log file)
- tried using older compiler gcc-3.3, g++3.3 but problems seems worse
I'm a bit stuck here and hoping that someone has had experience similar to this who can lend me some help?
Thanks very much!
cheers
Danny Kim Children's Brain Mapping Centre BC Children's Hospital
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
freesurfer@nmr.mgh.harvard.edu