o2DS port (Getting errors on building)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

o2DS port (Getting errors on building)

Post 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
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

It's with MSYS2 btw, for an Old 2ds
Eddi
Tycoon
Tycoon
Posts: 8257
Joined: 17 Jan 2007 00:14

Re: o2DS port (Getting errors on building)

Post by Eddi »

table/strings.h is an autogenerated file from strgen. you're missing some step in your compilation
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

Ok, how do I run "strgen"?, sorry for the ignorance
Eddi
Tycoon
Tycoon
Posts: 8257
Joined: 17 Jan 2007 00:14

Re: o2DS port (Getting errors on building)

Post 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
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

Thanks for the reply, think I got an idea to try,, I will reply with results in around 5 minutes.
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

Same error, but, How do I run "strgen"?
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post 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;
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

Mind telling what's wrong with it? plz
Eddi
Tycoon
Tycoon
Posts: 8257
Joined: 17 Jan 2007 00:14

Re: o2DS port (Getting errors on building)

Post 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"
Last edited by Eddi on 10 Sep 2018 04:41, edited 1 time in total.
NiCKOz
Engineer
Engineer
Posts: 8
Joined: 04 Sep 2018 22:33

Re: o2DS port (Getting errors on building)

Post by NiCKOz »

Thank you very much!

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

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests