qPCR4vir / nana-docs

A Nana offline doxygen dodocumentation project
54 stars 6 forks source link

Compiling Nana with MinGW #1

Closed rajko-d closed 8 years ago

rajko-d commented 9 years ago

Hi on link https://github.com/qPCR4vir/nana-docs/wiki/Install-and-use-nana-with-mingw---step-by-step are instruction for compiling nana lib. On step 9 (click "generate") you didn't specify generator for this project we should use, I suppose MinGw Makefiles and I specify c and c++ compiler but errors occur. My OS is Windows 8.1 64bit, MinGW distribution from http://nuwen.net/, cmake 3.2.2, latest nana from hotfix 1.0.2 branch.Also step 15 ( type "mingw32-make" ) is questionable because it doesn't exist in mingw folder, only make.exe. At the end, is it possible to describe a command line aproach of building nana with cmake.Regards, Rajko

Pr0curo commented 9 years ago

hi Rajko,

you are right, in step 9 you specify mingw makefiles as the generator. Depending on your system you have to chose the radio button "use default native compilers" or "specify native compilers" and tell cmake where the asked binaries are located (usually mingw\bin folder).

in step 15 you are right, i'm not sure why, but it was mingw32-make.exe some time ago IIRC and this fact stuck in my head.

i will update the instructions in the next days. and try to include a commandline only version.

p.s. as i'm not a native english speaker, is the current step by step guide easy to follow and to understand?

best regards, jan ^

qPCR4vir commented 9 years ago

related: https://github.com/qPCR4vir/nana-docs/issues/2

rajko-d commented 9 years ago

^

p.s. as i'm not a native english speaker, is it easy to follow and understand? — I understand you perfectly, I'm not native English speaker too. Thank you for quick response, I'm new to GitHub so can you please help me with two questions regards to nana. Frist, I sent pull request for CMakeLists.txt https://github.com/cnjinhao/nana/blob/master/CMakeLists.txt but I now realized that I shouldn't sent it on hotfix branch but on the develop branch.What is procedure for that kind of mistake? Second, am I doing something wrong but when I build nana in debug mode it's 180MB in size and in release mode is I think 10MB. Is this normal behavior?. Thanks in advance.

On Sun, May 10, 2015 at 5:53 PM, Jan notifications@github.com wrote:

hi Rajko,

you are right, in step 9 you specify mingw makefiles as the generator. Depending on your system you have to chose the radio button "use default native compilers" or "specify native compilers" and tell cmake where the asked binaries are located (usually mingw\bin folder).

in step 15 you are right, i'm not sure why, but it was mingw32.make.exe some time ago and this fact stuck in my head.

i will update the instructions in the next days.

p.s. as i'm not a native english speaker, is it easy to follow and understand?

best regards, jan ^

— Reply to this email directly or view it on GitHub https://github.com/qPCR4vir/nana-docs/issues/1#issuecomment-100658749.

Pr0curo commented 9 years ago

first point: perfect. :) second: sending to the hotfix branch is accepted by Jinhao as far as i understand. i think thats the right way, if its a small patch, and you dont need additional testing. the discussion around the pull request will show what happens next.

third point: i observed the same behavior with the huge difference in file sizes for debug and release mode compilation. i can make up a couple of reasons why this is the way it is, but as i'm not deep into the nana source nor the way gcc does its work, i'm not sure what exactly is causing this behavoir.

for todays computers this shouldn't be a problem directly. the only problem that i encountered with the file size, is that i takes ages for linking nana with the program.

you can shorten these times in telling cmake to create the smallest possible solution you need. currently the following options are available: Debug RelWithDebInfo Release MinSizeRel

i usualy use the "Release" library for developing and link it from time to time to the Debug for the additional runtime checks as a workaround against the long linking times.

best regards, jan ^

rajko-d commented 9 years ago

Thank you for your quick reply, you've been very helpful. I hope we'll communicate again :). Regards

Pr0curo commented 9 years ago

added a section for non-gui fans of nana compilation. i think this can be closed.

qPCR4vir commented 9 years ago

Hi! sorry, maybe some of you can help here? http://stackoverflow.com/questions/30693892/make-gui-in-c-by-nana See also . It is possible that it is an error in deploy.cpp? It may include <wctype.h> instead of <stdlib.h> or <stdlib> to implement the workaround? But I think there are others problems too. I have no experiece with mingw.

Thank!