Giter Site home page Giter Site logo

freakston / cross-compile_for_windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ir0nc0w/cross-compile_for_windows

1.0 1.0 0.0 354.11 MB

cross compiling for Windows

C 58.00% C++ 41.47% Objective-C 0.30% Assembly 0.14% HLSL 0.01% Makefile 0.03% JavaScript 0.01% Visual Basic 0.04% PHP 0.01% Shell 0.01% XSLT 0.01% HTML 0.01% CSS 0.01% Batchfile 0.01%

cross-compile_for_windows's Introduction

cross compiling for Windows


Layout

`` . ├── README.md │
├── VS2010/ │ └── vc/ │ ├── IDE/ │ ├── bin/ │ ├── include/ │ └── lib/ ├── VS2012/ │
│ └── vc/ │ ├── IDE/ │ ├── bin/ │ ├── include/ │ ├── lib/ │ └── redist/ ├── VS2017/ │
│ └── vc/ │ ├── bin/ │ ├── include/ │ └── lib/ ├── SDK7/ │ ├── include/ │ └── lib/ └── SDK10/ ├── include/ └── lib/


## How to install
### WINE
1) install wine

### VS2010
1) cp -r VS2010/ /home/you/.wine/drive_c
2) wine regedit
3) HKEY_LOCAL_MACHINE
	└── System
		└── CurrentControlSet
			└── Control
				└── Session Manager
					└── Environment
4) Add the path in PATH
	: C:\VS2010\vc\bin;C:\VS2010\vc\IDE;
5) check `wine cl`

### VS2012
1) cp -r VS2012/ /home/you/.wine/drive_c
2) wine regedit
3) HKEY_LOCAL_MACHINE
	└── System
		└── CurrentControlSet
			└── Control
				└── Session Manager
					└── Environment
4) Add the path in PATH
	: C:\VS2012\vc\bin;C:\VS2010\vc\IDE;
5) check `wine cl`

### VS2017
1) cp -r VS2017/ /home/you/.wine/drive_c
2) wine regedit
3) HKEY_LOCAL_MACHINE
	└── System
		└── CurrentControlSet
			└── Control
				└── Session Manager
					└── Environment
4) Add the path in PATH
	: C:\VS2017\vc\bin;
5) check `wine cl`

### SDK7
1) cp -r SDK7/ /home/you/.wine/drive_c


### SDK10
1) cp -r SDK10/ /home/you/.wine/drive_c


## When you compile
### [Example] VS2012 with SDK7; x86 to x64 cross compile

LD="wine link" LIB="C:/VS2012/vc/lib/amd64;C:/SDK7/x64"
wine cl $1 /EHsc -o $2.exe
/IC:/VS2012/vc/include /IC:SDK7/include
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
winmm.lib rpcrt4.lib Crypt32.lib imm32.lib Urlmon.lib Oleaut32.lib
Winscard.lib Opengl32.lib Mpr.lib Ws2_32.lib Bcrypt.lib Ncrypt.lib
Shell32.lib Rpcns4.lib Mswsock.lib
Msimg32.lib RpcRT4.lib Rpcrt4.lib lz32.lib
Normaliz.lib Cryptnet.lib\

cross-compile_for_windows's People

Contributors

ir0nc0w avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.