Howto apply a patch/diff file

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

User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

You need to convert all your line-end characters to \n instead of \r\n...
Have you Scintilla Text Editor installed?
Otherwise I've no idea how to do it... Nano maybe?
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

stevenh wrote:You need to convert all your line-end characters to \n instead of \r\n...
Have you Scintilla Text Editor installed?
Otherwise I've no idea how to do it... Nano maybe?
How do I convert them? Where?
And I dont have any of those programs.
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

Wikipedia: NewLine tells me:

Code: Select all

tr -d '\r' < inputfile > outputfile
will do it.... probably copy the affected file to something like .old and then run the conversion.

when you installed cygwin, did you choose DOS or Unix text file support?
I don't know if re-running setup will fix this?

if you have perl installed, this might also help you.
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

I re-install it for Dos/text. And the end-of-line problem is solved.

But how about the other errors?

Code: Select all

[LANG] Compiling and Linking endian_check.exe
make[1]: ***[endian_check.exe] Error 1
and

Code: Select all

make[1]: ***No rule to make target `ai/ai.d', needed by `ai/ai.o'. Stop.
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

type:

Code: Select all

gcc -v
and tell me the response? have you got g++ and gcc installed?
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

This the response , I installed it just like the wiki said.
So I think i haveg++ and gcc installed.
Attachments
screenshot.PNG
screenshot.PNG (15.26 KiB) Viewed 2065 times
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Step 9 of the Wiki Cygwin pages i can't get the svn... commands working.

(* Alternatively, if you got subversion - launch cygwin and run mkdir -p /usr/src/openttd to make the directory, then cd /usr/src/openttd and finally svn checkout svn://svn.openttd.org/trunk. This will place all the source code in /usr/src/openttd/trunk
* You can always get the latest source code by running command: svn update. )

Espaccialy the red lines won't work. So i created a Trunk map of my own in the Cygwin/usr/src/openttd folder and copied all of the SVN files in to it.

but then

I get these errors when i run step 11 on the Cygwin wikipage. (# For the first time you need to do a ./configure to set up everything. If that gives errors in config.lib, run a dos2unix config.lib and try again. If you have installed libpng12-devel or libfreetype2-devel, you must add --disable-static to the parameters of ./configure. )
Attachments
errorcygwin.PNG
errorcygwin.PNG (14.65 KiB) Viewed 2048 times
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

It seems that the both of you are missing the required tools...

Hamilton, have you installed gcc AND g++?
If 'svn' fails then it's not installed!

orcaz, can you please test if you really do have g++?


Please go back here and see the list of requirements.... when you get to package selection, hit "view" until it says "full" next to it... see the attached screenshot.

And then _make sure_ you have all required packages installed!
Attachments
gcc-core? gcc-g++? ... the other are dependencies which will be automagically selected.
gcc-core? gcc-g++? ... the other are dependencies which will be automagically selected.
gcc.PNG (33.12 KiB) Viewed 2031 times
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

You were right, i didn't install all of the files.

But when i run make i got the following errors:
Attachments
errormake.PNG
errormake.PNG (45.08 KiB) Viewed 1253 times
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

What configure line did you run? It sounds like the includes are being messed up....
Does make 'reconfigure' each time? Did it do a configure for you?
I can only recommend deleting your ottd folder, checking out the source again and then doing a fresh './configure' and 'make'.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I did that.

Followd every step on the Wiki, but then after make those errors pop up.
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

I have all the package needed.
I did try to reinstall.
I deleted the ottd files, and create new one and checking the source again.
make does 'reconfigure each time'.

And result still the same.
Attachments
screenshot.PNG
screenshot.PNG (23.5 KiB) Viewed 1990 times
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

i just followed my own advice and realised the instructions are flawed on my computer...

Code: Select all

$ make
make reconfigure
make[1]: Entering directory `/openttd'
----------------
The system detected that source.list or any configure file is altered.
 Going to reconfigure with last known settings...
----------------
and then after endian_check,strgen,it starts building the DEPs and then just sits in a loop

Code: Select all

[SRC] DEP ai/ai.cpp
make[1]: Leaving directory `/openttd/objs/release'
make[1]: Entering directory `/openttd/objs/release'
[SRC] Testing endianness for target
[SRC] DEP /openttd/src/ottdres.rc
[SRC] DEP yapf/yapf_ship.cpp
[SRC] DEP yapf/yapf_road.cpp
[SRC] DEP yapf/yapf_rail.cpp
... any of the devs want to give us a hand? I do have a space in my username and couldn't use my homedir to start with... could be causing other issues.

Hamilton, please try

Code: Select all

make VERBOSE=1
and tell me the command used to compile the endian check and we might be able to work out what the hell is busted...

Sorry I haven't worked this all out yet.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Thanks for your help...
Attachments
errormakeverbose=1.PNG
errormakeverbose=1.PNG (55.2 KiB) Viewed 1244 times
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

Cygwin is known to have quite a flux in their API code, which makes it quite a running target. I'm not sure whether there's currently a developer that actually uses Cygwin, due to the before mentioned issues. It's probably much easier to set up MS Visual C++ (Express).
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

This time I try to compile using MS VISUAL C++ (express) and get this when compiling.

Code: Select all

4>namegen.cpp
4>d:\data\openttd\xxx\src\table/namegen.h : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
4>d:\data\openttd\xxx\src\table/namegen.h(1358) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1362) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1656) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1675) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1677) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1845) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1846) : error C2143: syntax error : missing '}' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1846) : error C2143: syntax error : missing '}' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1846) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1846) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1846) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1847) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1847) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1847) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1848) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1848) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1848) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1849) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1849) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1849) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1850) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1850) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1850) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1851) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1851) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1851) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1852) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1852) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1852) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1853) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1853) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1853) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1854) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1854) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1854) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1855) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1855) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1855) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1856) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1856) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1856) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1857) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1857) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1857) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1858) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1858) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1858) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1859) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1859) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1859) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1860) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1860) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1860) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1861) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1861) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1861) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1862) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1862) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1862) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1863) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1863) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1863) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1864) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1864) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1864) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1865) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1865) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1865) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1866) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1866) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1866) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1867) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1867) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1867) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1868) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1868) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1868) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1869) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1869) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1869) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1870) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1870) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1870) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1871) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1871) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1871) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1872) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1872) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1872) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1873) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1873) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1873) : error C2059: syntax error : ','
4>d:\data\openttd\xxx\src\table/namegen.h(1874) : error C2143: syntax error : missing ';' before '{'
4>d:\data\openttd\xxx\src\table/namegen.h(1874) : error C2447: '{' : missing function header (old-style formal list?)
4>d:\data\openttd\xxx\src\table/namegen.h(1874) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1889) : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
4>d:\data\openttd\xxx\src\table/namegen.h(1906) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(1907) : error C2143: syntax error : missing '}' before ';'
4>d:\data\openttd\xxx\src\table/namegen.h(1928) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(2386) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(2394) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(2411) : error C2001: newline in constant
4>d:\data\openttd\xxx\src\table/namegen.h(2411) : fatal error C1003: error count exceeds 100; stopping compilation
And also

Code: Select all

4>currency.cpp
4>..\src\currency.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
4>..\src\currency.cpp(26) : error C2001: newline in constant
4>..\src\currency.cpp(27) : error C2117: 'CurrencySpec::suffix' : array bounds overflow
4>        d:\data\openttd\xxx\src\currency.h(23) : see declaration of 'CurrencySpec::suffix'
4>..\src\currency.cpp(27) : error C2078: too many initializers
4>..\src\currency.cpp(27) : error C2143: syntax error : missing '}' before '{'
4>..\src\currency.cpp(27) : error C2143: syntax error : missing '}' before '{'
4>..\src\currency.cpp(27) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(27) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(27) : error C2059: syntax error : ','
4>..\src\currency.cpp(28) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(28) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(28) : error C2059: syntax error : ','
4>..\src\currency.cpp(29) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(29) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(29) : error C2059: syntax error : ','
4>..\src\currency.cpp(30) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(30) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(30) : error C2059: syntax error : ','
4>..\src\currency.cpp(31) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(31) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(31) : error C2059: syntax error : ','
4>..\src\currency.cpp(32) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(32) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(32) : error C2059: syntax error : ','
4>..\src\currency.cpp(33) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(33) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(33) : error C2059: syntax error : ','
4>..\src\currency.cpp(34) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(34) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(34) : error C2059: syntax error : ','
4>..\src\currency.cpp(35) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(35) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(35) : error C2059: syntax error : ','
4>..\src\currency.cpp(36) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(36) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(36) : error C2059: syntax error : ','
4>..\src\currency.cpp(37) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(37) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(37) : error C2059: syntax error : ','
4>..\src\currency.cpp(38) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(38) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(38) : error C2059: syntax error : ','
4>..\src\currency.cpp(39) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(39) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(39) : error C2059: syntax error : ','
4>..\src\currency.cpp(40) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(40) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(40) : error C2059: syntax error : ','
4>..\src\currency.cpp(41) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(41) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(41) : error C2059: syntax error : ','
4>..\src\currency.cpp(42) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(42) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(42) : error C2059: syntax error : ','
4>..\src\currency.cpp(43) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(43) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(43) : error C2059: syntax error : ','
4>..\src\currency.cpp(44) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(44) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(44) : error C2059: syntax error : ','
4>..\src\currency.cpp(45) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(45) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(45) : error C2059: syntax error : ','
4>..\src\currency.cpp(46) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(46) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(46) : error C2059: syntax error : ','
4>..\src\currency.cpp(47) : error C2143: syntax error : missing ';' before '{'
4>..\src\currency.cpp(47) : error C2447: '{' : missing function header (old-style formal list?)
4>..\src\currency.cpp(47) : error C2059: syntax error : ','
4>..\src\currency.cpp(48) : error C2143: syntax error : missing ';' before '}'
4>..\src\currency.cpp(48) : error C2059: syntax error : '}'
and finally

Code: Select all

4>BSCMAKE: error BK1506 : cannot open file '..\objs\Win32\Release\namegen.sbr': No such file or directory
4>Build log was saved at "file://d:\Data\openttd\xxx\objs\Win32\Release\BuildLog.htm"
4>openttd - 173 error(s), 5 warning(s)
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I'm trying to with MS Visual, but i can't find the DirectX headers folder ????
Attachments
probmsV.PNG
probmsV.PNG (13.74 KiB) Viewed 1236 times
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

Upon downloading and extracting the SDK you'll find an include and lib folders that you'll need to reference to.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I allready did that, but nowhere is a Headers subfolder like mentioned in the Wiki.
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

orcaz, roll back bash to 3.1.6.. you can do this by running setup again and clicking "skip" until it says the version number.

Hamilton, where did the SDK extract to? it is usually C:\Program Files\Microsoft Direct X SDK\... or something to that effect?
Do a file search maybe?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 9 guests