Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议设置3ds的makefile文件的 INCLUDES 变量 #81

Closed
t2meng opened this issue Apr 28, 2018 · 5 comments
Closed

建议设置3ds的makefile文件的 INCLUDES 变量 #81

t2meng opened this issue Apr 28, 2018 · 5 comments

Comments

@t2meng
Copy link

t2meng commented Apr 28, 2018

如果不设置此变量,会导致用devkitpro编译时找不到包含的头文件。如

$ make
rixplay.cpp
arm-none-eabi-g++ -MMD -MP -MF /e/3dswork/sdlpal-master/3ds/build/rixplay.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffunction-sections -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/opt/devkitpro/libctru/include -I/opt/devkitpro/portlibs/armv6k/include -I/opt/devkitpro/portlibs/3ds/include -I/opt/devkitpro/libctru/include/SDL -I/opt/devkitpro/portlibs/armv6k/include/SDL -I/opt/devkitpro/portlibs/3ds/include/SDL -I/e/3dswork/sdlpal-master/3ds/build -DARM11 -D_3DS -D__3DS__ -D__N3DS__ -DPAL_HAS_PLATFORM_SPECIFIC_UTILS -I. -fno-rtti -fno-exceptions -std=gnu++14 -c /e/3dswork/sdlpal-master/3ds/../rixplay.cpp -o rixplay.o
In file included from e:\3dswork\sdlpal-master\global.h:26:0,
from E:/3dswork/sdlpal-master/3ds/../rixplay.cpp:24:
e:\3dswork\sdlpal-master\common.h:175:10: fatal error: pal_config.h: No such file or directory
#include "pal_config.h"
^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/opt/devkitpro/devkitARM/base_rules:80:rixplay.o] 错误 1
make: *** [Makefile:143:build] 错误 2

@t2meng
Copy link
Author

t2meng commented Apr 28, 2018

建议这样设置 设置 INCLUDES

@louyihua
Copy link
Member

你好,你可以创建pull request来提交你的这个修改

@t2meng
Copy link
Author

t2meng commented Apr 29, 2018

#82 修改3ds makefile,设置正确的头文件路径。

@t2meng
Copy link
Author

t2meng commented Apr 29, 2018

@louyihua DEVKITPRO变量和DEVKITARM不必设置,这两个变量是在devkitpro里面自动设置的,具体可以参考devkitpro 的3dsexample里的标准makefile ,如 3ds-examples ,在这里设置DEVKITPRO和DEVKITARM,可有可无。

@t2meng
Copy link
Author

t2meng commented Apr 29, 2018

@louyihua 已经重新创建 pull request #83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants