---
title: "qt 5.0 on mac"
author: "fkpwolf"
date: "2012-04-08T12:58:32Z"
tags: []
categories: ["非技术"]
slug: "qt-5-0-on-mac"
draft: false
lastmod: "2012-04-10T12:46:22Z"
id: 1478489
url: "https://fkpwolf.iteye.com/blog/1478489"
---

vi filename  
然后用命令  
:set ff?  
可以看到dos或unix的字样. 如果的确是dos格式的, 那么你可以用set ff=unix把它强制为unix格式的, 然后存盘退出. 再运行一遍看.

 

 

开始老是出现下面这个提示：  
You don't seem to have 'make' or 'gmake' in your PATH.  
Cannot proceed.  
但是在PATH中明明包含了make的路径：/usr/local/bin  
通过查资料知道，原来需要在环境变量中增加一个变量如下：  
MAKE=/usr/local/bin/make  
export MAKE  
用命令：which make 查看make所在目录。  
这样就可以编译了，但是在编译的过程中还是会遇到一些问题，有的地方是代码错误，

 

http://qt-project.org/wiki/Building\_Qt\_5\_from\_Git 

 

 

If you got "histedit.h: No such file or directory" error, install "libedit-dev" pakcage.