Recent

Author Topic: lazbuild Compiling Issue [SOLVED]  (Read 2074 times)

TheLastCayen

  • Jr. Member
  • **
  • Posts: 81
lazbuild Compiling Issue [SOLVED]
« on: February 27, 2020, 08:22:37 am »
Hi,

I am using:
 - Linux mint XFCE 19.3 64bit
 - Lazarus 2.0.6
 - FPC 3.0.4

My software is using
 - Cross.Codebot
 - mouseandkeyinput

Source Code available at:
  https://github.com/TheLastCayen/tinymice

I am working on the Github for an application I am publishing. I have no problem compiling on my computer but when I copy the files on a virtual machine to test :

lazbuild ptinymice.lpi

I get that eror message : Error: (lazarus)
 unable to create package output directory "/usr/share/lazarus/2.0.6/components/mouseandkeyinput/lib/x86_64-linux" of package "LazMouseAndKeyInput 0.1"

It makes sense since I am not running lazbuild as root and I will not recommend anyone to compile anything as root.

Then, the compilation fail during the linking process.

My question is, How can I set it so it will compile mouseandkeyinput inside my application lib folder instead of /usr/share/lazarus/2.0.6/  ?

Thank you
« Last Edit: February 27, 2020, 11:22:19 pm by TheLastCayen »

TheLastCayen

  • Jr. Member
  • **
  • Posts: 81
Re: lazbuild Compiling Issue
« Reply #1 on: February 27, 2020, 08:24:57 pm »
I copy mouseandkeyinput into my app lib folder.
Changed the dependency in the project manager to load that one instead.
Disable any compiling optimization for the project.
Enable the Debugging option for the project.

Now I can't compile at all. the only error message I get is error while linking...

How can I know what is going wrong?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: lazbuild Compiling Issue
« Reply #2 on: February 27, 2020, 09:28:04 pm »
Right click on the messages window and choose the option to copy all messages to the clipboard.
Paste the messages into an editor and look for lines about a missing library, or other errors that arise at the linking stage or that mention ld.

TheLastCayen

  • Jr. Member
  • **
  • Posts: 81
Re: lazbuild Compiling Issue
« Reply #3 on: February 27, 2020, 11:14:28 pm »
Thank you howardpc, I had no idea you can have more info that way:)

It fails to compile at:
/usr/bin/ld: cannot find -lXtst

Anyone know what that mean?

thank you




TheLastCayen

  • Jr. Member
  • **
  • Posts: 81
Re: lazbuild Compiling Issue
« Reply #4 on: February 27, 2020, 11:21:55 pm »
Never mind, I was so focused on the mouseandkeyinput issue, I forgot to install the dependency.

so to be able to compile and run the app, I needed to do:

Code: Bash  [Select][+][-]
  1. sudo apt-get install libxtst-dev libsqlite3-dev
  2.  


 

TinyPortal © 2005-2018