| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10667
|
Posted: Wed May 16, 2007 12:57 pm Post subject: |
|
|
| 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Thu May 31, 2007 7:38 am Post subject: |
|
|
@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 .
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Thu Jul 12, 2007 1:11 pm Post subject: |
|
|
| Added modified project files for version 1.0.47.01. |
|
| Back to top |
|
 |
aaron
Joined: 07 Oct 2005 Posts: 13
|
Posted: Thu Jul 12, 2007 8:29 pm Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Fri Jul 13, 2007 5:26 am Post subject: |
|
|
You're welcome. Thanks for the feedback . |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 4473 Location: Qld, Australia
|
Posted: Sat Aug 25, 2007 4:58 am Post subject: |
|
|
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!
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...  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Sun Aug 26, 2007 12:21 am Post subject: |
|
|
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...  | 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?  |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 4473 Location: Qld, Australia
|
Posted: Sun Aug 26, 2007 12:44 am Post subject: |
|
|
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..." 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.  |
|
| Back to top |
|
 |
Andy3000 Guest
|
|
| Back to top |
|
 |
DeWild1
Joined: 30 Apr 2006 Posts: 328 Location: Shigle Springs
|
Posted: Tue Oct 16, 2007 6:22 pm Post subject: |
|
|
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! 
Last edited by DeWild1 on Thu Feb 21, 2008 8:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Tue Oct 16, 2007 6:32 pm Post subject: |
|
|
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 |
|
 |
somebody Guest
|
Posted: Wed Oct 17, 2007 2:49 am Post subject: thanks!! |
|
|
thanks alot for this!
just need to learn c++ more then i'll have something to mess around with. |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Oct 17, 2007 10:07 am Post subject: |
|
|
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
|
Posted: Sun Oct 21, 2007 7:13 pm Post subject: |
|
|
| 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...  |
|
| Back to top |
|
 |
trik
Joined: 15 Jul 2007 Posts: 1318
|
Posted: Wed Oct 24, 2007 11:47 pm Post subject: Re: Compile AutoHotkey using Visual C++ 2005 Express Edition |
|
|
| PhiLho wrote: |
Aargh, I just see this after trying to compile SciTE with VS 2005 |
Is SciTE AHK based? |
|
| Back to top |
|
 |
|