Как я устанавливаю Molsketch?

Я попытался установить molsketch выполнением, делают после выполнения cmake, в которой точке я получил вывод:

[  1%] Building CXX object libmolsketch/src/CMakeFiles/molsketch_LIB.dir/stereocenteritem.cpp.o
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp: In member function ‘virtual void Molsketch::StereoCenterItem::paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)’:
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:17: error: ‘StereogenicUnit’ is not a member of ‘OpenBabel’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:17: error: ‘StereogenicUnit’ is not a member of ‘OpenBabel’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:43: error: template argument 1 is invalid
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:43: error: template argument 2 is invalid
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:51: error: invalid type in declaration before ‘=’ token
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:66:97: error: cannot convert ‘OpenBabel::OBStereoUnitSet {aka std::vector<OpenBabel::OBStereoUnit>}’ to ‘int’ in initialization
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:68:40: error: request for member ‘size’ in ‘units’, which is of non-class type ‘int’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:69:17: error: request for member ‘at’ in ‘units’, which is of non-class type ‘int’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:70:62: error: request for member ‘at’ in ‘units’, which is of non-class type ‘int’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:73:17: error: request for member ‘at’ in ‘units’, which is of non-class type ‘int’
/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/stereocenteritem.cpp:74:62: error: request for member ‘at’ in ‘units’, which is of non-class type ‘int’
make[2]: *** [libmolsketch/src/CMakeFiles/molsketch_LIB.dir/stereocenteritem.cpp.o] Error 1
make[1]: *** [libmolsketch/src/CMakeFiles/molsketch_LIB.dir/all] Error 2
make: *** [all] Error 2

Вывод cmake был:

-- Unit testing enabled, run make test to run them
-- Found OpenBabel Trunk with graphsym.h
Qt QTASSISTANT library not found.
creating /home/brentonhorne/Downloads/Molsketch_build/libmolsketch/src/include/molsketch
UIS = /home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/mechanismarrowdialog.ui;/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/libmolsketch/src/reactionarrowdialog.ui
Qt QTASSISTANT library not found.
UIS = /home/brentonhorne/Downloads/Molsketch-0.2.0-Source/molsketch/src/settings.ui;/home/brentonhorne/Downloads/Molsketch-0.2.0-Source/molsketch/src/drawwidget.ui
-- Test:  valence
-- Configuring done
-- Generating done
-- Build files have been written to: /home/brentonhorne/Downloads/Molsketch_build
2
задан 2 February 2013 в 06:34

1 ответ

Дэрнинг делает meet Я сталкиваюсь с той же проблемой, что и ваша, в точке 48%.
Вам нужно изменить
Molsketch-0.2.0-Source / libmolsketch / src / stereocenteritem.cpp строка 66 на: std::vector<OpenBabel::OBStereoUnit> units = FindStereogenicUnits(obmol, symmetry_classes);
Когда компиляция достигнет 90%, Я столкнулся с другой проблемой:

Molsketch-0.2.0-Source / molsketch / src / mainwindow.cpp: 22: 28: фатальная ошибка: QAssistantClient: такого файла или каталога нет

Моя версия Qt 4.8.5. Удалите QAssistantClient после 4.7 +. Моим решением является комментирование каждой строки, связанной с QAssistantClient, в mainwindow.cpp и mainwindow.h.

0
ответ дан 2 February 2013 в 06:34

Другие вопросы по тегам:

Похожие вопросы: