build error in LOS.

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
alex stone
Established Member
Posts: 351
Joined: Fri Jun 06, 2008 7:39 am
Has thanked: 67 times
Been thanked: 53 times

build error in LOS.

Post by alex stone »

https://github.com/falkTX/los

I'm trying to build a daw called LOS (falktx fork from oom) in a virtual machine (because it requires qt4) using Debian 10. I get this error during the build in two places (so far).

/home/alex/Downloads/git/los/los/widgets/pcscale.cpp: In member function ‘bool PCScale::selectProgramChange(int)’:
/home/alex/Downloads/git/los/los/widgets/pcscale.cpp:511:65: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
int diff = abs((event.tick() + part->tick()) - x);
^

/home/alex/Downloads/git/los/los/widgets/pcscale.cpp:570:61: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
int diff = abs((event.tick() + part->tick()) - x);

In both instances, the closing parenthesis next to the x is indicated as an error in my text editor. (mousepad)

Does anyone have a clue how i might fix this?

Alex.
^

User avatar
bluebell
Established Member
Posts: 1927
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 113 times
Been thanked: 122 times

Re: build error in LOS.

Post by bluebell »

alex stone wrote: Mon Nov 06, 2023 3:14 pm

https://github.com/falkTX/los

I'm trying to build a daw called LOS (falktx fork from oom) in a virtual machine (because it requires qt4) using Debian 10. I get this error during the build in two places (so far).

/home/alex/Downloads/git/los/los/widgets/pcscale.cpp: In member function ‘bool PCScale::selectProgramChange(int)’:
/home/alex/Downloads/git/los/los/widgets/pcscale.cpp:511:65: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
int diff = abs((event.tick() + part->tick()) - x);
^

/home/alex/Downloads/git/los/los/widgets/pcscale.cpp:570:61: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
int diff = abs((event.tick() + part->tick()) - x);
^

I'd say that abs(unsigned int) is the same as the unsigned int. I'd try to remove abs.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

alex stone
Established Member
Posts: 351
Joined: Fri Jun 06, 2008 7:39 am
Has thanked: 67 times
Been thanked: 53 times

Re: build error in LOS.

Post by alex stone »

I'll try that. Thanks for the heads up.

Post Reply