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

amirtaheri
Engineer
Engineer
Posts: 7
Joined: 20 Jul 2008 14:17

Re: Howto apply a patch/diff file

Post by amirtaheri »

I only used "make" with no spaces and no luck
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

amirtaheri wrote:I only used "make" with no spaces and no luck
Yexo wrote:Don't use a path with spaces in it. Btw, "make" should do, instead of "make build"
amirtaheri wrote:Macbook:/users/amirtaheri/openttd amirtaheri$ make build
The directory "openttd amirtaheri" contains a space. i was refering to that space (in the path).
amirtaheri
Engineer
Engineer
Posts: 7
Joined: 20 Jul 2008 14:17

Re: Howto apply a patch/diff file

Post by amirtaheri »

That isn't something I can change. The actual folder is just OpenTTD

The structure is /users/amirtaheri/openttd

That amirtaheri$ is part of the Terminal application prompt I think.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

amirtaheri wrote:That isn't something I can change. The actual folder is just OpenTTD

The structure is /users/amirtaheri/openttd

That amirtaheri$ is part of the Terminal application prompt I think.
Then I've no more idea how to solve your problem.
amirtaheri
Engineer
Engineer
Posts: 7
Joined: 20 Jul 2008 14:17

Re: Howto apply a patch/diff file

Post by amirtaheri »

Any other takers?

I really want to install this Passenger destination patch!
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

amirtaheri wrote:That amirtaheri$ is part of the Terminal application prompt I think.
What's the output of pwd?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
amirtaheri
Engineer
Engineer
Posts: 7
Joined: 20 Jul 2008 14:17

Re: Howto apply a patch/diff file

Post by amirtaheri »

Just this:

/users/amirtaheri/openttd
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

Then you are correct, and the " amirtaheri" is added by your shell.

Try these two:
"svn st | grep !"
"ls -l /users/amirtaheri/openttd/src/core/alloc_func.cpp src/core/alloc_func.cpp"
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
amirtaheri
Engineer
Engineer
Posts: 7
Joined: 20 Jul 2008 14:17

Re: Howto apply a patch/diff file

Post by amirtaheri »

I'm getting this:

Code: Select all

WARNING: you enabled distcc support, but you don't seem to be using the -jN paramter

[LANG] Compiling string.cpp
In file included from /users/amirtaheri/openttd/src/string.cpp:6:
/users/amirtaheri/openttd/src/openttd.h:11:17: error: hal.h: No such file or directory
/users/amirtaheri/openttd/src/openttd.h:12:23: error: helpers.hpp: No such file or directory
In file included from /usr/include/c++/4.0.0/backward/map.h:59,
                 from /users/amirtaheri/openttd/src/openttd.h:29,
                 from /users/amirtaheri/openttd/src/string.cpp:6:
/usr/include/c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /users/amirtaheri/openttd/src/string.cpp:6:
/users/amirtaheri/openttd/src/openttd.h:30:19: error: slope.h: No such file or directory
/users/amirtaheri/openttd/src/string.cpp:9:25: error: string_func.h: No such file or directory
/users/amirtaheri/openttd/src/openttd.h:137: error: expected constructor, destructor, or type conversion before ';' token
/users/amirtaheri/openttd/src/openttd.h:140: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:140: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:140: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:140: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:141: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:142: error: 'OwnerByte' does not name a type
/users/amirtaheri/openttd/src/openttd.h:161: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:161: error: 'EnumPropsT' is not a template type
/users/amirtaheri/openttd/src/openttd.h:161: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:161: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:161: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:162: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:168: error: 'Slope' does not name a type
/users/amirtaheri/openttd/src/openttd.h:169: error: 'TileIndex' does not name a type
/users/amirtaheri/openttd/src/openttd.h:219: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:219: error: 'EnumPropsT' is not a template type
/users/amirtaheri/openttd/src/openttd.h:219: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:219: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:219: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:220: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:363: error: typedef 'GetSlopeZProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:363: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:363: error: expected primary-expression before 'x'
/users/amirtaheri/openttd/src/openttd.h:363: error: expected primary-expression before 'y'
/users/amirtaheri/openttd/src/openttd.h:364: error: typedef 'ClearTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:364: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:364: error: expected primary-expression before 'flags'
/users/amirtaheri/openttd/src/openttd.h:365: error: typedef 'GetAcceptedCargoProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:365: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:365: error: expected primary-expression before 'res'
/users/amirtaheri/openttd/src/openttd.h:366: error: typedef 'GetTileDescProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:366: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:366: error: expected primary-expression before '*' token
/users/amirtaheri/openttd/src/openttd.h:366: error: 'td' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:391: error: typedef 'GetTileTrackStatusProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:391: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:391: error: expected primary-expression before 'mode'
/users/amirtaheri/openttd/src/openttd.h:391: error: expected primary-expression before 'sub_mode'
/users/amirtaheri/openttd/src/openttd.h:392: error: typedef 'GetProducedCargoProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:392: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:392: error: expected primary-expression before '*' token
/users/amirtaheri/openttd/src/openttd.h:392: error: 'b' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:393: error: typedef 'ClickTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:393: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:394: error: typedef 'AnimateTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:394: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:395: error: typedef 'TileLoopProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:395: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:396: error: typedef 'ChangeTileOwnerProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:396: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:396: error: expected primary-expression before 'old_player'
/users/amirtaheri/openttd/src/openttd.h:396: error: expected primary-expression before 'new_player'
/users/amirtaheri/openttd/src/openttd.h:398: error: 'TileIndex' has not been declared
/users/amirtaheri/openttd/src/openttd.h:399: error: 'Slope' does not name a type
/users/amirtaheri/openttd/src/openttd.h:414: error: ISO C++ forbids declaration of 'GetSlopeTilehProc' with no type
/users/amirtaheri/openttd/src/openttd.h:414: error: expected ';' before '*' token
/users/amirtaheri/openttd/src/openttd.h:582: error: typedef 'PlaceProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:582: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'char* strecat(char*, const char*, const char*)':
/users/amirtaheri/openttd/src/string.cpp:41: error: 'strecpy' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'void str_validate(char*)':
/users/amirtaheri/openttd/src/string.cpp:80: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:80: error: expected `;' before 'c'
/users/amirtaheri/openttd/src/string.cpp:83: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:83: error: 'Utf8Decode' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:84: error: 'IsPrintable' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:85: error: 'CS_ALPHANUMERAL' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:85: error: 'IsValidChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'void str_strip_colours(char*)':
/users/amirtaheri/openttd/src/string.cpp:106: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:106: error: expected `;' before 'c'
/users/amirtaheri/openttd/src/string.cpp:109: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:109: error: 'Utf8Decode' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: At global scope:
/users/amirtaheri/openttd/src/string.cpp:145: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:145: error: 'CharSetFilter' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:145: error: initializer expression list treated as compound expression
/users/amirtaheri/openttd/src/string.cpp:146: error: expected ',' or ';' before '{' token
/users/amirtaheri/openttd/src/string.cpp:215: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:215: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:215: error: expected primary-expression before 'const'
/users/amirtaheri/openttd/src/string.cpp:215: error: initializer expression list treated as compound expression
/users/amirtaheri/openttd/src/string.cpp:216: error: expected ',' or ';' before '{' token
/users/amirtaheri/openttd/src/string.cpp:254: error: 'WChar' has not been declared
/users/amirtaheri/openttd/src/string.cpp: In function 'size_t Utf8Encode(char*, int)':
/users/amirtaheri/openttd/src/string.cpp:260: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:264: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:269: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'size_t Utf8TrimString(char*, size_t)':
/users/amirtaheri/openttd/src/string.cpp:293: error: 'Utf8EncodedCharLen' was not declared in this scope
make[1]: *** [string.o] Error 1
make -C /users/amirtaheri/openttd/objs/lang table/strings.h
[LANG] Compiling string.cpp
In file included from /users/amirtaheri/openttd/src/string.cpp:6:
/users/amirtaheri/openttd/src/openttd.h:11:17: error: hal.h: No such file or directory
/users/amirtaheri/openttd/src/openttd.h:12:23: error: helpers.hpp: No such file or directory
In file included from /usr/include/c++/4.0.0/backward/map.h:59,
                 from /users/amirtaheri/openttd/src/openttd.h:29,
                 from /users/amirtaheri/openttd/src/string.cpp:6:
/usr/include/c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /users/amirtaheri/openttd/src/string.cpp:6:
/users/amirtaheri/openttd/src/openttd.h:30:19: error: slope.h: No such file or directory
/users/amirtaheri/openttd/src/string.cpp:9:25: error: string_func.h: No such file or directory
/users/amirtaheri/openttd/src/openttd.h:137: error: expected constructor, destructor, or type conversion before ';' token
/users/amirtaheri/openttd/src/openttd.h:140: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:140: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:140: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:140: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:141: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:142: error: 'OwnerByte' does not name a type
/users/amirtaheri/openttd/src/openttd.h:161: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:161: error: 'EnumPropsT' is not a template type
/users/amirtaheri/openttd/src/openttd.h:161: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:161: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:161: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:162: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:168: error: 'Slope' does not name a type
/users/amirtaheri/openttd/src/openttd.h:169: error: 'TileIndex' does not name a type
/users/amirtaheri/openttd/src/openttd.h:219: error: 'EnumPropsT' is not a template
/users/amirtaheri/openttd/src/openttd.h:219: error: 'EnumPropsT' is not a template type
/users/amirtaheri/openttd/src/openttd.h:219: error: expected template-name before '<' token
/users/amirtaheri/openttd/src/openttd.h:219: error: expected `{' before '<' token
/users/amirtaheri/openttd/src/openttd.h:219: error: expected unqualified-id before '<' token
/users/amirtaheri/openttd/src/openttd.h:220: error: expected initializer before '<' token
/users/amirtaheri/openttd/src/openttd.h:363: error: typedef 'GetSlopeZProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:363: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:363: error: expected primary-expression before 'x'
/users/amirtaheri/openttd/src/openttd.h:363: error: expected primary-expression before 'y'
/users/amirtaheri/openttd/src/openttd.h:364: error: typedef 'ClearTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:364: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:364: error: expected primary-expression before 'flags'
/users/amirtaheri/openttd/src/openttd.h:365: error: typedef 'GetAcceptedCargoProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:365: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:365: error: expected primary-expression before 'res'
/users/amirtaheri/openttd/src/openttd.h:366: error: typedef 'GetTileDescProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:366: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:366: error: expected primary-expression before '*' token
/users/amirtaheri/openttd/src/openttd.h:366: error: 'td' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:391: error: typedef 'GetTileTrackStatusProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:391: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:391: error: expected primary-expression before 'mode'
/users/amirtaheri/openttd/src/openttd.h:391: error: expected primary-expression before 'sub_mode'
/users/amirtaheri/openttd/src/openttd.h:392: error: typedef 'GetProducedCargoProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:392: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:392: error: expected primary-expression before '*' token
/users/amirtaheri/openttd/src/openttd.h:392: error: 'b' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:393: error: typedef 'ClickTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:393: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:394: error: typedef 'AnimateTileProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:394: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:395: error: typedef 'TileLoopProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:395: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:396: error: typedef 'ChangeTileOwnerProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:396: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/openttd.h:396: error: expected primary-expression before 'old_player'
/users/amirtaheri/openttd/src/openttd.h:396: error: expected primary-expression before 'new_player'
/users/amirtaheri/openttd/src/openttd.h:398: error: 'TileIndex' has not been declared
/users/amirtaheri/openttd/src/openttd.h:399: error: 'Slope' does not name a type
/users/amirtaheri/openttd/src/openttd.h:414: error: ISO C++ forbids declaration of 'GetSlopeTilehProc' with no type
/users/amirtaheri/openttd/src/openttd.h:414: error: expected ';' before '*' token
/users/amirtaheri/openttd/src/openttd.h:582: error: typedef 'PlaceProc' is initialized (use __typeof__ instead)
/users/amirtaheri/openttd/src/openttd.h:582: error: 'TileIndex' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'char* strecat(char*, const char*, const char*)':
/users/amirtaheri/openttd/src/string.cpp:41: error: 'strecpy' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'void str_validate(char*)':
/users/amirtaheri/openttd/src/string.cpp:80: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:80: error: expected `;' before 'c'
/users/amirtaheri/openttd/src/string.cpp:83: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:83: error: 'Utf8Decode' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:84: error: 'IsPrintable' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:85: error: 'CS_ALPHANUMERAL' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:85: error: 'IsValidChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'void str_strip_colours(char*)':
/users/amirtaheri/openttd/src/string.cpp:106: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:106: error: expected `;' before 'c'
/users/amirtaheri/openttd/src/string.cpp:109: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:109: error: 'Utf8Decode' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: At global scope:
/users/amirtaheri/openttd/src/string.cpp:145: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:145: error: 'CharSetFilter' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:145: error: initializer expression list treated as compound expression
/users/amirtaheri/openttd/src/string.cpp:146: error: expected ',' or ';' before '{' token
/users/amirtaheri/openttd/src/string.cpp:215: error: 'WChar' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:215: error: 'c' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:215: error: expected primary-expression before 'const'
/users/amirtaheri/openttd/src/string.cpp:215: error: initializer expression list treated as compound expression
/users/amirtaheri/openttd/src/string.cpp:216: error: expected ',' or ';' before '{' token
/users/amirtaheri/openttd/src/string.cpp:254: error: 'WChar' has not been declared
/users/amirtaheri/openttd/src/string.cpp: In function 'size_t Utf8Encode(char*, int)':
/users/amirtaheri/openttd/src/string.cpp:260: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:264: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp:269: error: 'GB' was not declared in this scope
/users/amirtaheri/openttd/src/string.cpp: In function 'size_t Utf8TrimString(char*, size_t)':
/users/amirtaheri/openttd/src/string.cpp:293: error: 'Utf8EncodedCharLen' was not declared in this scope
make[2]: *** [string.o] Error 1
make[1]: *** [/users/amirtaheri/openttd/objs/lang/table/strings.h] Error 2
make: *** [all] Error 2
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Howto apply a patch/diff file

Post by planetmaker »

you're obviously missing files (look at all those "not found" lines). Also I've got the impression that you have files which were not successfully patched and require resolving patch conflicts. Follow DaleStan's instructions and we might be able to help further.
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Re: Howto apply a patch/diff file

Post by Brianetta »

DaleStan wrote:Try these two:
"svn st | grep !"
<snip>
You need to be wary of unescaped exclamation marks. bash loves to parse them as history events with absolutely the highest precedence, which is annoying.

"svn st | grep \!"
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

Ah. That explains why -!T- (a useful-to-me TTDPatch switch) is so not-worky on bash. I did figure out to escape the bang, but never bothered to figure out why.
Anyway, do what Brianetta said. He is in the habit of knowing what he's talking about, and it can't hurt.

In fact, the entire output of "svn st" could also be helpful. grepping for ! selects only those files that aren't present in your working copy, as opposed to those that are "merely" changed.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
blackjak231
Engineer
Engineer
Posts: 43
Joined: 31 Aug 2007 17:25

Re: Howto apply a patch/diff file

Post by blackjak231 »

hi guys!

i recently bought a macbook and i really wanted OpenTTD, so i installed it, added new grfs, and then i want to install a patch.... I never understood how people do it a windows, so on a Mac.... i have no idea!!! im guessing i should enter this in "terminal", but its not a very clear tutorial to me.

Sorry if i make some of you mad if im the 10000000th person to ask this! :roll:
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

blackjak231 wrote:hi guys!

i recently bought a macbook and i really wanted OpenTTD, so i installed it, added new grfs, and then i want to install a patch.... I never understood how people do it a windows, so on a Mac.... i have no idea!!! im guessing i should enter this in "terminal", but its not a very clear tutorial to me.

Sorry if i make some of you mad if im the 10000000th person to ask this! :roll:
http://wiki.openttd.org/index.php/Compiling_on_Mac

That page might anwers your questions, if not, ask again with the steps you didn't understand and/or the errors you got.
blackjak231
Engineer
Engineer
Posts: 43
Joined: 31 Aug 2007 17:25

Re: Howto apply a patch/diff file

Post by blackjak231 »

nope, still cant apply any.... oh well :rolleyes:
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

blackjak231 wrote:nope, still cant apply any.... oh well :rolleyes:
Yexo wrote:That page might anwers your questions, if not, ask again with the steps you didn't understand and/or the errors you got.
How else could we possible help you?
blackjak231
Engineer
Engineer
Posts: 43
Joined: 31 Aug 2007 17:25

Re: Howto apply a patch/diff file

Post by blackjak231 »

Yexo wrote:
blackjak231 wrote:nope, still cant apply any.... oh well :rolleyes:
Yexo wrote:That page might anwers your questions, if not, ask again with the steps you didn't understand and/or the errors you got.
How else could we possible help you?
Well, let me explain what im having a problem to understand...
It says to enter certain lines of code in terminal, but do i just enter them like that from the user, or do i have to do "cd ~/Desktop/Openttd/...etc"
and then do it?

Do do the following, i put the .diff file in the same folder as the openttd executable file...(im guessing that)
So if i get it correctly, i have to use this:

Code: Select all

patch -p0 -i file.diff
and i get

Code: Select all

patch -p2 -i trafficlights.diff
am i getting it right or is it totally wrong?
the Monkey's Uncle
Engineer
Engineer
Posts: 26
Joined: 13 Apr 2005 01:11

Re: Howto apply a patch/diff file

Post by the Monkey's Uncle »

I'm trying to install the YAPP patch to the latest OpenTTD stable release. I followed the directions and got as far as the part where you use TortoiseSVN to apply the patch. See image:
Image

But when I do that, I get this blank window... which I don't know what to do with.
Image

So, what do I do now?

Or even better, does anyone have a copy of OpenTTD 0.6.2 with just the YAPP installed, or would be willing to do it for me? If you want I can provide my own webspace for you to upload it to.

EDIT: I also tried it with BuildOpenTTD, but when I tried to select the YAPP patch, it says "unknown patch format"
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Howto apply a patch/diff file

Post by CommanderZ »

Get lastest nightly, it has YAPP included.
the Monkey's Uncle
Engineer
Engineer
Posts: 26
Joined: 13 Apr 2005 01:11

Re: Howto apply a patch/diff file

Post by the Monkey's Uncle »

Ooh, awesome, thanks for the tip. All this stuff is waaay over my head. :P
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests