Thursday, May 31, 2007

Creating .exe using Qmake from QT

Well, didn't find time to write anything or think about writing anything because of loads of issues.

This blog mainly deals with the issue of how to create .exe files when one is using qt libs in code.
A well documented fact which I am putting online for my own reference or rather easy reference. I have taken this from QT faq's long time back. So I don't have the reference link for it.

Suppose one has placed all the files in QPainter folder and wants to create the executable file or a VC project file.

1) Creating Exe.
Qmake –project
Open QPainter.pro and add CONFIG += thread
Qmake –win32 QPainter.pro // This will create a makefile
Nmake –f Makefile

Warning regarding LNK4199 is given but exe still gets created.
Now just run the exe created.


2) For VC++, again after making the above changes in configuration file.

Qmake –project
Open QPainter.pro and add CONFIG += thread
Qmake –t vcapp QPainter.pro –o QPainter.dsp

Now open the dsp in vc, it still will give qt.lib error.
Now edit QPainter.dsp // wow no one told me about this one. tried on my own

In there , there is variable ADD LINK32 which has path to qt.lib. Change qt.lib to qt-mt.lib.

Now the code will run but will give a warning LNK4098:defaultlib “msvcrt.lib” conflicts with use of other libs …

The warning and erors may or may not occur. I have added them because they occurred when I was trying out the executable or VC project creation.


Programming Ring - New Post
Programming Ring - Old Post

8 comments:

Anonymous said...

viagra larger forever legal viagra online viagra viagra covered by insurance viagra online cheap viagra over the counter can viagra causes legs to ache viagra samples viagra results viagra no prescription viagra from india viagra attorney columbus new viagra cheapest viagra in uk

Anonymous said...

Very useful idea

Anonymous said...

Good brief and this post helped me alot in my college assignement. Thank you as your information.

Anonymous said...

Well I to but I think the collection should have more info then it has.

Anonymous said...

Do You interesting of [b]Female use of Viagra[/b]? You can find below...
[size=10]>>>[url=http://listita.info/go.php?sid=1][b]Female use of Viagra[/b][/url]<<<[/size]

[URL=http://imgwebsearch.com/30269/link/viagra%2C%20tramadol%2C%20zithromax%2C%20carisoprodol%2C%20buy%20cialis/1_valentine3.html][IMG]http://imgwebsearch.com/30269/img0/viagra%2C%20tramadol%2C%20zithromax%2C%20carisoprodol%2C%20buy%20cialis/1_valentine3.png[/IMG][/URL]
[URL=http://imgwebsearch.com/30269/link/buy%20viagra/3_headsex1.html][IMG]http://imgwebsearch.com/30269/img0/buy%20viagra/3_headsex1.png[/IMG][/URL]
[b]Bonus Policy[/b]
Order 3 or more products and get free Regular Airmail shipping!
Free Regular Airmail shipping for orders starting with $200.00!

Free insurance (guaranteed reshipment if delivery failed) for orders starting with $300.00!
[b]Description[/b]

Generic Viagra (sildenafil citrate; brand names include: Aphrodil / Edegra / Erasmo / Penegra / Revatio / Supra / Zwagra) is an effective treatment for erectile dysfunction regardless of the cause or duration of the problem or the age of the patient.
Sildenafil Citrate is the active ingredient used to treat erectile dysfunction (impotence) in men. It can help men who have erectile dysfunction get and sustain an erection when they are sexually excited.
Generic Viagra is manufactured in accordance with World Health Organization standards and guidelines (WHO-GMP). Also you can find on our sites.
Generic [url=http://viagra.wilantion.ru]Viagra 100mg pills[/url] is made with thorough reverse engineering for the sildenafil citrate molecule - a totally different process of making sildenafil and its reaction. That is why it takes effect in 15 minutes compared to other drugs which take 30-40 minutes to take effect.
[b]compare cialis levitra viagra
propafenone and viagra cialis
erectile viagra
viagra $139
Rundell Viagra
should every man take viagra
Ag Guys Liquid Viagra
[/b]
Even in the most sexually liberated and self-satisfied of nations, many people still yearn to burn more, to feel ready for bedding no matter what the clock says and to desire their partner of 23 years as much as they did when their love was brand new.
The market is saturated with books on how to revive a flagging libido or spice up monotonous sex, and sex therapists say “lack of desire” is one of the most common complaints they hear from patients, particularly women.

Anonymous said...

xanax no prescription xanax high how long - xanax dosage hours

Anonymous said...

Very nice post. I just stumbled upon your blog and wanted to say that
I've truly enjoyed browsing your blog posts. In any case I will be subscribing to your feed and I hope you write again soon!

My blog: individual reputation management

Anonymous said...

Hmm it apрeaгs liκe your site аtе
mу first cоmmеnt (it was eхtremеlу long) so I guesѕ
I'll just sum it up what I wrote and say, I'm thoгoughly enjoуing your blog.
I as well am аn aspiring blog writer but I'm still new to the whole thing. Do you have any tips for beginner blog writers? I'd certainlу apprecіate іt.


Look into my ωеblog - reputation management