Como instalo o Molsketch?

2

Eu tentei instalar o molsketch executando o make depois de executar o cmake, no ponto em que recebi a saída:

[  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

A saída do cmake foi:

-- 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
    
por BH2017 02.02.2013 / 03:34

1 resposta

1

Durning make , eu encontro o mesmo problema que o seu no ponto de 48%. Você precisa mudar
Molsketch-0.2.0-Source / libmolsketch / src / stereocenteritem.cpp linha 66 como: std::vector<OpenBabel::OBStereoUnit> units = FindStereogenicUnits(obmol, symmetry_classes);
Quando a compilação chega a 90%, eu encontro outro problema:

  

Molsketch-0.2.0-Source / molsketch / src / mainwindow.cpp: 22: 28: fatal   error: QAssistantClient: Nenhum arquivo ou diretório desse tipo

Minha versão Qt é 4.8.5.Qt remove QAssistantClient após 4.7 + .Minha solução é, comentar todas as linhas relacionadas a QAssistantClient em mainwindow.cpp e mainwindow.h.

    
por SkacoHan 04.02.2014 / 05:48