I'm trying to compile the plugin using Scons (as a SharedLibrary) for Nuke 6.2 under OSX
It seems to be to do with the function 'readWarpdFile()' has been deprecated (lines 527-559), but it is still prototyped on line 403, and called on line 382.
Here is my output for the OSX compile:
g++ -o build/darwin.x86_64/tx_nukeLensDistortion.os -c -O -c -DUSE_GLEW -fPIC -msse -arch x86_64 -fPIC -I/Applications/Nuke6.2v2/Nuke6.2v2.app/Contents/MacOS/include build/darwin.x86_64/tx_nukeLensDistortion.cpp
g++ -o build/darwin.x86_64/release/tx_nukeLensDistortion.dylib -framework OpenGL -arch x86_64 -dynamiclib build/darwin.x86_64/tx_nukeLensDistortion.os -L/Applications/Nuke6.2v2/Nuke6.2v2.app/Contents/MacOS -lDDImage -lGLEW
Undefined symbols:
"tx_nukeLensDistortion::readWarpdFile(char const*)", referenced from:
tx_nukeLensDistortion::knob_changed(DD::Image::Knob*) in tx_nukeLensDistortion.os
ld: symbol(s) not found
collect2: ld returned 1 exit status
scons: *** [build/darwin.x86_64/release/tx_nukeLensDistortion.dylib] Error 1
scons: building terminated because of errors.
When compiling the code under Linux, it goes through fine.
For reference, the linux compile that goes through fine is with:
g++ -o build/linux.x86_64/tx_nukeLensDistortion.os -c -O -c -DUSE_GLEW -fPIC -msse -fPIC -I/mount/nvizible_applications/centos.linux.x86_64/nuke/Nuke6.2v1/include build/linux.x86_64/tx_nukeLensDistortion.cpp
g++ -o build/linux.x86_64/release/tx_nukeLensDistortion.so -shared build/linux.x86_64/tx_nukeLensDistortion.os -L/mount/nvizible_applications/centos.linux.x86_64/nuke/Nuke6.2v1 -lDDImage -lGLEW
(The initial output that I posted was from my laptop, which is 6.2v2, and that output above is from 6.2v1, which is what we've got installed in the office. Trying to install for OSX under 6.2v1 shows the same error)