cpichard / usdtweak

Universal Scene Description standalone editor
Apache License 2.0
232 stars 23 forks source link

Build Error on Linux Ubuntu 20.04 (Pop!OS) #17

Open aditiapratama opened 1 month ago

aditiapratama commented 1 month ago

Hello, I've got the following when I want to try to build in Pop!Os

Debug log

Click to Expand

```shell cmake -Dpxr_DIR=/opt/OpenUSD -DMaterialX_DIR=/opt/OpenUSD/lib/cmake/MaterialX .. -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so -- Found Python3: /home/aditia/.pyenv/versions/3.9.19/include/python3.9 (found suitable exact version "3.9.19") found components: Development Development.Module Development.Embed CMake Warning (dev) at /usr/share/cmake-3.29/Modules/FetchContent.cmake:1352 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): CMakeLists.txt:19 (FetchContent_Declare) This warning is for project developers. Use -Wno-dev to suppress it. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Using X11 for window creation -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Configuring done (3.6s) CMake Error at /opt/OpenUSD/lib/cmake/MaterialX/MaterialXTargets.cmake:124 (set_target_properties): The link interface of target "MaterialXRenderHw" contains: X11::X11 but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. Call Stack (most recent call first): /opt/OpenUSD/lib/cmake/MaterialX/MaterialXConfig.cmake:36 (include) /opt/OpenUSD/pxrConfig.cmake:60 (find_package) CMakeLists.txt:4 (find_package) CMake Error at /opt/OpenUSD/lib/cmake/MaterialX/MaterialXTargets.cmake:132 (set_target_properties): The link interface of target "MaterialXRenderGlsl" contains: X11::X11 but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. Call Stack (most recent call first): /opt/OpenUSD/lib/cmake/MaterialX/MaterialXConfig.cmake:36 (include) /opt/OpenUSD/pxrConfig.cmake:60 (find_package) CMakeLists.txt:4 (find_package) -- Generating done (0.0s) CMake Generate step failed. Build files cannot be regenerated correctly. ❯ make [ 1%] Building CXX object src/resources/CMakeFiles/resources.dir/glsl/GridVert.cpp.o [ 2%] Building CXX object src/resources/CMakeFiles/resources.dir/glsl/GridFrag.cpp.o [ 3%] Linking CXX static library libresources.a [ 6%] Built target resources -- Found Git: /usr/bin/git (found version "2.34.1") -- usdtweak revision: 622d8d8 [ 6%] Built target stamp [ 7%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/context.c.o [ 8%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/init.c.o [ 10%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/input.c.o [ 11%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/monitor.c.o [ 12%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/vulkan.c.o [ 13%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/window.c.o [ 14%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/x11_init.c.o [ 15%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/x11_monitor.c.o [ 16%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/x11_window.c.o [ 17%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/xkb_unicode.c.o [ 19%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/posix_time.c.o [ 20%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/posix_thread.c.o [ 21%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/glx_context.c.o [ 22%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/egl_context.c.o [ 23%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/osmesa_context.c.o [ 24%] Building C object _deps/glfw-build/src/CMakeFiles/glfw.dir/linux_joystick.c.o [ 25%] Linking C static library libglfw3.a [ 25%] Built target glfw [ 26%] Building CXX object CMakeFiles/usdtweak.dir/src/Blueprints.cpp.o /home/aditia/usd-git/usdtweak/src/Blueprints.cpp: In member function ‘void Blueprints::SetBlueprintsLocations(const std::vector >&)’: /home/aditia/usd-git/usdtweak/src/Blueprints.cpp:41:29: warning: ignoring return value of ‘bool std::filesystem::is_directory(const std::filesystem::__cxx11::path&)’, declared with attribute ‘nodiscard’ [-Wunused-result] 41 | fs::is_directory(paths.top()); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from /usr/include/c++/11/filesystem:47, from /home/aditia/usd-git/usdtweak/src/Blueprints.cpp:8: /usr/include/c++/11/bits/fs_ops.h:198:3: note: declared here 198 | is_directory(const path& __p) | ^~~~~~~~~~~~ [ 28%] Building CXX object CMakeFiles/usdtweak.dir/src/CommandLineOptions.cpp.o [ 29%] Building CXX object CMakeFiles/usdtweak.dir/src/Debug.cpp.o [ 30%] Building CXX object CMakeFiles/usdtweak.dir/src/Editor.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/Editor.cpp:7: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ /home/aditia/usd-git/usdtweak/src/Editor.cpp: In member function ‘virtual void AboutModalDialog::Draw()’: /home/aditia/usd-git/usdtweak/src/Editor.cpp:100:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 100 | ImGui::Text(""); | ^~ /home/aditia/usd-git/usdtweak/src/Editor.cpp:105:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 105 | ImGui::Text(""); | ^~ /home/aditia/usd-git/usdtweak/src/Editor.cpp:107:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 107 | ImGui::Text(""); | ^~ /home/aditia/usd-git/usdtweak/src/Editor.cpp:110:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 110 | ImGui::Text(""); | ^~ /home/aditia/usd-git/usdtweak/src/Editor.cpp:113:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 113 | ImGui::Text(""); | ^~ /home/aditia/usd-git/usdtweak/src/Editor.cpp:117:21: warning: zero-length gnu_printf format string [-Wformat-zero-length] 117 | ImGui::Text(""); | ^~ [ 31%] Building CXX object CMakeFiles/usdtweak.dir/src/EditorSettings.cpp.o [ 32%] Building CXX object CMakeFiles/usdtweak.dir/src/ImGuiHelpers.cpp.o [ 33%] Building CXX object CMakeFiles/usdtweak.dir/src/UsdHelpers.cpp.o [ 34%] Building CXX object CMakeFiles/usdtweak.dir/src/Selection.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/Selection.h:3, from /home/aditia/usd-git/usdtweak/src/Selection.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 35%] Building CXX object CMakeFiles/usdtweak.dir/src/Stamp.cpp.o [ 37%] Building CXX object CMakeFiles/usdtweak.dir/src/main.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/Selection.h:3, from /home/aditia/usd-git/usdtweak/src/Editor.h:3, from /home/aditia/usd-git/usdtweak/src/main.cpp:14: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 38%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/CommandsImpl.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13, from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12, from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14, from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15, from /home/aditia/usd-git/usdtweak/src/commands/CommandsImpl.h:4, from /home/aditia/usd-git/usdtweak/src/commands/CommandStack.h:5, from /home/aditia/usd-git/usdtweak/src/commands/CommandsImpl.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 39%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/CommandStack.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13, from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12, from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14, from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15, from /home/aditia/usd-git/usdtweak/src/commands/CommandsImpl.h:4, from /home/aditia/usd-git/usdtweak/src/commands/CommandStack.h:5, from /home/aditia/usd-git/usdtweak/src/commands/CommandStack.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 40%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/SdfCommandGroup.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/SdfLayerInstructions.h:4, from /home/aditia/usd-git/usdtweak/src/commands/SdfCommandGroup.cpp:4: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 41%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/SdfLayerInstructions.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/SdfLayerInstructions.h:4, from /home/aditia/usd-git/usdtweak/src/commands/SdfLayerInstructions.cpp:4: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 42%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/SdfCommandGroupRecorder.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/SdfCommandGroupRecorder.h:3, from /home/aditia/usd-git/usdtweak/src/commands/SdfCommandGroupRecorder.cpp:2: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 43%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/UndoLayerStateDelegate.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/SdfCommandGroupRecorder.h:3, from /home/aditia/usd-git/usdtweak/src/commands/UndoLayerStateDelegate.cpp:5: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 44%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/PrimCommands.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/PrimCommands.cpp:5: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 46%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/AttributeCommands.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/usd/schemaRegistry.h:14, from /opt/OpenUSD/include/pxr/usd/usd/primDefinition.h:12, from /opt/OpenUSD/include/pxr/usd/usd/primData.h:16, from /opt/OpenUSD/include/pxr/usd/usd/object.h:15, from /opt/OpenUSD/include/pxr/usd/usd/prim.h:15, from /home/aditia/usd-git/usdtweak/src/commands/AttributeCommands.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 47%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/LayerCommands.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/commands/LayerCommands.cpp:2: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 48%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/EditorCommands.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13, from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12, from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14, from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15, from /home/aditia/usd-git/usdtweak/src/commands/CommandsImpl.h:4, from /home/aditia/usd-git/usdtweak/src/commands/EditorCommands.cpp:9: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 49%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/SdfUndoRedoRecorder.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13, from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12, from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14, from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15, from /home/aditia/usd-git/usdtweak/src/commands/CommandsImpl.h:4, from /home/aditia/usd-git/usdtweak/src/commands/SdfUndoRedoRecorder.h:5, from /home/aditia/usd-git/usdtweak/src/commands/SdfUndoRedoRecorder.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 50%] Building CXX object CMakeFiles/usdtweak.dir/src/commands/UsdAPICommands.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/usd/schemaRegistry.h:14, from /opt/OpenUSD/include/pxr/usd/usd/primDefinition.h:12, from /opt/OpenUSD/include/pxr/usd/usd/primData.h:16, from /opt/OpenUSD/include/pxr/usd/usd/object.h:15, from /opt/OpenUSD/include/pxr/usd/usd/prim.h:15, from /opt/OpenUSD/include/pxr/usd/usd/schemaBase.h:12, from /opt/OpenUSD/include/pxr/usd/usd/apiSchemaBase.h:14, from /opt/OpenUSD/include/pxr/usd/usdShade/materialBindingAPI.h:14, from /home/aditia/usd-git/usdtweak/src/commands/UsdAPICommands.cpp:2: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 51%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui.cpp.o [ 52%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_draw.cpp.o [ 53%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_impl_glfw.cpp.o [ 55%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_impl_opengl3.cpp.o [ 56%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_stdlib.cpp.o [ 57%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_tables.cpp.o [ 58%] Building CXX object CMakeFiles/usdtweak.dir/src/3rdparty/imgui/imgui_widgets.cpp.o [ 59%] Building CXX object CMakeFiles/usdtweak.dir/src/resources/ResourcesLoader.cpp.o [ 60%] Building CXX object CMakeFiles/usdtweak.dir/src/widgets/TextEditor.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /home/aditia/usd-git/usdtweak/src/widgets/TextEditor.h:3, from /home/aditia/usd-git/usdtweak/src/widgets/TextEditor.cpp:1: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 61%] Building CXX object CMakeFiles/usdtweak.dir/src/widgets/CompositionEditor.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/pcp/types.h:13, from /opt/OpenUSD/include/pxr/usd/pcp/node.h:12, from /opt/OpenUSD/include/pxr/usd/usd/editTarget.h:14, from /opt/OpenUSD/include/pxr/usd/usd/stage.h:15, from /home/aditia/usd-git/usdtweak/src/commands/Commands.h:3, from /home/aditia/usd-git/usdtweak/src/widgets/CompositionEditor.cpp:2: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ [ 62%] Building CXX object CMakeFiles/usdtweak.dir/src/widgets/ConnectionEditor.cpp.o In file included from /opt/OpenUSD/include/pxr/base/work/dispatcher.h:26, from /opt/OpenUSD/include/pxr/usd/sdf/layer.h:29, from /opt/OpenUSD/include/pxr/usd/usd/schemaRegistry.h:14, from /opt/OpenUSD/include/pxr/usd/usd/primDefinition.h:12, from /opt/OpenUSD/include/pxr/usd/usd/primData.h:16, from /opt/OpenUSD/include/pxr/usd/usd/object.h:15, from /opt/OpenUSD/include/pxr/usd/usd/prim.h:15, from /home/aditia/usd-git/usdtweak/src/widgets/ConnectionEditor.h:2, from /home/aditia/usd-git/usdtweak/src/widgets/ConnectionEditor.cpp:2: /opt/OpenUSD/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’ 21 | ed. For details, please see Deprecated Features appendix in the TBB reference manual.") | ^ /home/aditia/usd-git/usdtweak/src/widgets/ConnectionEditor.cpp: In member function ‘void ConnectionsEditorCanvas::DrawGrid()’: /home/aditia/usd-git/usdtweak/src/widgets/ConnectionEditor.cpp:376:34: error: ‘ceilf’ is not a member of ‘std’; did you mean ‘ceil’? 376 | gridOrigin = ImVec2(std::ceilf(gridOrigin.x/gridSpacing)*gridSpacing, std::ceilf(gridOrigin.y/gridSpacing)*gridSpacing); | ^~~~~ | ceil /home/aditia/usd-git/usdtweak/src/widgets/ConnectionEditor.cpp:376:84: error: ‘ceilf’ is not a member of ‘std’; did you mean ‘ceil’? 376 | gridOrigin = ImVec2(std::ceilf(gridOrigin.x/gridSpacing)*gridSpacing, std::ceilf(gridOrigin.y/gridSpacing)*gridSpacing); | ^~~~~ | ceil make[2]: *** [CMakeFiles/usdtweak.dir/build.make:524: CMakeFiles/usdtweak.dir/src/widgets/ConnectionEditor.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:265: CMakeFiles/usdtweak.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 ```

cpichard commented 1 month ago

Hi @aditiapratama , thanks for the report, I pushed a fix for this compilation issue, let me know if that works for you Cheers, C

aditiapratama commented 1 month ago

hello @cpichard

thank you for the fix, it seems I reach 100% build but got error on ld linking

[100%] Linking CXX executable usdtweak
/usr/bin/ld: cannot find -lX11::X11: No such file or directory
/usr/bin/ld: cannot find -lX11::Xt: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/usdtweak.dir/build.make:1201: usdtweak] Error 1
make[1]: *** [CMakeFiles/Makefile2:265: CMakeFiles/usdtweak.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

I have X11 and Xt installed

ls /usr/lib/x86_64-linux-gnu/libX11
libX11.a             libX11.so.6@         libX11-xcb.a         libX11-xcb.so.1@
libX11.so@           libX11.so.6.4.0      libX11-xcb.so@       libX11-xcb.so.1.0.
ls /usr/lib/x86_64-linux-gnu/libXt.
libXt.a         libXt.so@       libXt.so.6@     libXt.so.6.0.
aditiapratama commented 1 month ago

Ok I manage to build by removing -lX11 and -lXt in link.txt inside build folder

cpichard commented 1 month ago

Hi @aditiapratama , it looks like it's an error coming from the Materialx config file. Could you tell me which version of USD and materialx it is using ? was USD installed using the build_script.py ? Also what was the command line used to compile usdtweak ? With that I can try to reproduce the issue. Thanks

aditiapratama commented 1 month ago

Hi @cpichard, Im using USD and MaterialX from OpenUSD Release branch here's the build command

python OpenUSD/build_scripts/build_usd.py --build-args "boost, --with-log" --openimageio --materialx --alembic --hdf5 /opt/OpenUSD

For compiling usdtweak I use this command

cd usdtweak
mkdir build
cd build
cmake -Dpxr_DIR=/opt/OpenUSD -DMaterialX_DIR=/opt/OpenUSD/lib/cmake/MaterialX ..
make

But in order to work, I need to delete last column of line from this file usdtweak/build/CMakeFiles/usdtweak.dir/link.txt

cpichard commented 1 month ago

Thanks @aditiapratama , I'll test this weekend on my linux virtual machine.

aditiapratama commented 1 month ago

you're welcome @cpichard, usdtweak is amazing...I can start staging and layering my usd file, and quite lightweight...thank you so much

cpichard commented 3 weeks ago

Hi @aditiapratama , thanks ! I am pleased that usdtweak is useful for you, don't hesitate if you have any feedback. Just an update, I finally managed to compile usd 24.08 on a linux machine (wfl) and got the same issue as you. MaterialX has changed the way they search an import X11 using targets and unfortunately this dependency is not re-exported. Softwares using MaterialX cmake will have to add a "find_package(X11 REQUIRED)" in their CMakeLists.txt to avoid this issue on linux. I'll see if I can find a better way than adding find_package(X11) in usdtweak. Thanks for the bug report !

ScatteredRay commented 4 days ago

Ohh! I got this same issue, and was able to resolve it with: https://github.com/cpichard/usdtweak/pull/19