|
Building
Building Transmission Remote GUI from sources
Make sure you have working Lazarus and Free Pascal compiler installed. Free Pascal Compiler 2.2.2 or later and the latest development version of Lazarus (0.9.27) is required. The latest Lazarus snapshots can be found here. Download sources archive and extract it to some folder or perform svn checkout. Run Lazarus IDE, open transgui project and build it. Or to build from command line:
|
Sign in to add a comment
Okay, after some work and a lot of help from fpcfan in #lazarus-ide, i got this to build (note that you need to add --ws=gtk2 or something like that to the lazbuild thing. also, some distros don't install a symlink for lazbuild, i found it in /usr/share/lazarus/). Running it, however, results in "Error reading sbGenInfo.ClientHeight?: Unknown property: "ClientHeight?""
okay, with all those ClientHeight? and ClientWidth? lines removed, the program launches, but then it soon crashes with "Access Violation", presumably because it has trouble getting new info from the daemon.
I am trying to build most current code but am getting :
Compiling resource win32wsextdlgs.rc C:\PROGRA~1\Util\lazarus\fpc\2.2.2\bin\i386-win32\windres.exe: no resources C:\PROGRA~1\Util\lazarus\lcl\interfaces\win32\win32wsextdlgs.pp(223,1) Error: Error while linking C:\PROGRA~1\Util\lazarus\lcl\interfaces\win32\win32wsextdlgs.pp(223,1) Fatal: There were 1 errors compiling module, stopping
Note: Lazarus 0.9.27 daily build (not the 0.9.26 main release) is required. Download from http://www.lazarus.freepascal.org/ "Daily Snapshots"
Can somebody give more detailed instructions how to get final result (binary file) on linux, gtk+. Because if you follow the above instructions (1st post), you will get a binary file of size 21.5 Mb. Aftert altering project and compiler properties (don't generate debug info, optimization level 3, smart linking and so on) it's possible to downsize the file to 3.9 Mb, but it should be only 2.0 Mb, as in Download section. Thanks in advance.
I rebuild LCL with optimization and smartlinking enabled (-O2 -CX switches) The final executable is build with smartlinking as well (-CX -XX switches)
main.pas(791,39) Error: identifier idents no member "ControlByName?"
Current build doesn't compile with 0.9.29/2.3.1/Win Lazarus (2 fatal errors - ContolByName? and TImageIndex/Variant).