Should I first try to compile Avogadro from the source and then move to solving the issues …but the doc stated
First off, we are currently working on Avogadro2 (https://two.avogadro.cc/) so you’d want to work on that. Avogadro v1 isn’t something we can develop, not the least because Qt4 and OpenBabel v2 aren’t supported.
Yes, compiling on Windows isn’t trivial, but it is a necessary step if you want to contribute code.
If you want newer docs for new contributors, I’d suggest this:
I have started building OpenChemistry (super build) using these docs. I am not able to install Qt as on their website they are giving 10 day trail for the free version perhaps. And does installing OpenGL refer to configuring visual studio using a package manager like vcpkg ?? Can you please confirm and guide how to proceed ahead.
Thank you very much
I am facing many build errors while building open chemistry (super build).
I downloaded qt5 (msvc2019_64 package only due to lack of disk space) using the link you provided.
I have selected the below components to be built using cmake gui
Thank you sir,
I have built OpenChemistry , now I am trying to work on this issue #795 So can you please provide me with some guide so that I can understand the codebase as it is very large and am not able to understand where to make changes ?
Do we have to make changes here that is after selection of the required molecules which need to be replaced (or as separate entity)?
Very Sorry …I am very new to open source and thus need your help to understand the codebase and the path… how to proceed ahead.
For a new command, you’d want to copy one of the avogadro/qtplugins/ directories. The selection plugin you linked is probably okay, but perhaps the lineformatinput plugin or insertdna are better … all fairly small commands.
To make sure your new alchemy plugin is built, you’ll need to add your new directory to avogadro/qtplugins/CMakeLists.txt
At first, I’d just concentrate on putting up a small dialog to change one element to another, e.g. a popup menu of the element to find and the element to change.
Does that help? Yes, it’s a big codebase, but most of the features are in the individual directories, so you just need to concentrate in one area.
Looks like its almost done, please help me resolve this
CMake Error at CMakeLists.txt:81 (find_package):
By not providing “FindQt5.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Qt5”, but
CMake did not find one.
Could not find a package configuration file provided by “Qt5” with any of
the following names:
Add the installation prefix of “Qt5” to CMAKE_PREFIX_PATH or set “Qt5_DIR”
to a directory containing one of the above files. If “Qt5” provides a
separate development package or SDK, be sure it has been installed.
Also state should I create 2 separate classes for selection and replacement? But when I refered to insertdna there was one class for one dialog hence here also I think there would be just one class with multiple methods inside it. Am I right?
Here NucleicInput is just for representing the plugin or does it mean certain kind of input?
Also how can I see the output after I make any changes in the code? Do I have to build the target or just run something
Configured successfully by adding few lines to the cmake file, it was bit tricky for windows
But I am getting these errors now when I ran cmake --build . --config Release
Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options iostreams)
– Found Eigen3: C:/project/openchemistry-build/prefix/include/eigen3 (Required is at least version “2.91.0”)
– Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem iostreams unit_test_framework)
– Maestro formats will NOT be supported. Please install Boost to enable Maestro formats.
– Coordinate generation with Coordgen will NOT be supported. Please install Boost to enable Maestro formats.
– Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
– Could NOT find RapidJSON (missing: RAPIDJSON_INCLUDE_DIRS) (Required is at least version “1.1.0”)
– Downloaded RapidJSON to C:/project/openchemistry-build/thirdparty/openbabel-prefix/src/openbabel/external/rapidjson-1.1.0.
– JSON formats will be supported. Using RapidJSON 1.1.0 at C:/project/openchemistry-build/thirdparty/openbabel-prefix/src/openbabel/external/rapidjson-1.1.
– Could NOT find Cairo (missing: CAIRO_LIBRARIES CAIRO_INCLUDE_DIRS)
– Could NOT find Cairo. PNG output will NOT be supported.
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Perl (missing: PERL_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.27/Modules/FindPerl.cmake:84 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
– Configuring incomplete, errors occurred!
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(248,5): error MSB8066: Custom build for ‘C:\proj
hemistry-build\CMakeFiles\307eac8877e45de3dbafd42f06287329\openbabel.rule;C:\project\openchemistry\thirdparty\CMakeLists.txt’ exited with code 1. [C:\project
Please help me with this @ghutchis
Have you incurred this error @Dhruv_J
Hello, I don’t think I had encountered these errors. Did you go with superbuild? As, I said docs and running through the terminal worked for me.
I feel mentors could help us better if we concentrate on one topic in one thread, So I am creating another topic for this issue #795 .