Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Nana with MinGW #1

Closed
rajko-d opened this issue May 9, 2015 · 7 comments
Closed

Compiling Nana with MinGW #1

rajko-d opened this issue May 9, 2015 · 7 comments

Comments

@rajko-d
Copy link

rajko-d commented May 9, 2015

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
Copy link

Pr0curo commented May 10, 2015

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
Copy link
Owner

related: #2

@rajko-d
Copy link
Author

rajko-d commented May 10, 2015

^

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
#1 (comment).

@Pr0curo
Copy link

Pr0curo commented May 10, 2015

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
Copy link
Author

rajko-d commented May 11, 2015

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

@Pr0curo
Copy link

Pr0curo commented May 11, 2015

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

@qPCR4vir qPCR4vir reopened this Jun 9, 2015
@qPCR4vir
Copy link
Owner

qPCR4vir commented Jun 9, 2015

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants