rgbscriptscache.cpp:46:12: error:

Post Reply
sgrobinson
Posts: 12
Joined: Sat Jan 12, 2019 5:37 pm
Real Name: Scott Robinson

Mac OS X 10.14.5, QT 5.12.3

I get a percentage of the way through 'make' but but fail at the following stage.... Rather than attempt to fix I thought I'd check here as I downloaded the released source which should build?

Code: Select all

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -Werror -O2 -std=gnu++11  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_NO_DEBUG_OUTPUT -DHAS_FFTW3 -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_CORE_LIB -I. -I../audio/src -I../../plugins/interfaces -I../../hotplugmonitor/src -I/opt/local/include -I/Users/scott/Qt5.12.3/5.12.3/clang_64/lib/QtMultimedia.framework/Headers -I/Users/scott/Qt5.12.3/5.12.3/clang_64/lib/QtGui.framework/Headers -I/Users/scott/Qt5.12.3/5.12.3/clang_64/lib/QtNetwork.framework/Headers -I/Users/scott/Qt5.12.3/5.12.3/clang_64/lib/QtScript.framework/Headers -I/Users/scott/Qt5.12.3/5.12.3/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode10.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode10.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AGL.framework/Headers/ -I/Users/scott/Qt5.12.3/5.12.3/clang_64/mkspecs/macx-clang -F/Users/scott/Qt5.12.3/5.12.3/clang_64/lib -o rgbscriptscache.o rgbscriptscache.cpp
rgbscriptscache.cpp:46:12: error: local variable 'names' will be copied despite being returned by name [-Werror,-Wreturn-std-move]
    return names;
           ^~~~~
rgbscriptscache.cpp:46:12: note: call 'std::move' explicitly to avoid copying
    return names;
           ^~~~~
           std::move(names)
1 error generated.
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

XCode version?
sgrobinson
Posts: 12
Joined: Sat Jan 12, 2019 5:37 pm
Real Name: Scott Robinson

Version 10.2.1 (10E1001)
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

I haven't upgraded my mac to mojave yet. (xcode 10 requires it)
Will do when I have some time and make a fix to the code.
sgrobinson
Posts: 12
Joined: Sat Jan 12, 2019 5:37 pm
Real Name: Scott Robinson

Thanks.

In that case I'll take a look at the code and go from there. Just wanted to be sure I wasn't hitting some known bug or missing dependency before fixing anything
User avatar
mcallegari
Posts: 4482
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

No no, this is a plain and natural compile error.
Every compiler generation (either clang or gcc) restricts the code syntax even more.
From time to time the code needs to be improved a bit.
Quite standard procedure.
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Just do as the message says: replace the line with "return std::move(names);"
Post Reply