ARGH
I'm thinking I could fix some code that won't compile, because I am a c++ programmer after all.
but I am a fool. this code uses QT
ARGH
I'm thinking I could fix some code that won't compile, because I am a c++ programmer after all.
but I am a fool. this code uses QT
I've got a function like:
setSamples (const QVector< QPointF > &)
and I'm calling it with a QVector<QPointF>&.
but the linker says "undefined reference to setSamples(const QList<QPointF>&)
that's... a different class?
or at least it was in QT5, which this is
but QT6 merged them.
Am I somehow leaking in some QT6 headers that are typedeffing my QVector to QList?!
okay yeah I think the problem was that it was trying to compile with QT6 and this one library was QT5 and apparently that works, except that QT6 merged QVector and QList and this means the dynamic library and the headers disagree when you try to use this library
because they were compiled with QT5 which thinks QList and QVector are different things, but then I'm trying to link against them with a program that thinks they're the same
the moral of the story is computers are terrible
but the practical application of the story is that if you're trying to compile ld-decode on relatively recent ubuntus, you need to pass "-DUSE_QT_VERSION=5" to your cmake, ie:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QT_VERSION=5 .
this will possibly get fixed when ubuntu finally updates to libqwt 6.2
@SvenGeier I think in QT5 a QVector was a generic interface that could represent a QList or some other implementation.
but I'm not 100% sure
@foone as someone who has dabbled with enough code to state with confidence that I'm NOT a programmer, was there ever a functional difference between a vector and a list? If not, why were they distinguished? If yes, how was that resolved going from 5 to 6? This sort of stuff is endlessly fascinating for me (as a bystander that doesn't actually have to do any of this for real)
@ZeugmaFr kinda! Ripping bits of a laserdisc as a way to test some domesday duplicator boards under production
@foone trying to rip some LaserDisc?
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.