Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Dec 10, 2018 9:57 am

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat Sep 08, 2018 7:06 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
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


Top
   
PostPosted: Sat Sep 08, 2018 7:11 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
It's with MSYS2 btw, for an Old 2ds


Top
   
PostPosted: Sat Sep 08, 2018 8:42 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7226
table/strings.h is an autogenerated file from strgen. you're missing some step in your compilation

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Sun Sep 09, 2018 9:20 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
Ok, how do I run "strgen"?, sorry for the ignorance


Top
   
PostPosted: Sun Sep 09, 2018 9:26 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7226
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

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Sun Sep 09, 2018 9:38 pm 
Offline
Engineer
Engineer

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


Top
   
PostPosted: Sun Sep 09, 2018 9:59 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
Same error, but, How do I run "strgen"?


Top
   
PostPosted: Sun Sep 09, 2018 10:06 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
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;


Top
   
PostPosted: Sun Sep 09, 2018 10:06 pm 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
Mind telling what's wrong with it? plz


Top
   
PostPosted: Sun Sep 09, 2018 11:23 pm 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7226
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:
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"

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Last edited by Eddi on Mon Sep 10, 2018 4:41 am, edited 1 time in total.

Top
   
PostPosted: Mon Sep 10, 2018 3:02 am 
Offline
Engineer
Engineer

Joined: Tue Sep 04, 2018 10:33 pm
Posts: 8
Thank you very much!

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.