mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
Z3 is a theorem prover from Microsoft Research.
 | 
						|
Z3 is licensed under MSR-LA (Microsoft Research License Agreement). 
 | 
						|
See http://z3.codeplex.com/license for more information about this license.
 | 
						|
Z3 can be built using Visual Studio Command Prompt and make/g++.
 | 
						|
 | 
						|
1) Building Z3 on Windows using Visual Studio Command Prompt
 | 
						|
   
 | 
						|
   python scripts/mk_make.py
 | 
						|
   cd build
 | 
						|
   nmake
 | 
						|
 | 
						|
2) Building Z3 using make/g++ and Python
 | 
						|
Execute:
 | 
						|
 | 
						|
   python scripts/mk_make.py
 | 
						|
   cd build
 | 
						|
   make
 | 
						|
   sudo make install
 | 
						|
 | 
						|
It will install z3 executable at /usr/bin, libraries at /usr/lib, and include files at /usr/include.
 | 
						|
You can change the installation p
 | 
						|
 | 
						|
Use the following commands to install in a different prefix (e.g., /home/leo), and the Z3 python
 | 
						|
bindings in a different python package directory.
 | 
						|
 | 
						|
  python scripts/mk_make.py --prefix=/home/leo --pydir=/home/leo/python
 | 
						|
  cd build
 | 
						|
  make
 | 
						|
  sudo make install
 | 
						|
 | 
						|
To uninstall Z3, use
 | 
						|
 | 
						|
  sudo make uninstall
 | 
						|
 | 
						|
3) Building Z3 using clang and clang++ on Linux/OSX
 | 
						|
Remark: clang does not support OpenMP yet.   
 | 
						|
 | 
						|
   CXX=clang++ CC=clang python scripts/mk_make.py
 | 
						|
   cd build
 | 
						|
   make
 | 
						|
 |