Ah yes, forgot to mention that on 64bit you will need the 32bit dll for 
32bit applications, and the 64bit dll for 64bit applications. Just as 
Tristan explained below.
Source for tup32detect.exe is:

#include <windows.h>
> int main(int argc, char** argv)
> {
>         int ll = (int) LoadLibraryA;
>         int gpa = (int) GetProcAddress;
>         printf("%x-%x\n", ll, gpa);
>         ExitProcess(0);
> }


The reason behind this is that the 32bit addresses for LoadLibraryA and 
GetProcAddress on 64bit windows changes between reboots, so we need to 
retrieve them somehow. As I said in the first post, this is not a very 
elegant solution, but it works.


On Friday, August 8, 2014 2:47:48 PM UTC+2, Tristan Rybak wrote:
>
> Hi,
> I managed to compile and make tup run with the 64bit patch. I did the 
> following:
> - compiled 32bit tup from git and saved generated tup-dllinject.dll 
> as tup-dllinject32.dll in my 64bit tup folder
> - copied tup32detect.exe from the original 64bit tup archive to my 64bit 
> tup folder
> - applied a patch to the tup code
> - created tup.config with *CONFIG_TUP_MINGW=x86_64-w64-mingw32*
> - compiled patched source and copied tup.exe and tup-dllinject.dll to my 
> 64bit tup folder
>
> with those four files I was able to use tup on 64bit windows with both 32 
> and 64 bit compilers/tools.
> Hope it helps.
> Cheers,
> Tristan
>
>
>
> On Fri, Aug 8, 2014 at 2:39 PM, Magnus Bodin <[email protected] 
> <javascript:>> wrote:
>
>> I have tried building myself with mingw-w64 + the patch above and also 
>> built vanilla tup with i686-w64-mingw32. Also tried with the binaries 
>> attached earlier in this thread and with the ones provided from 
>> http://gittup.org/tup/. Nothing works. I found that I get different 
>> errors depending on which command I test with, copy or xcopy. I have also 
>> tried cl and even gcc. That's were I started but when I ran into errors I 
>> tried to make it as simple as possible. 
>>
>> Most likely I made some simple mistake but I can't find it so I think I 
>> have to give up and find something else to use other than tup. It bugs me 
>> since tup is what I want to use but Windows support is a deal breaker for 
>> me.
>>  
>> -- 
>> -- 
>> tup-users mailing list
>> email: [email protected] <javascript:>
>> unsubscribe: [email protected] <javascript:>
>> options: http://groups.google.com/group/tup-users?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "tup-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Tristan Rybak
> Chief Technical Officer
>
> Geniusprogrammer.net
>  

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to