Building issues on OSX

97 views
Skip to first unread message

rudy cortes

unread,
Jul 19, 2022, 10:29:45 AM7/19/22
to gaffer-dev
Hello folks. 

I've downloaded the code and followed the build instructions. Regrettably, running into errors at the linking stage, I believe. Any help or pointers yall can provide is greatly appreciated

Here is some info:

OSX Version: 10.14.6

Log output:

scons: Reading SConscript files ...
Checking for Inkscape... (cached) yes
Checking for Sphinx...(cached) no
Checking for Qt...(cached) yes
scons: done reading SConscript files.
scons: Building targets ...
clang++ -o lib/libGaffer.dylib -dynamiclib -Wl,-fatal_warnings src/Gaffer/Action.os src/Gaffer/Animation.os src/Gaffer/ApplicationRoot.os src/Gaffer/ArrayPlug.os src/Gaffer/Backdrop.os src/Gaffer/BackgroundTask.os src/Gaffer/Box.os src/Gaffer/BoxIO.os src/Gaffer/BoxIn.os src/Gaffer/BoxOut.os src/Gaffer/BoxPlug.os src/Gaffer/ChildSet.os src/Gaffer/CompoundDataPlug.os src/Gaffer/CompoundNumericPlug.os src/Gaffer/CompoundPathFilter.os src/Gaffer/ComputeNode.os src/Gaffer/Context.os src/Gaffer/ContextAlgo.os src/Gaffer/ContextMonitor.os src/Gaffer/ContextProcessor.os src/Gaffer/ContextQuery.os src/Gaffer/ContextVariables.os src/Gaffer/DeleteContextVariables.os src/Gaffer/DependencyNode.os src/Gaffer/DirtyPropagationScope.os src/Gaffer/Dot.os src/Gaffer/EditScope.os src/Gaffer/Expression.os src/Gaffer/FileSequencePathFilter.os src/Gaffer/FileSystemPath.os src/Gaffer/GraphComponent.os src/Gaffer/IECorePreview/Messages.os src/Gaffer/IECorePreview/MessagesData.os src/Gaffer/LeafPathFilter.os src/Gaffer/Loop.os src/Gaffer/MatchPatternPathFilter.os src/Gaffer/Metadata.os src/Gaffer/MetadataAlgo.os src/Gaffer/Monitor.os src/Gaffer/MonitorAlgo.os src/Gaffer/NameSwitch.os src/Gaffer/NameValuePlug.os src/Gaffer/Node.os src/Gaffer/NumericBookmarkSet.os src/Gaffer/NumericPlug.os src/Gaffer/ParallelAlgo.os src/Gaffer/Path.os src/Gaffer/PathFilter.os src/Gaffer/PerformanceMonitor.os src/Gaffer/Plug.os src/Gaffer/PlugAlgo.os src/Gaffer/Preferences.os src/Gaffer/Process.os src/Gaffer/ProcessMessageHandler.os src/Gaffer/Random.os src/Gaffer/RandomChoice.os src/Gaffer/Reference.os src/Gaffer/ScriptNode.os src/Gaffer/Set.os src/Gaffer/ShufflePlug.os src/Gaffer/SplinePlug.os src/Gaffer/Spreadsheet.os src/Gaffer/StandardSet.os src/Gaffer/StringPlug.os src/Gaffer/SubGraph.os src/Gaffer/Switch.os src/Gaffer/ThreadState.os src/Gaffer/TimeWarp.os src/Gaffer/Transform2DPlug.os src/Gaffer/TransformPlug.os src/Gaffer/TweakPlug.os src/Gaffer/TypedObjectPlug.os src/Gaffer/TypedPlug.os src/Gaffer/UndoScope.os src/Gaffer/VTuneMonitor.os src/Gaffer/ValuePlug.os src/Gaffer/Version.os -Llib -L/Users/rudy/code/gaffer-build/lib -lboost_iostreams -lboost_filesystem -lboost_date_time -lboost_thread -lboost_wave -lboost_regex -lboost_system -lboost_chrono -ltbb -lImath -lIlmImf -lIECore -lHalf -F/Users/rudy/code/gaffer-build/lib
scons: building terminated because of errors.

Last part of screen output:
  "typeinfo for IECore::RunTimeTyped", referenced from:
      typeinfo for Gaffer::Action in Action.os
      typeinfo for Gaffer::Animation::Key in Animation.os
      typeinfo for Gaffer::GraphComponent in GraphComponent.os
      typeinfo for Gaffer::Path in Path.os
      typeinfo for Gaffer::PathFilter in PathFilter.os
      typeinfo for Gaffer::Set in Set.os
  "typeinfo for IECore::FilteredMessageHandler", referenced from:
      typeinfo for Gaffer::ProcessMessageHandler in ProcessMessageHandler.os
  "typeinfo for IECore::Data", referenced from:
      typeinfo for IECore::TypedData<IECorePreview::Messages> in MessagesData.os
      typeinfo for (anonymous namespace)::RowsMap in Spreadsheet.os
  "typeinfo for IECore::Exception", referenced from:
      Gaffer::Action::doAction() in Action.os
      Gaffer::Action::undoAction() in Action.os
      Gaffer::SimpleAction::doAction() in Action.os
      Gaffer::SimpleAction::undoAction() in Action.os
      Gaffer::Animation::Key::throwIfStateNotAsExpected(Gaffer::Animation::CurvePlug const*, bool, float) const in Animation.os
      Gaffer::Animation::CurvePlug::removeKey(boost::intrusive_ptr<Gaffer::Animation::Key> const&) in Animation.os
      Gaffer::Animation::acquire(Gaffer::ValuePlug*) in Animation.os
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [lib/libGaffer.dylib] Error 1

John Haddon

unread,
Jul 19, 2022, 11:17:55 AM7/19/22
to gaffer-dev
Hi,
We're in the process of resurrecting our Mac builds, which have suffered for a while due to the fact none of us were developing on Mac. As part of this, we're concentrating our limited resources on native Apple Silicon builds, so the prebuilt dependencies at https://github.com/GafferHQ/dependencies/releases/tag/5.0.0 (I presume you're using these, though you don't say) are for Apple Silicon only. The linking error you're getting indicates that you are trying to build for Intel, which would mean needing to build the dependencies yourself, or limiting yourself to earlier Gaffer versions for which prebuilt Intel dependencies are available...
Cheers...
John

Helge Maus

unread,
Aug 12, 2022, 12:26:06 PM8/12/22
to gaffer-dev
That's a pitty.
Tried also to build it on Mac Intel, but as an artist it's not possible to use gaffer anymore :-(

Regards,
Helge

Reply all
Reply to author
Forward
0 new messages