Page 26 of 28

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 04:46
by All Bran

Code: Select all

[SRC] DEP settings.cpp
g++: installation problem, cannot exec 'cc1plus': No such file or directory
[SRC] Compiling ai/ai.cpp
g++: installation problem, cannot exec 'cc1plus': No such file or directory
make[1]: *** [ai/ai.o] Error 1
make[1]: Leaving directory `/usr/src/openttd/trunk/objs/release'
make: *** [all] Error 2
$
That's what I get when I just run clean, still with no .exe file. Does that mean anything to you people?
I redownloaded 14004 trunk, reinstalled the patch, got the same null errors, copied to cygwin directory(C:\cygwin\usr\src\openttd\trunk) and then ./configure--disable-static, then cd't to the trunk directory and ran "make" to get the above results.

-edit once someone has checked the code, i'll snip it to clutter a bit less.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 05:25
by DaleStan
g++ is improperly installed, like the error message says. Reinstall it.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 11:59
by All Bran
Ok, I now managed to compile without errors. I used 0.6.3 source and the 0.6.3 patch file, patched with tortoise svn, and then used cygwin to compile.
I then copied the necesarry ttd files into the directory(I just copied my current OpenTTD folder which is working without any hassles and pasted that in the folder where openttd.exe was without overwriting any files) tried to run openttd.exe and received errors about .dll files being missing. I copied them from my cygwin directory. The dll files are : cygfreetype-6.dll, cygpng12.dll, cygwin1.dll and cygz.dll.

Now when I try and run openttd, it loads, shows the TTD mouse cursor, but it does not show the ttd background. It stays like this for a short while. Then the mouse cursos dissapears and a few minutes later the vista mouse cursos shows(the blue "loading" circle) and then I get a message that openttd.exe has crashed.

Any ideas what might be causing this?

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 12:04
by Eddi
if you compiled a program in cygwin, you must start it from within cygwin also.

or provide the option -mno-cygwin in CFLAGS (needs some required libraries for mingw)

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 12:15
by All Bran
I get exactly the same results either way.
i used the "run" command for cygwin eg. "run openttd.exe" is that correct?

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 15:25
by Klaatu
Does any of this *really* have to do with Build Templates? If you've got problems compiling, please start a thread about it, don't go polluting this one. JMHO.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 15:39
by All Bran
i am just trying to get my build templates to work on the 64bit windows installation of openttd i am running. I assumed it would be appropriate to post here?

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 16:13
by Starbud
Well it's ahalf wrong and half right place.
I think i would have posted in some coding thread or made a new one.
That will attract more of the right people who are famililar with coding and compilers than the users of copy&paste.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 18:01
by All Bran
That would have applied when I was having troubles compiling yes. At the moment however, it has patched without errors and compiled without errors, but I get more or less a CTD once I launch it. A black screen with the TTD pointer which can't move, and then shortly after openttd simply stops responding.

That leads me to think that it is not a patching or compiling error(point me right if I am totally wrong here) And maybe a problem between this patch and OTTD on vista x64 perhaps? :?

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 04 Nov 2008 18:33
by Starbud
Not sure what CTD is but it might be as you say, might be a virus, might be the moon ;)
Try compiling it without any patches to see if there is any differences.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 18 Nov 2008 00:23
by bcmpinc
This patch is really awesome! I've managed to get it compiling using r14589. It might have some problems with PBS signals, (maybe also with some other stuff) but here's my patch file.

Edit: It does have problems with building stations and with the types of signals.
Edit 2:Updated the patch such that it now includes the new files: copy_paste.cpp, copy_paste.h and copy_paste_gui.cpp.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 18 Nov 2008 03:02
by Starbud
Looks like you accidently do like i accidently do sometimes, i claim something is good but foreget to tell why.
So far we know it's a patch and you like it, we dont know what it is supposed to do.
Can you tell us please :)

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 18 Nov 2008 11:10
by bcmpinc
It's a patched version of the copy&paste patch. It really reduces repetitive building tasks (like building junctions), giving me more time optimizing them. However, I think i might have generated the patch file incorrectly, which causes it to be missing 2 new files. I'll fix that later.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 18 Nov 2008 12:33
by Starbud
Hehe a patch for a patch ;)

Well, what is it that you have improved?
You said something about stations, are the stations copied too now?
Is it selectable if stations should be copied?
Is there any other improvements?

I really like copy&paste and any addons are very welcome :)
I think there is a need to make it place whole lines of track instead of a single tile at a time and faultcontrol.
Well that's my opinion but i still love what Frostregen has done so far :)

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 18 Nov 2008 20:22
by bcmpinc
Theres actually only 1 minor improvement. The patch can be applied to revision r14589 without problems and the resulting code compiles. (At least if I've managed to create the patchfile correctly.)

Stations can't be copied.
Also the signal type (normal, gate, PBS) is not copied. It just places normal signals instead of the original type.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 19 Nov 2008 03:57
by Starbud
Well, one improvement is an improvment :)

It will be intresting to see what improvements will happpen in the future of this code :)

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 22 Nov 2008 08:47
by flash55
I love this patch !

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 03 Dec 2008 21:29
by DJ Nekkid
is there any chance this can get synced with cargodest? i keep building the same station bits all over all the time...

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 03 Dec 2008 21:46
by Starbud
Cargodest?
Do you have any screenshots of what youre building?
It sounds very intresting.
I remember reading some idea about it some time ago but i didnt think it was developed yet.

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Posted: 03 Dec 2008 21:51
by DJ Nekkid
http://www.tt-forums.net/viewtopic.php?f=33&t=39161

no screenies yet, but i'll take a few the next time i play