Page 1 of 1

o2DS port (Getting errors on building)

Posted: 08 Sep 2018 19:06
by NiCKOz
Hello, I am trying to get OTTD compiled using devkitPro and an SDL port by nop90 (On GitHub);
however, I Get this bunch of errors:

make[1]: Entering directory '/c/devkitPro/examples/3ds/templates/library'
road_gui.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/devkitPro/examples/3ds/templates/library/build/road_gui.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffunction-sections -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -I/c/devkitPro/examples/3ds/templates/library/include -I/opt/devkitpro/libctru/include -I/c/devkitPro/examples/3ds/templates/library/build -DARM11 -D_3DS -fno-rtti -fno-exceptions -c /c/devkitPro/examples/3ds/templates/library/source/road_gui.cpp -o road_gui.o
In file included from C:/devkitPro/examples/3ds/templates/library/source/window_gui.h:16:0,
from C:/devkitPro/examples/3ds/templates/library/source/road_gui.cpp:14:
C:/devkitPro/examples/3ds/templates/library/source/viewport_type.h:17:10: fatal error: table/strings.h: No such file or directory
#include "table/strings.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/opt/devkitpro/devkitARM/base_rules:80: road_gui.o] Error 1
make[1]: *** [Makefile:94: build] Error 2
make[1]: Leaving directory '/c/devkitPro/examples/3ds/templates/library'
make: *** [Makefile:3: all] Error 1

Re: o2DS port (Getting errors on building)

Posted: 08 Sep 2018 19:11
by NiCKOz
It's with MSYS2 btw, for an Old 2ds

Re: o2DS port (Getting errors on building)

Posted: 08 Sep 2018 20:42
by Eddi
table/strings.h is an autogenerated file from strgen. you're missing some step in your compilation

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 21:20
by NiCKOz
Ok, how do I run "strgen"?, sorry for the ignorance

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 21:26
by Eddi
well, usually that is done by the makefile automatically. i don't know enough about your compile environment or your port to see what you missed.

might also be that you did run strgen, but it put the file in a path that is not searched

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 21:38
by NiCKOz
Thanks for the reply, think I got an idea to try,, I will reply with results in around 5 minutes.

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 21:59
by NiCKOz
Same error, but, How do I run "strgen"?

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 22:06
by NiCKOz
So, uh, Here's the Makefile (with no file extension):

SUBDIRS:= `ls | egrep -v '^(CVS)$$'`
all:
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done;
clean:
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done;
install:
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i install || { exit 1;} fi; done;

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 22:06
by NiCKOz
Mind telling what's wrong with it? plz

Re: o2DS port (Getting errors on building)

Posted: 09 Sep 2018 23:23
by Eddi
that doesn't look anything like the official Makefile.

the probably most relevant part of the official makefile (in this case, Makefile.lang.in, or (generated by ./configure) objs/lang/Makefile) is:

Code: Select all

table/strings.h: lang/english.txt $(STRGEN)
	$(E) '$(STAGE) Generating $@'
	@mkdir -p table
	$(Q)./$(STRGEN) -s $(LANG_DIR) -d table
at least on my system, that will create the file in "objs/lang/table/strings.h"

Re: o2DS port (Getting errors on building)

Posted: 10 Sep 2018 03:02
by NiCKOz
Thank you very much!

Sadly, I have to sleep now (It's about 12:00 PM in Chile)