AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile AutoHotkey using Visual C++ 2005 Express Edition
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10667

PostPosted: Wed May 16, 2007 12:57 pm    Post subject: Reply with quote

foom wrote:
by uncommenting #ifdef _MSC_VER from stdafx.h i get the error count down to 13 (missing definitions/declarations).
Thanks for posting your findings. Hopefully someone familiar with GCC will use your info to provide the missing functions and resolve the remaining errors.
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Thu May 31, 2007 7:38 am    Post subject: Reply with quote

@Chris - Thanks for removing the need for some of the modifications to the source files to be able to compile ok in VC 2005 Express Smile .

I have added a zip file for download in the first post with the modified vcproj and sln files. Replacing these files after downloading the source should allow AutoHotkey to compile ok. If anyone gets a chance to give it a try then please let me know if it works ok.
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Thu Jul 12, 2007 1:11 pm    Post subject: Reply with quote

Added modified project files for version 1.0.47.01.
Back to top
View user's profile Send private message Visit poster's website
aaron



Joined: 07 Oct 2005
Posts: 13

PostPosted: Thu Jul 12, 2007 8:29 pm    Post subject: Reply with quote

corrupt-

Thank you for this information and providing the updated files. I successfully compiled version 1.047. I had one error, presumably because I had other older/beta versions of Visual C++ on my system. Here is the error and the solution for any who may need this:
fatal error C1902: Program database manager mismatch; please check your installation
The problem was corrected when I deleted mspdb80.dll from the Program Files\Microsoft Visual Studio 8\VC\bin directory.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Fri Jul 13, 2007 5:26 am    Post subject: Reply with quote

You're welcome. Thanks for the feedback Smile .
Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 4473
Location: Qld, Australia

PostPosted: Sat Aug 25, 2007 4:58 am    Post subject: Reply with quote

After referring to this thread for the third or fourth time, I figured it was time to say thanks...

Thanks for this very useful reference, corrupt! Smile

Also, the step:
Quote:
change Link Time Code Generation to Use Link Time Code Generation (/ltcg)
doesn't seem to be necessary. I get this message:
Quote:
LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance
as well as a warning:
Quote:
Warning 32 warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification

Regarding UPX - It might be worth mentioning that the post-build event for compressing AutoHotkey.exe is only in the Release configuration. This caused me a bit of confusion... Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Sun Aug 26, 2007 12:21 am    Post subject: Reply with quote

You're welcome. Thanks for the tips. I'll have a closer look and update the instructions in the first post soon with instructions for the latest version. The instructions posted are for a previous version and could likely use a bit of tweaking.
lexikos wrote:
Regarding UPX - It might be worth mentioning that the post-build event for compressing AutoHotkey.exe is only in the Release configuration. This caused me a bit of confusion... Rolling Eyes
I'd be glad to add a comment to the first post if you think it would be helpful to someone but I'm not sure I understand what you found confusing regarding UPX. Not requiring UPX in some cases didn't seem worth mentioning since most people are likely to build the release version and would need to either provide UPX (this seems like it would be the most popular choice) or remove the event. Could you please try to clarify? Smile
Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 4473
Location: Qld, Australia

PostPosted: Sun Aug 26, 2007 12:44 am    Post subject: Reply with quote

I built the project, expecting to see the post-build event in the output window. When it didn't appear, I looked in the project config. I didn't find the build event, so thought "doh, guess I must have to add the event myself..." Embarassed It took me a few minutes to think to check the Release configuration. I barely ever build "Release"; so far I've only been using the debugger to get a better understanding of how AutoHotkey works internally. Nothing major.
Quote:
Not requiring UPX in some cases didn't seem worth mentioning
It's not the requiring upx or not, but whether "Performing Post-Build Event" will appear when you compile Debug. Wink
Back to top
View user's profile Send private message Visit poster's website
Andy3000
Guest





PostPosted: Tue Oct 16, 2007 10:13 am    Post subject: Re: Compile AutoHotkey using Visual C++ 2005 Express Edition Reply with quote

corrupt wrote:
Install and configure Microsoft Visual C++ 2005 Express Edition

Download and install - Visual C++ 2005 Express Edition (install the IDE if asked)
http://msdn.microsoft.com/vstudio/express/downloads/

Download and install - Microsoft ® Windows Server® 2003 R2 Platform SDK Web Install
http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en

Download and install - Microsoft® Visual Studio® 2005 Express Editions Service Pack 1
http://www.microsoft.com/downloads/details.aspx?familyid=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en

Important: go to http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ and follow the directions in Step 4 to update the corewin_express.vsprops file.


Dear corrupt,

Thank you very much for the brilliant guide. I followed it, and was able to compile on the first try! May I add two alternative URLs:

From this one you can download the installer for the Microsoft ® Windows Server® 2003 R2 Platform SDK (no web installation necessary): http://asia.cnet.com/downloads/pc/swinfo/0,39000587,39001550r-39354702s,00.htm

As of today, the instructions on how to update corewin_express.vsprops are not available on the link you provided. But I found them here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1995837&SiteID=1

Cheers,
Andy
Back to top
DeWild1



Joined: 30 Apr 2006
Posts: 328
Location: Shigle Springs

PostPosted: Tue Oct 16, 2007 6:22 pm    Post subject: Reply with quote

It is better to sit here and look stupid, rather than to open my my mouth and remove all doubt....

So I deleted my stupidity! Embarassed Laughing Cool


Last edited by DeWild1 on Thu Feb 21, 2008 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Tue Oct 16, 2007 6:32 pm    Post subject: Reply with quote

this topic is about how to compile the Autohotkey.exe in C++, not how to compile AHK code in C++.

you can disable UPX for your scripts - search the forum.
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
somebody
Guest





PostPosted: Wed Oct 17, 2007 2:49 am    Post subject: thanks!! Reply with quote

thanks alot for this!
just need to learn c++ more Laughing then i'll have something to mess around with.
Back to top
Guest






PostPosted: Wed Oct 17, 2007 10:07 am    Post subject: Reply with quote

I always thought it would be great if there was a developer's section in the forum. This way developers could focus more on their issues, C/C++, and development of AutoHotkey VERSUS just AutoHotkey the scripting language and user issues.

Anyway, good stuff.
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Sun Oct 21, 2007 7:13 pm    Post subject: Reply with quote

Anonymous wrote:
I always thought it would be great if there was a developer's section in the forum. This way developers could focus more on their issues, C/C++, and development of AutoHotkey VERSUS just AutoHotkey the scripting language and user issues.

Anyway, good stuff.
If you're interested in the development of AutoHotkey then it would be handy to post with a registered name... Wink
Back to top
View user's profile Send private message Visit poster's website
trik



Joined: 15 Jul 2007
Posts: 1318

PostPosted: Wed Oct 24, 2007 11:47 pm    Post subject: Re: Compile AutoHotkey using Visual C++ 2005 Express Edition Reply with quote

PhiLho wrote:

Aargh, I just see this after trying to compile SciTE with VS 2005


Is SciTE AHK based?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group