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 ...
随机推荐
- spring技术翻译开始
从今天开始,我会坚持每天花费两个小时来翻译一本英文书(当然自己觉得绝对算得上是经典),可能我英文水平有限,但也请路过的高人予以指点. 如果有翻译的出入很大,望各位告知,本人一定更改.决定翻译的目的有两 ...
- Qt 域名转成IP
#include <stdio.h>#include <stdlib.h>#include <netdb.h>#include <arpa/inet.h> ...
- python字符串连接方式(转)
在python中有很多字符串连接方式,今天就在这里具体总结一下: ①.最原始的字符串连接方式:str1 + str2②.python 新字符串连接语法:str1, str2③.奇怪的字符串方式:str ...
- LDAP错误代码221
---------------------------命令方式启动失败报错-------------------------------[root@rusky bin]# ./dsadm start ...
- DOM中的NodeList与HTMLCollection
最近在看<Javascript高级程序设计>的时候,看到了这样一句话:“理解NodeList和HTMLCollection,是从整体上透彻理解DOM的关键所在.”,所以觉得应该写一篇关于N ...
- javascript返回顶部几种代码总结
纯js代码 /** * 回到页面顶部 * @param acceleration 加速度 * @param time 时间间隔 (毫秒) **/ function goTop(acceleration ...
- ubuntu 安装RPM软件包
red hat 系统用rpm格式的文件安装软件,ubuntu安装软件是用deb格式的文件安装 在ubuntu上安装rmp文件格式的软件包步骤: 1.安装转换软件 alien(需要联网) apt-get ...
- POJ 模拟题集合
http://www.cppblog.com/Uriel/articles/101592.html 感觉这个暑假没有去年有激情啊,,,还没到状态就已经块上学了,,, 真是弱暴了,,,找几道模拟题刷刷. ...
- PHP实现对MongoDB的基础操作
PHP扩展 PHP5.2.PH ...
- asp.net 的那点事(2、浏览器和一般处理程序)
从今天开始我们接着来学习:asp.net中一般处理程序和浏览器的通信. 一.第一个图解: 从图解中我们看出,整个过程是:"请求---处理---响应".这个也就是经常面试的时候,面试 ...