nixeimar / apothesis Goto Github PK
View Code? Open in Web Editor NEWApothesis: A kinetic Monte Carlo software for deposition processes
Home Page: http://users.ntua.gr/nixeimar/
License: GNU General Public License v3.0
Apothesis: A kinetic Monte Carlo software for deposition processes
Home Page: http://users.ntua.gr/nixeimar/
License: GNU General Public License v3.0
/usr/bin/ld: CMakeFiles/apothesis.dir/src/apothesis.cpp.o: in function `Apothesis::init()':
apothesis.cpp:(.text+0x5f8): undefined reference to `Diamond::Diamond(Apothesis*)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/apothesis.dir/build.make:593: apothesis] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/apothesis.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
The following warnings appear when compiling (with gcc-7
)
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o adsorption.o adsorption.cpp
In file included from adsorption.cpp:18:0:
adsorption.h: In constructor ‘MicroProcesses::Adsorption::Adsorption()’:
adsorption.h:111:9: warning: ‘MicroProcesses::Adsorption::m_iNeighNum’ will be initialized after [-Wreorder]
int m_iNeighNum;
^~~~~~~~~~~
adsorption.h:88:16: warning: ‘Apothesis* MicroProcesses::Adsorption::m_apothesis’ [-Wreorder]
Apothesis* m_apothesis;
^~~~~~~~~~~
adsorption.cpp:26:1: warning: when initialized here [-Wreorder]
Adsorption::Adsorption():m_sName("Adsorption"),m_iNeighNum(0), m_apothesis(0)
^~~~~~~~~~
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o diffusion.o diffusion.cpp
In file included from diffusion.cpp:18:0:
diffusion.h: In constructor ‘MicroProcesses::Diffusion::Diffusion()’:
diffusion.h:101:9: warning: ‘MicroProcesses::Diffusion::m_iNeighNum’ will be initialized after [-Wreorder]
int m_iNeighNum;
^~~~~~~~~~~
diffusion.h:78:16: warning: ‘Apothesis* MicroProcesses::Diffusion::m_apothesis’ [-Wreorder]
Apothesis* m_apothesis;
^~~~~~~~~~~
diffusion.cpp:27:1: warning: when initialized here [-Wreorder]
Diffusion::Diffusion():m_sName("Diffusion"),m_iNeighNum(0), m_apothesis(0)
^~~~~~~~~
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o errorhandler.o errorhandler.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o factory_process.o factory_process.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o io.o io.cpp
In file included from io.cpp:18:0:
io.h: In constructor ‘IO::IO(Apothesis*)’:
io.h:188:12: warning: ‘IO::m_sIterations’ will be initialized after [-Wreorder]
string m_sIterations;
^~~~~~~~~~~~~
io.h:185:12: warning: ‘std::__cxx11::string IO::m_sCommentLine’ [-Wreorder]
string m_sCommentLine;
^~~~~~~~~~~~~~
io.cpp:20:1: warning: when initialized here [-Wreorder]
IO::IO(Apothesis* apothesis):Pointers( apothesis),
^~
io.cpp: In member function ‘void IO::init(int, char**)’:
io.cpp:38:20: warning: unused parameter ‘argc’ [-Wunused-parameter]
void IO::init( int argc, char* argv[] )
^~~~
io.cpp:38:37: warning: unused parameter ‘argv’ [-Wunused-parameter]
void IO::init( int argc, char* argv[] )
^
io.cpp: In member function ‘std::__cxx11::string IO::getInputPath() const’:
io.cpp:44:35: warning: no return statement in function returning non-void [-Wreturn-type]
string IO::getInputPath() const {;}
^
io.cpp: In member function ‘void IO::readInputFile()’:
io.cpp:67:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0; i< vsTokens.size(); i++){
~^~~~~~~~~~~~~~~~~
io.cpp:151:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 2; i < vsTokens.size(); i++ ){
~~^~~~~~~~~~~~~~~~~
io.cpp: In member function ‘std::__cxx11::string IO::simplified(std::__cxx11::string)’:
io.cpp:177:10: warning: unused variable ‘i’ [-Wunused-variable]
size_t i = 0;
^
io.cpp:180:20: warning: variable ‘it’ set but not used [-Wunused-but-set-variable]
string::iterator it = str.begin();
^~
io.cpp: In member function ‘bool IO::isNumber(std::__cxx11::string)’:
io.cpp:207:10: warning: unused variable ‘i’ [-Wunused-variable]
size_t i = 0;
^
io.cpp:209:20: warning: variable ‘it’ set but not used [-Wunused-but-set-variable]
string::iterator it = str.begin();
^~
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o lattice.o lattice.cpp
lattice.cpp: In member function ‘void Lattice::build()’:
lattice.cpp:60:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0; i < m_vSites.size(); i++)
~~^~~~~~~~~~~~~~~~~
lattice.cpp: In member function ‘void Lattice::check()’:
lattice.cpp:675:7: warning: unused variable ‘k’ [-Wunused-variable]
int k = 0;
^
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o main.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o parameters.o parameters.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o process.o process.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o site.o site.cpp
g++ -c -pipe -O2 -std=gnu++11 -Wall -W -fPIC -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o apothesis.o apothesis.cpp
In file included from pointers.h:21:0,
from apothesis.cpp:18:
apothesis.h: In constructor ‘Apothesis::Apothesis(int, char**)’:
apothesis.h:49:14: warning: ‘Apothesis::pLattice’ will be initialized after [-Wreorder]
Lattice* pLattice;
^~~~~~~~
apothesis.h:46:9: warning: ‘IO* Apothesis::pIO’ [-Wreorder]
IO* pIO;
^~~
apothesis.cpp:29:1: warning: when initialized here [-Wreorder]
Apothesis::Apothesis( int argc, char* argv[] ):pLattice( 0 ),pIO( 0 )
^~~~~~~~~
apothesis.cpp: In member function ‘void Apothesis::init()’:
apothesis.cpp:68:7: warning: unused variable ‘procsCounter’ [-Wunused-variable]
int procsCounter = 0;
^~~~~~~~~~~~
g++ -Wl,-O1 -o Apothesis adsorption.o diffusion.o errorhandler.o factory_process.o io.o lattice.o main.o parameters.o process.o site.o apothesis.o
error.txt
I cloned Apothesis repository, then cloned rapidson and copied rapidjson/include/rapidjson in Apothesis/src folder.
then ran qmake and make
then made a new folder "build" in src.
Ran "cmake .." then "make -j"
Getting the attached error. Please guide me through this installation issue.
I am using centos7.
"qmake" executes the .pro file so when we run qmake in the Apothesis directory.
It doesn't able to find the files and directories.
It is showing lots of error same as shown in picture.
When I am directly using qt creator to build it is showing tons of errors like variables are not in scope, unable to find the file or directory, and so on.
When I used cmake to build it did it's work, but not able to generate a .makefile inside the build directory. so make didn't able to execute it.
I think there are some dependencies, windows needed if we could able to add that in our project then we would able to run it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.