Re: [Lazarus] Debian Packager released
Yeah, all my code requires FPC 3 or greater. You should have gotten an error message in codebot.inc when you try to use FPC 2.6.4. {$if fpc_fullversion < 3} 'This library requires the free pascal 3 or greater' {$endif} If you want to use more recent versions, the FPC and Lazarus bundles from my website http://www.getlazarus.org/setup are designed to use local FPC and Lazarus configuration files. In other words they will not interfere with your existing development environment. I'd encourage everyone to switch to FPC 3.0.0. You get proper generics, type helpers, dotted namespaces, and more. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
Lazarus 1.4.4 with FPC 2.6.4 on Ubuntu 14.04.3 LTS 64 bits. 2015-12-16 18:57 GMT-02:00 Anthony Walter : > Can you give me information on your FPC version? > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Atenciosamente, Alexsander da Rosa -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
Can you give me information on your FPC version? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
I've tried to compile it but got this compiling the Codebot package (fresh clone): Compiling package codebot 1.0: Exit code 1, Errors: 2 codebot.pas(10,3) Error: Duplicate identifier "CODEBOT" codebot.pas(10,10) Fatal: Syntax error, ";" expected but "." found 2015-12-16 12:36 GMT-02:00 Alexsander Rosa : > I've tested it, congratulations, it works fine. > However I have a suggestion: an option to select the destination. > It seems it always installs at /usr/local/bin. > I would like to install into /opt/company-name/app-name to add other files. > What do you think? > > 2015-11-10 14:22 GMT-02:00 JuuS : > >> >> >> On 11/10/2015 05:32 AM, Anthony Walter wrote: >> > A new version is available with a much better dependency resolver. >> >> Beautiful, works great, VMs/machines, 32/64, qt/gtk2. Now, on to >> codebot Thanks for your work. >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > > -- > Atenciosamente, > Alexsander da Rosa > > -- Atenciosamente, Alexsander da Rosa -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
I've tested it, congratulations, it works fine. However I have a suggestion: an option to select the destination. It seems it always installs at /usr/local/bin. I would like to install into /opt/company-name/app-name to add other files. What do you think? 2015-11-10 14:22 GMT-02:00 JuuS : > > > On 11/10/2015 05:32 AM, Anthony Walter wrote: > > A new version is available with a much better dependency resolver. > > Beautiful, works great, VMs/machines, 32/64, qt/gtk2. Now, on to > codebot Thanks for your work. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Atenciosamente, Alexsander da Rosa -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
On 11/10/2015 05:32 AM, Anthony Walter wrote: > A new version is available with a much better dependency resolver. Beautiful, works great, VMs/machines, 32/64, qt/gtk2. Now, on to codebot Thanks for your work. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
A new version is available with a much better dependency resolver. If you want to discuss the details further and out of courtesy to the mailing list users, please use this location to provide feedback: http://www.getlazarus.org/forums/viewtopic.php?f=21&t=122&p=348#p348 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
Okay, I take all this back, I don't have time to explain, but I am going to build a new version. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
More information: https://en.wikipedia.org/wiki/Ldd_(Unix) ldd (List Dynamic Dependencies) is a *nix utility that prints the shared libraries required by each program or shared library specified on the command line.[1] Here's and example using my program colormix: user@home ~/ $ ldd colormix linux-vdso.so.1 => (0x7ffc1eef8000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fb3f9d43000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fb3f997e000) ... snip a few lines libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x7fb3f7a7d000) libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x7fb3f764e000) ... more lines follow then pick a dependency which is under /usr/lib ... user@home ~/ $ dpkg -S /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 libpangocairo-1.0-0:amd64: /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 and finally check the package to verify the version ... user@home ~/ $ dpkg -s libpangocairo-1.0-0 Package: libpangocairo-1.0-0 Status: install ok installed Priority: optional Section: libs Version: 1.36.3-1ubuntu1.1 which then creates in the control file ... Depends: libpangocairo-1.0-0 (>= 1.36.3) I am quite confident that this is a valid approach to building a dependency list. If you want lower version numbers, try making the deb in an older OS (12.04) and see if the version numbers are lower there. I wouldn't know how to look up depends versions any other way, other than say googling each package and trying random lower version numbers. With regards to linking to dependencies you feel are not needed, try copying just the application to another system without using the deb. See if you get an error when running the app due to missing libraries. i.e. Your other test computer doesn't have "/usr/lib/nvidia-346/xorg/libglx.so.346.96" and the program fails because of this reason. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
JuuS, can run through the steps manually to confirm? First run: ldd path/to/app Then with anything which links to /usr/lib do: dpkg -S /usr/lib/path/libsomething.so.1 This will give you the packages on your system required to run your application. You can check the minimum version with: dpkg -s packagename And check the line starting with "Version: " -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debian Packager released
On 11/07/2015 02:34 AM, Anthony Walter wrote: > I've put up a release for Debian Packager, a tool which hopefully makes > it easy for developers to create their own deb packages to deploy their > applications. Usage should be self explanatory and help is > provided. Debian Packager can build both 32 and 64 bit deb packages. > > http://www.getlazarus.org/apps/makedeb/ Greetings, Appears to be broken (I have NO idea why it would include an nvidia file, libqt4pas5 was installed on the machine I did the deb build on, the previous apt-file methods worked): Preparing to unpack juursync_3.1.0-qt-amd64.deb ... Unpacking juursync (3.1.0-qt) ... dpkg: dependency problems prevent configuration of juursync: juursync depends on libqt4pas5 (>= 2.5); however: Package libqt4pas5 is not installed. juursync depends on nvidia-346 (>= 346.96); however: Package nvidia-346 is not installed. dpkg: error processing package juursync (--install): dependency problems - leaving unconfigured -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Debian Packager released
I've put up a release for Debian Packager, a tool which hopefully makes it easy for developers to create their own deb packages to deploy their applications. Usage should be self explanatory and help is provided. Debian Packager can build both 32 and 64 bit deb packages. http://www.getlazarus.org/apps/makedeb/ To install a package: dpkg -i packagename.deb To uninstall a package: dpkg -r packagename Note: apt-file is no longer required to build your app dependency list. Source code for the project is also available on github under the copyleft license. http://github.com/sysrpl/lazarus.apps.makedeb -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus