Back to the main page.

Bug 1532 - Siemens acquisition software cannot be recompiled

Status ASSIGNED
Reported 2012-06-15 13:11:00 +0200
Modified 2013-05-23 17:56:35 +0200
Product: FieldTrip
Component: realtime
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P4 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Boris Reuderink - 2012-06-15 13:11:56 +0200

I can't recompile the Siemens acquisition software. Some libraries are missing (fl/fl*.h) and are not easily installed. I installed FLTK on my personal laptop, and found new problems: $ g++ -c nii_to_buffer.cc `fltk-config --cxxflags` -I../../buffer/src -I../../buffer/cpp -I. -Wunused -Wall -pedantic nii_to_buffer.cc: In function ‘int readAndCheckScannerFile(const char*)’: nii_to_buffer.cc:56:30: error: invalid conversion from ‘const char*’ to ‘char*’ nii_to_buffer.cc:60:29: error: invalid conversion from ‘const char*’ to ‘char*’ nii_to_buffer.cc: In function ‘int main(int, char**)’: nii_to_buffer.cc:168:107: warning: format ‘%i’ expects type ‘int’, but argument 3 has type ‘long unsigned int’ It would be nice to be able to recompile the Siemens acquisition software.


Boris Reuderink - 2012-11-02 13:29:50 +0100

I am no longer working on FieldTrip. Hence, I donate all my bugs to the joint development user.


Robert Oostenveld - 2013-01-24 12:29:02 +0100

I changed a bunch of bugs that were assigned to fieldtrip-bugs from ASSIGNED into NEW, since nobody is now explicitly working on them.


Robert Oostenveld - 2013-05-23 16:58:22 +0200

I downloaded fltk from the homepage and compiled it for 64 bit (default on os x with mac001> ./configure --prefix=/opt/fltk and separately for 32 bit with mac001> ./configure --prefix=/opt/fltk CFLAGS=-m32 LDFLAGS=-m32 CXXFLAGS=-m32


Robert Oostenveld - 2013-05-23 17:28:44 +0200

I had to attend to this http://stackoverflow.com/questions/10866331/freeglut-on-mac-os-x-lion


Robert Oostenveld - 2013-05-23 17:54:35 +0200

after the following commits I am able to compile it with the Makefile on OS X (i386) and Linux (i386) ------------------------------------------------------------------------ r8150 | roboos | 2013-05-23 17:28:17 +0200 (Thu, 23 May 2013) | 2 lines enhancement - added include ctype.h for isspace function (required for 32 bit RHEL3.4 linux on odin) ------------------------------------------------------------------------ r8149 | roboos | 2013-05-23 17:26:30 +0200 (Thu, 23 May 2013) | 2 lines enhancement added include ctype.h for isspace function (required for 32 bit RHEL3.4 linux on odin) ------------------------------------------------------------------------ r8148 | roboos | 2013-05-23 17:14:49 +0200 (Thu, 23 May 2013) | 2 lines enhancement - fixed the makefile, corrected the path settings, figured out how to use fltk, see http://bugzilla.fcdonders.nl/show_bug.cgi?id=1532


Robert Oostenveld - 2013-05-23 17:56:03 +0200

after the following commit it also compiles on 64 bit linux roboos@mentat001> svn commit Sending siemens/Brain3dWindow.cc Sending siemens/Brain3dWindow.h Sending siemens/FolderWatcher.cc Sending siemens/FolderWatcher.h Sending siemens/Makefile Sending siemens/PixelDataGrabber.cc Sending siemens/PixelDataGrabber.h Sending siemens/gui_buffer_client.cc Sending siemens/gui_streamer.cc Sending siemens/nii_to_buffer.cc Sending siemens/opengl_client.cc Sending siemens/pixeldata_to_remote_buffer.cc Sending siemens/siemensap.h Sending siemens/testFolderWatcher.cc Transmitting file data .............. Committed revision 8151. the main issue here was to fix the inconsistent naming of the Fl and FL directories and the *.h and *.H extensions of fltk. I don't understand why those are so messy, but I have not touched the fltk installation, only changed the includes in our code.