Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求助大神,SDL2环境变量怎么写?
Experiences and Insight
507
views ·
6
replies ·
To
floor
Go
136******97
deepin
2019-09-12 22:26
Author
求教大神
已经下载好了,变量怎么设置?
Reply
Like 0
Favorite
View the author
All Replies
jhkwei
deepin
2019-09-13 01:11
#1
还没有明白你说的变量是什么变量,LD_LIBRARY_PATH 吗
Reply
Like 0
View the author
136******97
deepin
2019-09-13 07:12
#2
这个是Windows版的教程,deepin的怎么写?要添加两个变量吗?
Reply
Like 0
View the author
funtoo
deepin
2019-09-13 07:37
#3
一般不需要手动添加环境变量,程序编译链接时候会自动根据/etc/ld.so.conf和/etc/ld.so.conf.d里面的库文件路径去查找,除非你把SDL2的库安装到了非常规的路径下面。
Reply
Like 0
View the author
jb71415
deepin
2019-09-13 07:53
#4
在你的ide里面配置,一般的会自动导入/usr/include里面的库,开发的时候引入头文件#include 即可
Reply
Like 0
View the author
梦幻大陆
deepin
2019-09-13 18:06
#5
编译参数是用pkg-config生成的,和windows 不同
pkg-config --libs --cflags sdl2
Reply
Like 0
View the author
136******97
deepin
2019-09-24 05:40
#6
感谢诸神
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
What is the purpose of UOS AI?
Cannot upgrade "Deepin 25.0.10"
Feature Request: Adding an option for a "Floating Dock" mode in DDE
[Feature Request] Drop-down grid panel for window snap layouts
Popular Events
More
已经下载好了,变量怎么设置?