Recent

Author Topic: [Solved] //usr/lib  (Read 411 times)

minko

  • Newbie
  • Posts: 4
[Solved] //usr/lib
« on: January 08, 2021, 06:43:43 pm »
I think i have problem with two slashes before usr. Does anybody know how to fix it?
Code: [Select]
Debug: //usr/lib/lazarus/2.0.0/components/lazutils/lib/arm-linux/avglvltree.o: file not recognized: file format not recognized
homeaut.lpr(23,0) Error: Error while linking
Thank You
Raspi B+ OS-Buster, Lazarus 2.0.0, FPC 3.0.4
« Last Edit: January 11, 2021, 08:24:11 pm by minko »

MarkMLl

  • Hero Member
  • *****
  • Posts: 1730
Re: //usr/lib
« Reply #1 on: January 08, 2021, 10:16:36 pm »
Just as a placeholder since nobody else  has said anything useful yet: what exactly were you doing to get that?

By and large the major Linux utilities are fairly tolerant of // in paths, but there's a possibility that there's something in the toolchain that assumes that it identifies a machine name (i.e. like its usage in URLs). Or something :-)

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

minko

  • Newbie
  • Posts: 4
Re: //usr/lib
« Reply #2 on: January 08, 2021, 10:35:36 pm »
It is a program/application with thermal sensors. As a program (no GUI) it works fine. but as a GUI app it stops with error.
I tried brand new empty project-application and the same.

MarkMLl

  • Hero Member
  • *****
  • Posts: 1730
Re: //usr/lib
« Reply #3 on: January 08, 2021, 11:14:10 pm »
OK, but that looks like a compilation error. What exactly were you doing at the time? Can you duplicate it with a project you are prepared to upload?

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

minko

  • Newbie
  • Posts: 4
Re: //usr/lib
« Reply #4 on: January 09, 2021, 08:52:44 am »
I'm talking about a new empty project now. In the original project, I added LazUtils because of the fileutil in the project inspector. Unfortunately, I am at work now and I cannot reproduce every step, but I will continue tomorrow. Thank you.

MarkMLl

  • Hero Member
  • *****
  • Posts: 1730
Re: //usr/lib
« Reply #5 on: January 09, 2021, 10:11:13 am »
I'm not particularly well set up for doing stuff on an RPi right now, although I've used them heavily in the past. But obviously I'm not the only person watching this thread.

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

cdbc

  • Sr. Member
  • ****
  • Posts: 303
    • http://www.cdbc.dk
Re: //usr/lib
« Reply #6 on: January 10, 2021, 08:54:47 am »
Hi
Why not just make a function, that scans for double //
and then replace them with a single / ?!?
Then just run your path through that...
Just a thought.
Regards benny
If it ain't broke, don't fix it ;)

minko

  • Newbie
  • Posts: 4
[Solved] Re: //usr/lib
« Reply #7 on: January 11, 2021, 08:15:03 pm »
I apologize for the delay. I tried reinstalling lazarus but due to broken packages in Buster I was forced to reinstall OS and newly install Lazarus. At present I have no problems to run my app - so i can't reproduce previous problem.
Many Thanks to everybody   :-X

 

TinyPortal © 2005-2018