ubuntu14.04 cocos2d-x-3.6 glfw编译出错解决方案
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编译出错解决方案的更多相关文章
- Ubuntu14.04+安卓系统4.3+JDK6编译源码
本博客主要参照: https://www.jianshu.com/p/ecb9c132030f https://blog.csdn.net/gobitan/article/details/243674 ...
- Ubuntu14.04(server amd 64)编译安装 ceres-solver
文档地址:http://www.ceres-solver.org/installation.html git地址:(需要FQ下载) git clone https://ceres-solver.goo ...
- Ubuntu14.04安装AMD显卡驱动双屏显示器完全解决方案
网上有很多方法,但是针对AMD显卡的方案不多,所以笔者今天想写一篇关于AMD显卡的教程. 首先,进入这个网址下载一些东东:http://support.amd.com/zh-cn/download/d ...
- 双系统(win8.1+ubuntu14.04)删除win下分区导致grub rescue解决方案
几个grub rescue下的命令的含义: set 设置环境变量 ls 查看设备 insmod 加载模块 root 指定用于启动系统的分区 prefix 设定grub启动路径 操作流程: 1. 先使 ...
- 【问题收录】Ubuntu14.04连接两个双显示器失败的解决方案
https://blog.csdn.net/chichoxian/article/details/60642533
- Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04 配置参考文献 以及 常见编译问题总结
Caffe+CUDA7.5+CuDNNv3+OpenCV3.0+Ubuntu14.04 配置参考文献 ---- Wang Xiao Warning: Please make sure the cud ...
- ubuntu14.04下安装cudnn5.1.3,opencv3.0,编译caffe及配置matlab和python接口过程记录
已有条件: ubuntu14.04+cuda7.5+anaconda2(即python2.7)+matlabR2014a 上述已经装好了,开始搭建caffe环境. 1. 装cudnn5.1.3,参照: ...
- 在Ubuntu-14.04.3配置并成功编译Android6_r1源码
折腾了一周,终于把Android6_r1的源码编译成功.先上图,这是在ubuntu中运行的Android模拟器: 由于我是在win8中安装虚拟机VMware,然后在虚拟机中安装Ubuntu进行编译,所 ...
- Ubuntu14.04编译安装mysql5.6.26
Ubuntu14.04编译安装mysql5.6.26 (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-d ...
随机推荐
- MyEclipse 8.0注冊码+原版下载_Java开发软件
MyEclipse是一个十分优秀的用于开发Java, J2EE的Eclipse插件集合,MyEclipse的功能很强大,支持也十分广泛,尤其是对各种开元产品的支持十分不错.MyEclipse眼下支持J ...
- oracle触发器实例
8.1 触发器类型 8.1.1 DML触发器 8.1.2 替代触发器 8.1.3 系统触发器 8.2 创建触发器 8.2.1 触发器触发次序 8.2.2 创建DML触发器 8.2.3 创建替代(INS ...
- 在Ubuntu下构建Bullet以及执行Bullet的样例程序
在Ubuntu下构建Bullet以及执行Bullet的样例程序 1.找到Bullet的下载页,地址是:https://code.google.com/p/bullet/downloads/list 2 ...
- wpf 中自定义控件及其使用
主要有3个步骤: 1. 首先创建一个自定义的控件,该控件继承 TextBox namespace EzIntePark.Presentation.Common { /// <summary> ...
- gcc -L -l的使用
-l参数就是用来指定程序要链接的库,-l参数紧接着就是库名,那么库名跟真正的库文件名有什么关系呢?就拿数学库来说,他的库名是m,他的库文件名是libm.so,很容易看出,把库文件名的头lib和尾.so ...
- ASP.NET静态页生成方法(模板替换)
本文实例讲述了ASP.NET静态页生成方法的一种简单方法,就是替换内容法. 适用场景 模板比较固定,页面替换内容较少. 基本原理 此方法中静态页生成用到的就是匹配跟替换了,首先得读取模板页的html内 ...
- Ajax&XMLHttpRequest
XMLHttpRequest 简单省力的方法 将文件编码成base64通过Ajax上传 HTML5学习之FileReader接口 HTML5学习之FileReader接口 通过Ajax方式上传文件,使 ...
- IPointCollection,ISegmentCollection和IGeometryCollection
Engine 提供了三个主要的几何图形集合接口用于对几何对象的操作,分别是 IPointCollection,ISegmentCollection 和 IGeometryCollection,这些接口 ...
- initWithFrame和initWithCoder区别
当我们所写的程序里没用用Nib文件(XIB)时,用代码控制视图内容,需要调用initWithFrame去初始化 - (id)initWithFrame:(CGRect)frame{ if (self ...
- Ubuntu 配置swftools(Ubuntu14.04)
1.下载文件 wget http://swftools.org/swftools-0.9.0.tar.gz .tar.gz wget http://www.ijg.org/files/jpegsrc. ...