Taking this back to the mailing list (thus keeping most of your mail), please 
ensure to CC it on reply.

(@Jan, __alignof isn't the same as __alignof__ and doesn't work on abstract 
classes)

On Donnerstag, 18. Februar 2016 14:52:18 CEST, иван нецкин wrote:
i have to admit i'm a junior programmer and not aware of how to build
projects with CMakeLists.txt. Here is some "tutorial" of how to build
trojita taken from your site:
Compilation

Go to the directory created by Git (or unpacked from the archive) and run:
$ mkdir _build; cd _build
$ cmake ..
$ make -j4
$ ctest -j 4 --output-on-failure
 and i'm stuck at  the "make -j4 command".My windows command prompt don't
know this command

That's pretty much a tutorial for the GNU/CLANG toolchain, MSVC doesn't use 
"make" (and I doubt it's installed to some %PATH anyway)

after googling i've found answer on forum, that to make
command prompt recognize the command "make -j4" i should first install
mingw compiler

That's the gcc toolchain.

and add to environments variables path to that compiler.
I have done it but it's still not work.
After googling i've found out on some forum that when you open from qt
creator the CMakeLists.txt instead of a pro file u can instantly compile
it.But i got compiler error:

"C:\trojita-master\trojita-master\src\Imap\Model\MailboxTree.cpp:70: error:
C2259: 'Imap::Mailbox::TreeItem' : cannot instantiate abstract class
due to following members:
'void Imap::Mailbox::TreeItem::fetch(Imap::Mailbox::Model *const )' : is
abstract"


You're still using MSVC and apparently it stumbles across __alignof for an 
abstract class.
See:
https://msdn.microsoft.com/library/45t0s5f4(v=vs.110).aspx
and also
http://blog.gmane.org/gmane.mail.trojita.general/month=20140201

=> Select GCC (should now be available through MINGW) or specify your earlier 
troubles with MINGW.

btw, i've read on forums that clang is not the best choice if your OS is
Windows.

Because?

I would be very grateful if you would be a little more specific on how to
build trojita on windows.

Right now you'll have to build using CLANG or GCC - MSVC won't work (not even 
2013), sorry.

Cheers,
Thomas

Reply via email to