wxWidgets changes its API from time to time, which causes everyone
problems. I guess you've got an older or newer wxWidgets than we test with.
What version is it exactly? (I'm not sure how to find this out - maybe try
running wx-config)
In the meanwhile, you could avoid building the GUI using -DBUILD_GUI=OFF.
- Noel
On 9 April 2012 09:23, Park Hyerin <parkh...@gmail.com> wrote:
> Extract openbabel.tar.gz and make folder 'build'.
> and do cmake... And after that, I got some errors while process 'make'.
> Like below.
>
>
> [root@---- build]# make
> [ 20%] Built target openbabel
> [ 22%] Built target plugin_charges
> [ 24%] Built target plugin_descriptors
> [ 25%] Built target plugin_fingerprints
> [ 26%] Built target plugin_forcefields
> [ 31%] Built target plugin_ops
> [ 43%] Built target inchi
> [ 44%] Built target APIInterface
> [ 44%] Built target CSRformat
> [ 44%] Built target MCDLformat
> [ 45%] Built target MNAformat
> [ 45%] Built target PQSformat
> [ 45%] Built target abinitformat
> [ 46%] Built target acrformat
> [ 46%] Built target adfformat
> [ 46%] Built target alchemyformat
> [ 47%] Built target amberformat
> [ 47%] Built target balstformat
> [ 47%] Built target bgfformat
> [ 48%] Built target boxformat
> [ 48%] Built target cacaoformat
> [ 48%] Built target cacheformat
> [ 49%] Built target carformat
> [ 49%] Built target castepformat
> [ 49%] Built target cccformat
> [ 50%] Built target cdxmlformat
> [ 50%] Built target chem3dformat
> [ 50%] Built target chemdrawcdx
> [ 51%] Built target chemdrawct
> [ 51%] Built target chemkinformat
> [ 51%] Built target chemtoolformat
> [ 52%] Built target cifformat
> [ 52%] Built target cmlformat
> [ 53%] Built target cmlreactformat
> [ 53%] Built target copyformat
> [ 54%] Built target crkformat
> [ 54%] Built target cssrformat
> [ 54%] Built target dlpolyformat
> [ 55%] Built target dmolformat
> [ 55%] Built target fastaformat
> [ 55%] Built target fastsearchformat
> [ 55%] Built target fchkformat
> [ 56%] Built target featformat
> [ 56%] Built target fhformat
> [ 56%] Built target fhiaimsformat
> [ 57%] Built target fingerprintformat
> [ 57%] Built target freefracformat
> [ 57%] Built target gamessformat
> [ 58%] Built target gamessukformat
> [ 58%] Built target gausscubeformat
> [ 58%] Built target gaussformat
> [ 59%] Built target gausszmatformat
> [ 59%] Built target ghemicalformat
> [ 59%] Built target groformat
> [ 60%] Built target gromos96format
> [ 60%] Built target gulpformat
> [ 60%] Built target hinformat
> [ 61%] Built target inchiformat
> [ 62%] Built target jaguarformat
> [ 62%] Built target mdlformat
> [ 62%] Built target mmcifformat
> [ 62%] Built target mmodformat
> [ 63%] Built target mol2format
> [ 63%] Built target moldenformat
> [ 63%] Built target molproformat
> [ 64%] Built target molreport
> [ 64%] Built target mopacformat
> [ 64%] Built target mpdformat
> [ 65%] Built target mpqcformat
> [ 65%] Built target msiformat
> [ 65%] Built target msmsformat
> [ 66%] Built target nulformat
> [ 66%] Built target nwchemformat
> [ 66%] Built target opendxformat
> [ 67%] Built target outformat
> [ 67%] Built target pcmodelformat
> [ 67%] Built target pdbformat
> [ 68%] Built target pdbqtformat
> [ 68%] Built target pngformat
> [ 68%] Built target povrayformat
> [ 68%] Built target pqrformat
> [ 69%] Built target pubchem
> [ 69%] Built target pwscfformat
> [ 70%] Built target qchemformat
> [ 70%] Built target reportformat
> [ 70%] Built target rsmiformat
> [ 71%] Built target rxnformat
> [ 71%] Built target shelxformat
> [ 71%] Built target smilesformat
> [ 72%] Built target svgformat
> [ 72%] Built target textformat
> [ 72%] Built target thermoformat
> [ 73%] Built target tinkerformat
> [ 73%] Built target titleformat
> [ 73%] Built target turbomoleformat
> [ 74%] Built target unichemformat
> [ 74%] Built target vaspformat
> [ 74%] Built target viewmolformat
> [ 74%] Built target xedformat
> [ 75%] Built target xmlformat
> [ 75%] Built target xsfformat
> [ 76%] Built target xtcformat
> [ 76%] Built target xyzformat
> [ 76%] Built target yasaraformat
> [ 77%] Built target zindoformat
> [ 78%] Built target babel
> [ 78%] Built target obabel
> [ 78%] Built target obchiral
> [ 79%] Built target obconformer
> [ 79%] Built target obenergy
> [ 79%] Built target obfit
> [ 80%] Built target obgen
> [ 80%] Built target obgrep
> [ 80%] Built target obminimize
> [ 81%] Built target obprobe
> [ 81%] Built target obprop
> [ 81%] Built target obrotamer
> [ 81%] Built target obrotate
> [ 82%] Built target obspectrophore
> [ 82%] Building CXX object src/GUI/CMakeFiles/obgui.dir/OBGUI.o
> In file included from /root/Download/openbabel-2.3.1/src/GUI/OBGUI.cpp:28:
> /root/Download/openbabel-2.3.1/src/GUI/./OBGUI.h:173: error: expected
> class-name before ‘{’ token
> /root/Download/openbabel-2.3.1/src/GUI/OBGUI.cpp: In constructor
> ‘OBGUIFrame::OBGUIFrame(const wxString&, wxPoint, wxSize)’:
> /root/Download/openbabel-2.3.1/src/GUI/OBGUI.cpp:124: error:
> ‘SetDropTarget’ was not declared in this scope
> make[2]: *** [src/GUI/CMakeFiles/obgui.dir/OBGUI.o] Error 1
> make[1]: *** [src/GUI/CMakeFiles/obgui.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> It looks like syntax error but I couldn't find anything wrong.
> Of course, I didn't change anything in source files.
>
>
>
> this is OBGUI.h:173
>
> class DnD : public wxFileDropTarget
> {
> public:
> DnD(OBGUIFrame* parent) : m_pParent(parent){};
> virtual bool OnDropFiles(wxCoord, wxCoord, const wxArrayString&
> filenames)
> {
> m_pParent->DisplayInputFiles(filenames);
> return true;
> }
> private:
> OBGUIFrame* m_pParent;
> };
>
>
>
> And this is OBGUI.cpp: 124
>
> OBGUIFrame::OBGUIFrame(const wxString& title, wxPoint position, wxSize
> size)
> : wxFrame(NULL,wxID_ANY,title, position,size), m_pGenOptsPanel(NULL)
> {
> // set the frame icon
> SetIcon(wxICON(sample));
> * SetDropTarget(new DnD(this)); //newer method for file drap and drop*
> wxConfig config(_T("OpenBabelGUI"));
>
> // create a menu bar
> fileMenu = new wxMenu;
> viewMenu = new wxMenu;
> listMenu = new wxMenu;
> helpMenu = new wxMenu;
> viewMenu->AppendCheckItem(ID_RESTRICTFORMATS, _T("Use &restricted set of
> formats"));
> viewMenu->Append(ID_SELFORMATS, _T("&Select set of formats"));
> viewMenu->AppendSeparator();
> viewMenu->Append(ID_SETDISPLAYFILE, _T("Configure stucture display"));
>
>
>
> The line with red color is 124 line.
> I couldn't find the definition of the function 'SetDropTarget()'.
>
> What's wrong with this?.. I really don't know why :(
>
> Please help me!
>
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss