Closed Sunderland93 closed 7 years ago
Update your submodules after cloning the repository:
git submodule update -i --recursive --remote
The master branch requires the submodule OpenFX to be on branch "multiplane2" (for now)
Ok, that works. But now has a linking problem:
rm -f libGui.a
ar cqs libGui.a AboutWindow.o ActionShortcuts.o AddKnobDialog.o AnimatedCheckBox.o AnimItemBase.o AnimationModule.o AnimationModuleBase.o AnimationModuleEditor.o AnimationModuleSelectionModel.o AnimationModuleTreeView.o AnimationModuleUndoRedo.o AnimationModuleView.o AnimationModuleViewCurveWidget.o AnimationModuleViewCurveWidgetPrivate.o AnimationModuleViewDopeSheet.o AnimationModuleViewPrivate.o AutoHideToolBar.o BackdropGui.o Button.o CachedFramesThread.o ClickableLabel.o ColoredFrame.o ComboBox.o CurveGui.o CurveWidgetDialogs.o CustomParamInteract.o DialogButtonBox.o DockablePanel.o DockablePanelPrivate.o DockablePanelTabWidget.o DocumentationManager.o DotGui.o Edge.o EditExpressionDialog.o EditNodeViewerContextDialog.o EditScriptDialog.o FloatingWidget.o QtEnumConvert.o GroupBoxLabel.o Gui.o Gui05.o Gui10.o Gui15.o Gui20.o Gui30.o Gui40.o Gui50.o GuiApplicationManager.o GuiApplicationManager10.o GuiApplicationManagerPrivate.o GuiAppInstance.o GuiPrivate.o Histogram.o InfoViewerWidget.o KnobAnim.o KnobItemsTableGui.o KnobGuiContainerHelper.o KnobGui.o KnobGui10.o KnobGui20.o KnobGuiFactory.o KnobGuiPrivate.o KnobGuiFile.o KnobGuiWidgets.o FileTypeMainWindow_win.o GuiGLContext.o KnobGuiButton.o KnobGuiBool.o KnobGuiChoice.o KnobGuiSeparator.o KnobGuiColor.o KnobGuiString.o KnobGuiGroup.o KnobGuiTable.o KnobGuiParametric.o KnobGuiValue.o KnobUndoCommand.o KnobWidgetDnD.o Label.o LineEdit.o LinkToKnobDialog.o LogWindow.o ManageUserParamsDialog.o MessageBox.o Menu.o NewLayerDialog.o NodeAnim.o NodeCreationDialog.o NodeGraph.o NodeGraph05.o NodeGraph10.o NodeGraph13.o NodeGraph15.o NodeGraph20.o NodeGraph25.o NodeGraph30.o NodeGraph35.o NodeGraph40.o NodeGraph45.o NodeGraphPrivate.o NodeGraphPrivate10.o NodeGraphTextItem.o NodeGraphRectItem.o NodeGraphUndoRedo.o NodeGui.o NodeSettingsPanel.o NodeViewerContext.o PanelWidget.o PickKnobDialog.o PreferencesPanel.o PreviewThread.o ProjectGui.o ProgressPanel.o ProgressTaskInfo.o PropertiesBinWrapper.o PyGuiApp.o PyGlobalGui.o PythonPanels.o RenderStatsDialog.o ResizableMessageBox.o RightClickableWidget.o ScaleSliderQWidget.o ScriptEditor.o ScriptTextEdit.o SequenceFileDialog.o Shaders.o SpinBox.o SpinBoxValidator.o SplashScreen.o Splitter.o StyledKnobWidgetBase.o TabGroup.o TableItemAnim.o TableModelView.o TabWidget.o TextRenderer.o ticks.o ToolButton.o TimeLineGui.o VerticalColorBar.o ViewerGL.o ViewerGLPrivate.o ViewerTab.o ViewerTab10.o ViewerTabOverlays.o ViewerTabNodesUI.o ViewerTab40.o ViewerTabPrivate.o ViewerToolButton.o natrongui_module_wrapper.o pyguiapplication_wrapper.o guiapp_wrapper.o pymodaldialog_wrapper.o pypanel_wrapper.o pytabwidget_wrapper.o qrc_GuiResources.o
make[2]: Leaving directory '/media/DATA/Загрузки/NATRON/natron-2.2.8/Gui'
make[1]: Leaving directory '/media/DATA/Загрузки/NATRON/natron-2.2.8'
dh_auto_build: make -j4 returned exit code 2
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 2
@Sunderland93 the output you gave does not contain the error, which probably happens before that. Disable the parallel make (make -j4) to get the proper output
@devernay , right?
make[2]: Entering directory '/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer'
g++ -c -m64 -pipe -ftemplate-depth-1024 -fopenmp -O2 -Wall -W -Wextra -Wno-multichar -D_REENTRANT -DQT_NO_DEBUG_OUTPUT -DYAML=YAML_NATRON -DOFX_EXTENSIONS_NUKE -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_VEGAS -DOFX_SUPPORTS_PARAMETRIC -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_NATRON -DOFX_EXTENSIONS_RESOLVE -DOFX_SUPPORTS_OPENGLRENDER -DOFX_SUPPORTS_MULTITHREAD -DOFX_SUPPORTS_DIALOG -DQT_NO_CAST_FROM_ASCII -DNDEBUG -DROTO_SHAPE_RENDER_ENABLE_CAIRO -DNATRON_BUILD_NUMBER=0 -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I../Engine -I../libs/SequenceParsing -I../libs -I../Global -I../Serialization -I../Global -I../HostSupport -I../libs/OpenFX/include -I../libs/OpenFX_extensions -I../libs/OpenFX/HostSupport/include -I../../natron-2.2.8 -I../libs/libmv -I../libs/openMVG -I../libs/hoedown/src -I../libs/libtess -I../libs/yaml-cpp/include -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I/usr/include/PySide/QtCore -I/usr/include/PySide/QtGui -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/shiboken -I/usr/include/PySide -I. -o NatronRenderer_main.o NatronRenderer_main.cpp
In file included from ../../natron-2.2.8/Engine/AppManager.h:28:0,
from NatronRenderer_main.cpp:39:
../../natron-2.2.8/Global/Macros.h:723:1: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]
GCC_DIAG_OFF(c++11-extensions)
^~
g++ -m64 -fopenmp -Wl,-rpath,'$ORIGIN/../lib',-z,origin -Wl,-O1 -o NatronRenderer NatronRenderer_main.o -L/usr/lib/x86_64-linux-gnu -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine/ -lEngine -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Serialization/ -lSerialization -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../HostSupport/ -lHostSupport -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/libmv/ -lLibMV -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/openMVG/ -lopenMVG -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/ceres/ -lceres -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/glog/ -lglog -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/gflags/ -lgflags -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/hoedown/build/ -lhoedown -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/libtess/ -ltess -L/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../libs/yaml-cpp/ -lyaml-cpp-natron -lGL -lX11 /usr/lib/x86_64-linux-gnu/libcairo.a -lrt -L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lboost_serialization -lexpat -lfontconfig -lfreetype -lpixman-1 -lpyside-python2.7 -lshiboken-python2.7 -lpython2.7 -lQtNetwork -lQtCore -lpthread
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `boost::thread_exception::thread_exception(int, char const*)':
Cache.cpp:(.text._ZN5boost16thread_exceptionC2EiPKc[_ZN5boost16thread_exceptionC5EiPKc]+0x16): undefined reference to `boost::system::system_category()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `boost::condition_error::condition_error(int, char const*)':
Cache.cpp:(.text._ZN5boost15condition_errorC2EiPKc[_ZN5boost15condition_errorC5EiPKc]+0x16): undefined reference to `boost::system::system_category()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `boost::shared_lock<boost::shared_mutex>::lock()':
Cache.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x42): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
Cache.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x7b): undefined reference to `boost::detail::get_current_thread_data()'
Cache.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x1b6): undefined reference to `boost::this_thread::interruption_point()'
Cache.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x223): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
Cache.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x30c): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `Natron::SharedMemoryProcessLocalReadLocker<true>::SharedMemoryProcessLocalReadLocker(Natron::CachePrivate<true>*)':
Cache.cpp:(.text._ZN6Natron34SharedMemoryProcessLocalReadLockerILb1EEC2EPNS_12CachePrivateILb1EEE[_ZN6Natron34SharedMemoryProcessLocalReadLockerILb1EEC5EPNS_12CachePrivateILb1EEE]+0x97): undefined reference to `boost::detail::get_current_thread_data()'
Cache.cpp:(.text._ZN6Natron34SharedMemoryProcessLocalReadLockerILb1EEC2EPNS_12CachePrivateILb1EEE[_ZN6Natron34SharedMemoryProcessLocalReadLockerILb1EEC5EPNS_12CachePrivateILb1EEE]+0x236): undefined reference to `boost::this_thread::interruption_point()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `Natron::SharedMemoryProcessLocalReadLocker<false>::SharedMemoryProcessLocalReadLocker(Natron::CachePrivate<false>*)':
Cache.cpp:(.text._ZN6Natron34SharedMemoryProcessLocalReadLockerILb0EEC2EPNS_12CachePrivateILb0EEE[_ZN6Natron34SharedMemoryProcessLocalReadLockerILb0EEC5EPNS_12CachePrivateILb0EEE]+0x97): undefined reference to `boost::detail::get_current_thread_data()'
Cache.cpp:(.text._ZN6Natron34SharedMemoryProcessLocalReadLockerILb0EEC2EPNS_12CachePrivateILb0EEE[_ZN6Natron34SharedMemoryProcessLocalReadLockerILb0EEC5EPNS_12CachePrivateILb0EEE]+0x236): undefined reference to `boost::this_thread::interruption_point()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `boost::unique_lock<boost::shared_mutex>::lock()':
Cache.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x42): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
Cache.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x88): undefined reference to `boost::detail::get_current_thread_data()'
Cache.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x1c6): undefined reference to `boost::this_thread::interruption_point()'
Cache.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x233): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
Cache.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x2c8): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `Natron::CachePrivate<true>::ensureSharedMemoryIntegrity()':
Cache.cpp:(.text._ZN6Natron12CachePrivateILb1EE27ensureSharedMemoryIntegrityEv[_ZN6Natron12CachePrivateILb1EE27ensureSharedMemoryIntegrityEv]+0x91): undefined reference to `boost::detail::get_current_thread_data()'
Cache.cpp:(.text._ZN6Natron12CachePrivateILb1EE27ensureSharedMemoryIntegrityEv[_ZN6Natron12CachePrivateILb1EE27ensureSharedMemoryIntegrityEv]+0x25e): undefined reference to `boost::this_thread::interruption_point()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(Cache.o): In function `_GLOBAL__sub_I_Cache.cpp':
Cache.cpp:(.text.startup+0x37): undefined reference to `boost::system::generic_category()'
Cache.cpp:(.text.startup+0x3c): undefined reference to `boost::system::generic_category()'
Cache.cpp:(.text.startup+0x41): undefined reference to `boost::system::system_category()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(ImageCacheEntry.o): In function `Natron::ImageCacheEntry::fetchCachedTilesAndUpdateStatus(Natron::TileStateHeader*, bool*, bool*)':
ImageCacheEntry.cpp:(.text+0x7683): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
ImageCacheEntry.cpp:(.text+0x770b): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
ImageCacheEntry.cpp:(.text+0x7c25): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(ImageCacheEntry.o): In function `boost::condition_variable::wait(boost::unique_lock<boost::mutex>&)':
ImageCacheEntry.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0x18): undefined reference to `boost::detail::get_current_thread_data()'
ImageCacheEntry.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0xf6): undefined reference to `boost::this_thread::interruption_point()'
/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer/../Engine//libEngine.a(ImageCacheEntry.o): In function `_GLOBAL__sub_I_ImageCacheEntry.cpp':
ImageCacheEntry.cpp:(.text.startup+0x37): undefined reference to `boost::system::generic_category()'
ImageCacheEntry.cpp:(.text.startup+0x3c): undefined reference to `boost::system::generic_category()'
ImageCacheEntry.cpp:(.text.startup+0x41): undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
Makefile:106: recipe for target 'NatronRenderer' failed
make[2]: *** [NatronRenderer] Error 1
make[2]: Leaving directory '/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8/Renderer'
Makefile:327: recipe for target 'sub-Renderer-make_default' failed
make[1]: *** [sub-Renderer-make_default] Error 2
make[1]: Leaving directory '/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.8'
dh_auto_build: make -j1 returned exit code 2
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
YOu are missing a config.pri file. Read the Readme, it should contain something like this (with paths corresponding to your platform)
boost { INCLUDEPATH += /usr/include LIBS += -L/usr/lib -lboost_thread-mt -lboost_system-mt } boost-serialization-lib: LIBS += -L/usr/lib -lboost_serialization-mt
@MrKepzie here is my config.pri:
boost: LIBS += -lboost_serialization
expat: LIBS += -lexpat
expat: PKGCONFIG -= expat
cairo: PKGCONFIG -= cairo
PYSIDE_PKG_CONFIG_PATH = $$system($$PYTHON_CONFIG --prefix)/lib/pkgconfig
pyside: PKGCONFIG += pyside
pyside: INCLUDEPATH += $$system(env PKG_CONFIG_PATH=$$PYSIDE_PKG_CONFIG_PATH pkg-config --variable=includedir pyside)/QtCore
pyside: INCLUDEPATH += $$system(env PKG_CONFIG_PATH=$$PYSIDE_PKG_CONFIG_PATH pkg-config --variable=includedir pyside)/QtGui
Update my config.pri. Another error:
g++ -c -m64 -pipe -std=c++98 -ftemplate-depth-1024 -O2 -Wall -W -Wextra -Wno-multichar -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DYAML=YAML_NATRON -DOFX_EXTENSIONS_NUKE -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_VEGAS -DOFX_SUPPORTS_PARAMETRIC -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_NATRON -DOFX_EXTENSIONS_RESOLVE -DOFX_SUPPORTS_OPENGLRENDER -DOFX_SUPPORTS_MULTITHREAD -DOFX_SUPPORTS_DIALOG -DQT_NO_CAST_FROM_ASCII -DNDEBUG -DROTO_SHAPE_RENDER_ENABLE_CAIRO -DNATRON_BUILD_NUMBER=0 -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I../Global/gladDeb/include -I../libs/yaml-cpp/include -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I/usr/include -I/usr/include/PySide/QtCore -I/usr/include/PySide/QtGui -I../libs/OpenFX/include -I../libs/OpenFX_extensions -I../libs/OpenFX/HostSupport/include -I../Serialization -I../../natron-2.2.9 -I../libs/SequenceParsing -I../Engine -I../Engine/NatronEngine -I../Global -I../libs/qhttpserver/src -I. -INatronGui -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/shiboken -I/usr/include/PySide -I/usr/X11R6/include -I. -o KnobGuiString.o KnobGuiString.cpp
KnobGuiString.cpp: In member function 'QFont Natron::KnobGuiString::makeFontFromState() const':
KnobGuiString.cpp:425:9: error: return-statement with no value, in function returning 'QFont' [-fpermissive]
return;
^~~~~~
Makefile:1449: recipe for target 'KnobGuiString.o' failed
make[2]: *** [KnobGuiString.o] Error 1
make[2]: Leaving directory '/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.9/Gui'
Makefile:350: recipe for target 'sub-Gui-make_default' failed
make[1]: *** [sub-Gui-make_default] Error 2
make[1]: Leaving directory '/media/DATA/Загрузки/LLVM/NATRON/natron-2.2.9'
dh_auto_build: make -j1 returned exit code 2
debian/rules:6: recipe for t
This was fixed. remember that the master branch is a moving target. Things are not working yet. Better use RB-2.2 or RB-2.3 closing this issue
@devernay Thanks!
Please ask questions ("how do I...?") on the forum, not by filing issues.
Make concrete suggestions for fixing the code ("here is a patch") by filing a pull request, not an issue.
Problem
Failed to build on Debian 9 with GCC 6
Expected behavior: Succesed build
Actual behavior: I try to make deb-packages for my Debian 9 repo and Ubuntu PPA. Actualy Natron won't build with GCC 6, so I add
QMAKE_CXXFLAGS += -std=c++98
to Gui.pro, Engine.pro and Tests.pro. But build whatever failed with error:My build recipe:
Can you please help me resolve this issue? I want to provide deb packages in my repos, and also to propose them for inclusion in the Debian official repo.
Versions