lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::GLViewImpl()':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetErrorCallback'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::initWithRect(std::string const&, cocos2d::Rect, float)':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o):/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: more undefined references to `glfwWindowHint' follow
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::initWithRect(std::string const&, cocos2d::Rect, float)':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwCreateWindow'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwMakeContextCurrent'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetCursorPosCallback'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetScrollCallback'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetWindowPosCallback'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetFramebufferSizeCallback'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetWindowIconifyCallback'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::initWithFullScreen(std::string const&)':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwGetPrimaryMonitor'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwGetVideoMode'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::initWithFullscreen(std::string const&, GLFWvidmode const&, GLFWmonitor*)':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowHint'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::end()':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetWindowShouldClose'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::windowShouldClose()':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwWindowShouldClose'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::setCursorVisible(bool)':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetInputMode'
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwSetInputMode'
lib/libcocos2d.a(CCGLViewImpl-desktop.cpp.o): In function `cocos2d::GLViewImpl::updateFrameSize()':
/home/vin/workspace/wechat/cocos2d/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:: undefined reference to `glfwGetFramebufferSize'
collect2: error: ld returned  exit status
make[]: *** [bin/MyGame] Error
make[]: *** [CMakeFiles/MyGame.dir/all] Error
make: *** [all] Error 

解决方案:

  just typing  "sudo apt-get purge libglfw2"
  and then execute the script "cocos2d-x/tools/travis-scripts/install_glfw.sh" and after that, I can build my "hello project" properly.

ubuntu14.04 cocos2d-x-3.6 glfw编译出错解决方案的更多相关文章

  1. Ubuntu14.04+安卓系统4.3+JDK6编译源码

    本博客主要参照: https://www.jianshu.com/p/ecb9c132030f https://blog.csdn.net/gobitan/article/details/243674 ...

  2. Ubuntu14.04(server amd 64)编译安装 ceres-solver

    文档地址:http://www.ceres-solver.org/installation.html git地址:(需要FQ下载) git clone https://ceres-solver.goo ...

  3. Ubuntu14.04安装AMD显卡驱动双屏显示器完全解决方案

    网上有很多方法,但是针对AMD显卡的方案不多,所以笔者今天想写一篇关于AMD显卡的教程. 首先,进入这个网址下载一些东东:http://support.amd.com/zh-cn/download/d ...

  4. 双系统(win8.1+ubuntu14.04)删除win下分区导致grub rescue解决方案

    几个grub rescue下的命令的含义: set 设置环境变量 ls 查看设备 insmod 加载模块 root 指定用于启动系统的分区 prefix 设定grub启动路径 操作流程: 1.  先使 ...

  5. 【问题收录】Ubuntu14.04连接两个双显示器失败的解决方案

    https://blog.csdn.net/chichoxian/article/details/60642533

  6. Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04 配置参考文献 以及 常见编译问题总结

    Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04  配置参考文献 ---- Wang Xiao Warning: Please make sure the cud ...

  7. ubuntu14.04下安装cudnn5.1.3,opencv3.0,编译caffe及配置matlab和python接口过程记录

    已有条件: ubuntu14.04+cuda7.5+anaconda2(即python2.7)+matlabR2014a 上述已经装好了,开始搭建caffe环境. 1. 装cudnn5.1.3,参照: ...

  8. 在Ubuntu-14.04.3配置并成功编译Android6_r1源码

    折腾了一周,终于把Android6_r1的源码编译成功.先上图,这是在ubuntu中运行的Android模拟器: 由于我是在win8中安装虚拟机VMware,然后在虚拟机中安装Ubuntu进行编译,所 ...

  9. Ubuntu14.04编译安装mysql5.6.26

    Ubuntu14.04编译安装mysql5.6.26 (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-d ...

随机推荐

  1. office2007序列号/密钥

    绝对可以用的许可证:V9MTG-3GX8P-D3Y4R-68BQ8-4Q8VD

  2. Android中的windowSoftInputMode属性详解

    这篇文章主要介绍了Android中的windowSoftInputMode属性详解,本文对windowSoftInputMode的9个属性做了详细总结,需要的朋友可以参考下     在前面的一篇文章中 ...

  3. 国外.net学习资源网站

    转载 :出处:http://www.cnblogs.com/kingjiong/ 名称:快速入门地址 http://chs.gotdotnet.com/quickstart/ 描述:本站点是微软.NE ...

  4. for-of循环

    /* 1. 遍历数组 2. 遍历Set 3. 遍历Map 4. 遍历字符串 5. 遍历伪数组 6. 可迭代的对象 */var arr = [2,3,4];for(let ele of arr) { c ...

  5. Swift中对计算属性的理解和对之前的补充

    这个功能的重点作用应该是在计算上. 对于一般的属性,要么直接存一个,要么直接读一个,计算属性则可以根据所设置内容,进行一些修改或计算之类的, 比如: import UIKit class sample ...

  6. C#类中字段,属性与方法

    person类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...

  7. android图形基础知识

    Android核心分析(23)-----Andoird GDI之基本原理及其总体框架 2010-06-13 22:49 18223人阅读 评论(18) 收藏 举报 AndroidGDI基本框架 在An ...

  8. PHPExcel用法有感

    今日项目需求导出excel.我用最简单的header头方式导出了,但是需求部门退回了,说不满足他们的需求,需要我按照他们的模板来导出. 然后想到了PHPExcel,没用过,走了不少弯路. 1.去官网下 ...

  9. Hadoop学习历程(一、编译)

    近期对Hadoop很感兴趣,下面是在CentOS系统上进行编译的分享 系统情况如下: 1. CentOS 6.2 64位    2. hadoop-2.2.0    3. jdk 1.6.0_31   ...

  10. PHP数组相加

    + 运算符把右边的数组元素(除去键值与左边的数组元素相同的那些元素)附加到左边的数组后面,但是重复的键值不会被覆盖 ,array_merge()此时会覆盖掉前面相同键名的值 如: $a=array(' ...