Attempting to install on OS X 10.6.6

36 views
Skip to first unread message

RCam

unread,
Jan 23, 2011, 3:13:22 PM1/23/11
to MIFit
I realize that OS X is not a supported platform, but I thought I'd
give it a go anyway. I found it was necessary to specify the compiler
and the location of the boost library. I added an empty conf.pri file.

#qmake -r -spec macx-g++ MI.pro PREFIX=/opt/MIFit BOOST=/usr/local/
boost_1_45_0/
#make

Installation ended with this error message:

In file included from ../../libs/umtz/umtzlib.h:10,
from ../../libs/umtz/mmtzlib.h:63,
from CMapHeaderBase.cpp:17:
../../libs/umtz/library.h:521:4: error: #error "Can't determine
machine number format"
CMapHeaderBase.cpp: In copy constructor
'CMapHeaderBase::CMapHeaderBase(const CMapHeaderBase&)':
CMapHeaderBase.cpp:72: warning: base class 'class QObject' should be
explicitly initialized in the copy constructor

I replaced MIFit-2010.10/libs/umtz/library.h with the version from
the latest version in the ccp4 source code (ccp4-6.1.13/lib/ccif/
library.h), and this seemed to solve the problem.

Installation now ends with this error message:

In file included from EMapBase.cpp:6:
../../libs/chemlib/MIMoleculeBase.h: In copy constructor
'chemlib::MIMoleculeBase::MIMoleculeBase(const
chemlib::MIMoleculeBase&)':
../../libs/chemlib/MIMoleculeBase.h:33: warning: base class 'class
QObject' should be explicitly initialized in the copy constructor
EMapBase.cpp: In member function 'virtual long int
EMapBase::LoadMap(const char*, int)':
EMapBase.cpp:1451: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1456: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1460: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1464: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1545: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1550: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1560: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1570: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1609: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1614: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1624: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp:1634: error: 'FLT_MAX' was not declared in this scope
EMapBase.cpp: In function 'void PutNearProtein(float, float, float,
MINATOM*, int, float*, float*, float*, CMapHeaderBase*)':
EMapBase.cpp:4273: error: 'FLT_MAX' was not declared in this scope
make[2]: *** [EMapBase.o] Error 1
make[1]: *** [sub-map-make_default] Error 2
make: *** [sub-libs-make_default-ordered] Error 2

I'm not sure how to proceed from here and any suggestions would be
appreciated.

Bradley Smith

unread,
Jan 23, 2011, 6:30:21 PM1/23/11
to mi...@googlegroups.com
Add #include <cfloat> to the top of EMapBase.cpp. This fix has also been added newest source in the gitorious repository.

Thanks,
  Bradley



--
You received this message because you are subscribed to the Google Groups "MIFit" group.
To post to this group, send email to mi...@googlegroups.com.
To unsubscribe from this group, send email to mifit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mifit?hl=en.


RCam

unread,
Jan 24, 2011, 6:20:55 PM1/24/11
to MIFit
Thanks Bradley. I made the change and tried to install again.
Installation now ends with this message:

gcc -c -pipe -g -gdwarf-2 -fPIC -Wall -W -Wno-unknown-pragmas -Wno-
unknown-pragmas -DDEBUG -I../../../Qt4.7/mkspecs/macx-g++ -I. -I../../
libs -I../../../boost_1_45_0 -I../../../../X11/include/X11 -I/System/
Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/
Library/Frameworks/AGL.framework/Headers -o umtzlib.o umtzlib.c
umtzlib.c: In function 'umtz_open':
umtzlib.c:13: warning: implicit declaration of function 'ccp4_nan'
umtzlib.c:13: error: request for member 'f' in something not a
structure or union
umtzlib.c:27: warning: implicit declaration of function 'ccp4_qopen'
umtzlib.c:29: warning: implicit declaration of function 'ccp4_qrarch'
umtzlib.c:30: warning: implicit declaration of function 'ccp4_qseek'
umtzlib.c:32: warning: implicit declaration of function 'ccp4_qmode'
umtzlib.c:33: warning: implicit declaration of function 'ccp4_qreadc'
umtzlib.c:34: warning: implicit declaration of function 'CCP4_fatal'
umtzlib.c:37: warning: implicit declaration of function 'ccp4_qread'
umtzlib.c:37: error: 'uint8' undeclared (first use in this function)
umtzlib.c:37: error: (Each undeclared identifier is reported only once
umtzlib.c:37: error: for each function it appears in.)
umtzlib.c:37: error: expected expression before ')' token
umtzlib.c:63: error: expected expression before ')' token
umtzlib.c:65: error: expected expression before ')' token
umtzlib.c: In function 'umtz_close':
umtzlib.c:103: warning: implicit declaration of function 'ccp4_qclose'
umtzlib.c:114: warning: implicit declaration of function 'ccp4_qwritc'
umtzlib.c:118: warning: implicit declaration of function 'ccp4_qwrite'
umtzlib.c:118: error: 'uint8' undeclared (first use in this function)
umtzlib.c:118: error: expected expression before ')' token
umtzlib.c:120: warning: implicit declaration of function 'ccp4_qwarch'
umtzlib.c:143: error: expected expression before ')' token
umtzlib.c:145: error: expected expression before ')' token
umtzlib.c: In function 'umtz_ismnf':
umtzlib.c:174: error: storage size of 'u' isn't known
umtzlib.c:176: warning: implicit declaration of function 'ccp4_isnan'
umtzlib.c:174: warning: unused variable 'u'
umtzlib.c: In function 'umtz_get_row':
umtzlib.c:234: error: 'uint8' undeclared (first use in this function)
umtzlib.c:234: error: expected expression before ')' token
umtzlib.c: At top level:
umtzlib.c:233: warning: unused parameter 'fdata'
umtzlib.c: In function 'umtz_add_row':
umtzlib.c:240: error: 'uint8' undeclared (first use in this function)
umtzlib.c:240: error: expected expression before ')' token
umtzlib.c: At top level:
umtzlib.c:236: warning: unused parameter 'fdata'
make[2]: *** [umtzlib.o] Error 1
make[1]: *** [sub-umtz-make_default] Error 2
make: *** [sub-libs-make_default-ordered] Error 2

I would once again be very grateful for any advice that you could
provide.

Thanks,
Robert
> > mifit+un...@googlegroups.com <mifit%2Bunsu...@googlegroups.com>.

Bradley Smith

unread,
Feb 16, 2011, 12:06:47 PM2/16/11
to MIFit
Getting the umtzlib to work will probably require upgrading it to the
latest version. Since the API has changed, that will take a bit of
work. I'll add it to the issues list.

Thanks,
Bradley

Bradley Smith

unread,
Mar 6, 2011, 5:00:40 PM3/6/11
to MIFit
After starting to work on upgrading the mtz library, I discovered a
potential solution with the current mtz library. It will now fall back
to Qt settings if it can't determine the platform's number format.
Please try the latest code from the repository.

Thanks,
Bradley
Reply all
Reply to author
Forward
0 new messages