Ubuntu下安装OpenGL 环境

    技术2022-05-20  80

    Reference URL:http://ubuntuforums.org/showthread.php?t=345177

     

    1) sudo apt-get update

     

         -This will update your apt database to the most recent available packages.

     

    2) sudo apt-get install build-essential

        - This installs the necessary development tools for building source code.

     

    3) sudo apt-get install freeglut3-dev

        - This installs the development libraries and headers for freeglut.

     

    4) 使用   “  gcc  文件名称.c   -o  文件名称   -lglut  ” 命令来编译文件。

    如果没报错, 就说明环境OK了。

     

    本文来自博客,转载请标明出处:http://blog.csdn.net/Tangyongkang/archive/2010/05/15/5595230.aspx


    最新回复(0)