transmission-remote-gui / transgui

🧲 A feature rich cross platform Transmission BitTorrent client. Faster and has more functionality than the built-in web GUI.
GNU General Public License v2.0
3.24k stars 281 forks source link

Free Pascal v3 fpcmake not working #971

Open PeterDaveHello opened 7 years ago

PeterDaveHello commented 7 years ago

I tried to update the Makefile via fpcmake on Ubuntu 16.04 with Free Pascal v3.0.0 but failed:

Processing Makefile.fpc
Error: Target "linux", package "rtl" not found
Processing Makefile.fpc
Error: Target "darwin", package "rtl" not found
leonsoft-kras commented 7 years ago

I successfully compiled this code in Win,Debian,Raspberry Pi3 with versions of lazarus 1.6.4, fpc 3.0.2. Try to reinstall the fpc and the Lazarus.

PeterDaveHello commented 7 years ago

@leonsoft-kras I can compile it but can't reproduce the makefile by fpcmake

PeterDaveHello commented 7 years ago

Download fpc from https://sourceforge.net/projects/freepascal/files/ and set FPCDIR as wiki mentions here will fix this: http://wiki.freepascal.org/FPMake#Could_not_find_unit_directory_for_dependency_package_.22rtl.22

e.g. /usr/lib/fpc/3.0.2

PeterDaveHello commented 7 years ago

fpcmake -Tall still not working

PeterDaveHello commented 7 years ago

@leonsoft-kras I noticed that the Makefile was updated very recently by you, would you mind to give some instructions about building the development environment for newbies and maybe we can even document that, so more people can easily join contribution? Thanks.

leonsoft-kras commented 7 years ago

I did not change the file. It was changed by another participant. He changed the way to directories in the MacOS.

Manually changing makefile is a bad idea. From version to version we use the author file. The program is compiled perfectly. I do not see a need to change the makefile. If someone wants to change it, then study the documentation and perform it on your computer.

Or explain why you need to edit the makefile now?

PeterDaveHello commented 7 years ago

I originally thought it could be dated as I misunderstood something, then I found that it's not, I'm just trying to make sure I can understand enough about the build process as I'm trying to make Windows and Raspberry Pi builds automatic on Travis CI.

leonsoft-kras commented 7 years ago

We should not spoil the usual assembly. I think this is the main rule. I compile versions for windows and raspberries without changing the makefile.

PeterDaveHello commented 7 years ago

Yeah, my purpose is to understand it, not the change it :)

PeterDaveHello commented 7 years ago

@leonsoft-kras can you help confirm how to re-generate the makefile without making some arch supporting lost? Must need cross-compile support? I'm trying to improve part of the release process but can't properly update the makefile.

leonsoft-kras commented 7 years ago

I think cross-compile support is needed. Maybe someone will want to build the project himself, without the help of travis. I can't help you with the file makefile.

PeterDaveHello commented 7 years ago

Any tips or references about what's the environment of current makefile was build at?

leonsoft-kras commented 7 years ago

This project was done by another author. I, like you, make only small changes to the code.

PeterDaveHello commented 7 years ago

Okay, maybe we can work together to get it done if you done mind :) I never write pascal before, learning from this project :D

leonsoft-kras commented 7 years ago

It's not good that the project is on pascal. With a program in C/C++ it would be much easier, from all points of view.

Now everyone can work and improve the program. ;) The program on the functional reached the limit and most of the latest proposals for the development of the program are useless.

PeterDaveHello commented 7 years ago

Sorry, I'm not sure that I understand, are we moving to c/c++?

leonsoft-kras commented 7 years ago

No.

PeterDaveHello commented 7 years ago

Okay, looks like the major content of makefile was only touched by the origin author ...