2017-04-20 34 views
0

我試圖爲freeglut庫生成lib文件。我已經安裝了Cygwin,並根據隨附庫README文件,./configure:沒有這樣的文件或目錄cygwin Freeglut

Building and Installing the Libraries with Cygwin 
================================================= 

To build "freeglut" under Cygwin, you have two choices: 

- You can build a normal Cygwin library, which depends on Cygwin's X11 
    libraries. To do this, you can just use the normal autotools incantation: 
     ./configure && make install 

- Alternatively, you can build a DLL which does not depend on X11 and links 
    against the opengl32 DLL. To do this, configure need a few more flags: 
     ./configure CPPFLAGS=-mno-cygwin LDFLAGS=-mno-cygwin --without-x && make install 


If you don't have MSVC, Open Watcom or Cygwin 
============================================= 

但如果我運行./configure,我得到這個錯誤

$ ./configure CPPFLAGS=-mno-cygwin LDFLAGS=-mno-cygwin --without-x && make install 
-bash: ./configure: No such file or directory 

有什麼我需要安裝才能解決這個問題?該文件夾的內容沒有配置。這些文件的文件夾中

enter image description here

+0

似乎自述文件已過時,CMakeList的存在表明它們轉移到了'cmake' – matzeri

+0

@matzeri,但最後一次更新是在2016! – CroCo

+0

,但README.cygwin的日期是2012年。 – matzeri

回答

1

如果需要freeglut,您需要安裝Cygwin包libglut-devel

尋找裏面setup.ini,你會發現它的描述:

libglut- devel
sdesc:「OpenGL Utility Toolkit library」
ldesc:「freeglut is ac完全OpenSourced替代OpenGL實用工具包(GLUT)庫。 GLUT最初由Mark Kilgard編寫,以支持第二版OpenGL'RedBook'中的示例程序 。因爲 然後,GLUT已被用於各種實際應用 ,因爲它簡單,廣泛可用和高度便攜。葡萄糖轉運蛋白(和 因此freeglut)允許用戶創建和管理包含Windows 的OpenGL上下文在廣泛的平臺,也讀 鼠標,鍵盤和操縱桿功能「
類別:X11

相關問題