On Tue, Nov 8, 2022 at 2:00 AM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote:
> > > On Mon, 7 Nov 2022, Aruna Hewapathirane wrote: > > > Hi Michael, > > > > Many thanks for the link. I have a few more questions please? I am > running > > FPC 3.2.0 > > and Lazarus 2.0.10 how do I get your gstreamer code into my installation? > > What is the > > preferred or best way to do this? It is my first time so apologies if > this > > is a silly question. > > In your case, I would recommend simply to copy the units into your project > folder. > > Alternatively, copy them to some folder on your harddisk, and add this > folder to the unit path in the "project options" dialog in Lazarus. > The compiler will then find them. > > Michael. > Hello Michael, I tried to get things working but had problems with the IDE I have attached as screenshot. https://pasteboard.co/xc64IUDOYVBb.png Then I tried to see if I can get it going on the command line but trouble again, screenshot attached. https://pasteboard.co/dHxckB8iMPxh.png See below for details please: -------------------------------------- aruna@debian:/media/aruna/linux-next/home/lazarus/gstreamer/example$ fpc playmp3 Free Pascal Compiler version 3.2.0+dfsg-12 [2021/01/25] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling playmp3.pp playmp3.pp(48,95) Warning: range check error while evaluating constants (-1 must be between 0 and 18446744073709551615) Linking playmp3 /usr/bin/ld.bfd: cannot find -lgstreamer-1.0 Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode ----------------------------------------------------------------------------- So I changed the -1 to a 0 in line 48,95 and tried again.... ----------------------------------------------------------------------------- aruna@debian:/media/aruna/linux-next/home/lazarus/gstreamer/example$ fpc playmp3 Free Pascal Compiler version 3.2.0+dfsg-12 [2021/01/25] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling playmp3.pp Linking playmp3 /usr/bin/ld.bfd: cannot find -lgstreamer-1.0 Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppcx64 returned an error exitcode aruna@debian:/media/aruna/linux-next/home/lazarus/gstreamer/example$ This time it tries to link but dies saying can't find : /usr/bin/ld.bfd: cannot find -lgstreamer-1.0 Now what? I will keep trying different things... Thanks, Aruna
-- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus