简体   繁体   English

通过YaST在openSuse linux上安装GLFW3

[英]install GLFW3 on openSuse linux through YaST

I am in the process of moving my programming from mac to the linux distrubution OpenSuse Leap. 我正在将程序从Mac迁移到Linux发行版OpenSuse Leap。

therefor i want to install the c++ libraries which i used on my mac on my new machine, this is done through YaST ( yet another setup tool )'s software manager, through which i have succesfully been able to install multiple libraries. 因此,我想在新机器上安装我在Mac上使用的c ++库,这是通过YaST另一个安装工具 )的软件管理器完成的,通过它我可以成功安装多个库。

I am having problems installing GLFW3, i would prefer to install the latest version (3.2), but at the very least the version must be greater than 3 我在安装GLFW3时遇到问题,我希望安装最新版本(3.2),但至少该版本必须大于3

under YaST's software manager i can however only find something named GLFW2 - however it claims to be version 2.7.6-3.2-x86_64 and to have the build time Fri 11 Sep 2015 , and i am not sure if i should regard the fact that it is quite recently build and that the current version (3.2) is in the supposed version of this as a proof that it is indeed GLFW version 3.2 - with some backward compatibillity, or if i should regard the fact that the library is named GLFW2 as a proof that is is not GLFW3. 但是,在YaST的软件管理器下,我只能找到一个名为GLFW2的东西-但是它声称是版本2.7.6-3.2-x86_64,并且构建时间为2015年9月11日星期五 ,我不确定是否应该考虑这一事实是最新版本,并且当前版本(3.2)处于该版本的假定版本中,以证明它确实是GLFW版本3.2-具有一定的向后兼容性,或者如果我应该将该库命名为GLFW2的事实证明不是GLFW3。

I have attempted to make and compile dummy programs (which are totally empty programs which tries to include GLFW3) but they fail to compile, claiming that library GLFW3 doesn't exist, but i can not know wether or not they fail because GLFW3 is not installed, or because it is installed but I don't know how to include it. 我试图制作和编译伪程序(它们是完全空的程序,试图包含GLFW3),但它们未能编译,声称库GLFW3不存在,但我不知道它们是否会失败,因为GLFW3不存在已安装,或因为已安装但我不知道如何包含它。

My question is therefor: if i install the library named GLFW2 through YaST, can i then safely assume that i have GLFW 3.2 installed and that i therefor only need learn to include and compile the library; 为此,我的问题是:如果我通过YaST安装了名为GLFW2的库,那么我可以安全地假定我已经安装了GLFW 3.2,并且因此我只需要学习包含和编译该库; if no, does that mean i can't install a version of GLFW higher than 3 如果否,是否表示我无法安装高于3的GLFW版本

I have just the same problem today using OpenSUSE, and ended up installing GLFW3.2 from source . 今天,我在使用OpenSUSE时GLFW3.2了同样的问题,最终从source安装GLFW3.2 In order to get the glfw compiled from sources on OpenSUSE, I also needed to install the following dependencies (using zypper install package_name_to_install ): 为了从OpenSUSE上的源代码获取glfw ,我还需要安装以下依赖项(使用zypper install package_name_to_install ):
1) libXrandr-devel 1) libXrandr-devel
2) libXinerama-devel 2) libXinerama-devel
3) libXcursor-devel 3) libXcursor-devel

After the dependencies are installed, I just followed standard cmake flow: 安装依赖项后,我只是遵循标准的cmake流程:
1) git clone git@github.com:glfw/glfw.git 1) git clone git@github.com:glfw/glfw.git
2) cd glfw && mkdir build && cd build && cmake .. 2) cd glfw && mkdir build && cd build && cmake ..
3) make 3) make
4) sudo make install 4) sudo make install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM