Menu

Building

Featured (5)
Anonymous

Make sure you have working Lazarus and Free Pascal compiler installed.

Free Pascal Compiler 2.6.2 and Lazarus 1.0 is used to develop Transmission Remote GUI. You may use different versions of FPC and Lazarus at your own risk.

Download the sources archive and extract it to some folder or perform svn checkout.

Building from the command line

There are 2 methods:

  1. Using make (recommended):
    • Open terminal/command line prompt and cd to the sources folder;
    • Execute make command to build the application;
    • Execute make zipdist command to create a release .zip archive in the Release sub-folder.
  2. Using lazbuild:
    • Open terminal/command line prompt and cd to the sources folder;
    • Execute lazbuild transgui.lpi command to build the application.

Building from Lazarus IDE

  • Run Lazarus IDE;
  • You need to install the package with transgui custom components before opening the transgui project. The package installation is needed only once. To install the package do the following:
    • Select "Package > Open package file (.lpk)..." from the main menu.
    • Locate the trcomp.lpk file in the program's sources folder and open it.
    • Press the Install button in the package window.
    • You will be asked to rebuild Lazarus. Do it to finish the package installation.
  • Open transgui.lpi project and build it.

Related

Wiki: Home
Wiki: TrackingErrors

Discussion

  • Anonymous

    Anonymous - 2009-09-04

    Originally posted by: 9459...@gmail.com

    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.

     
  • Anonymous

    Anonymous - 2009-10-09

    Originally posted by: j...@cp-lab.com

    I rebuild LCL with optimization and smartlinking enabled (-O2 -CX switches) The final executable is build with smartlinking as well (-CX -XX switches)

     
  • Anonymous

    Anonymous - 2011-01-13

    Originally posted by: AKhromo...@gmail.com

    For ubuntu 10.10. Changing notifications like this

    File main.pas

    procedure TMainForm.DownloadFinished(const TorrentName: string);
    begin
    if not TrayIcon.Visible then
    begin exit end;
    {
    TrayIcon.BalloonHint:=Format(sFinishedDownload, [TorrentName]);
    TrayIcon.BalloonTitle:=sDownloadComplete;
    TrayIcon.ShowBalloonHint;
    }
    Shell(Format('echo ''message:''%s'' has finished downloading'' | zenity --notification --listen --window-icon=/usr/share/icons/hicolor/48x48/apps/transmission.png --display=:0.0' , [TorrentName]));
    end;
    
     
  • Anonymous

    Anonymous - 2011-01-26

    Originally posted by: j...@cp-lab.com

    Please create a patch and open a new issue in the Issued section.

     
  • Anonymous

    Anonymous - 2011-05-04

    Originally posted by: r.korv...@gmail.com

    To build in Ubuntu 11.04 Install lazarus with "sudo apt-get install lazarus". This command automatically installs all needed dependencies.

    Then use "make" in the source directory to compile. After that build a zip package using "make zipdist".

    In the Release dir you'll find the file transgui-3.1-i386-linux.zip (or something like that), it contains your build. Use it as you like.

     
  • Anonymous

    Anonymous - 2012-05-16

    Originally posted by: hwipar...@gmail.com

    Building with Lazarus, the output executable (Linux, Qt4) was over 20 MB in size. However, I found two simple and useful tools: strip and upx. Using them I managed to make my binary size less than 2 MB. And yet, it works properly. At least it seems to :) Greetings from Poland :)

     
  • Anonymous

    Anonymous - 2012-11-03

    Originally posted by: mos...@gmail.com

    Building on Debian sid 64 bit to get the same binary as on site here https://gist.github.com/4006964 .

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.