boegel / MICA

a Pin tool for collecting microarchitecture-independent workload characteristics
http://users.ugent.be/~kehoste/ELIS/MICA
Other
59 stars 34 forks source link

error when using mica to test the program #18

Closed WilliamWangPeng closed 3 years ago

WilliamWangPeng commented 3 years ago

Hi dear expert
It's an honor to write a letter to you, I'm using mica in pin3.4 nowadays to test the program test1.zip

which could be compiled using:
$mkdir build
$cd build
$cmake ..
$make
and I using $./pin -t /home/pwang/tools/VR/installs/pin-3.4/source/tools/MICA-master/obj-intel64/mica.so -- ./Task-sphere
the errors are below, I don't know why?

image

image

image

and I don't know if this result is true.
by the way, there is no error in testing hello ELF.

thank you
Best Regards
William

amirjamez commented 3 years ago

Hi,

Your executable has multi-threading which is not supported by the current version of MICA. Try compiling your test1.zip with multi-threading disabled, or, if it has runtime parameters, use one which only launches a single thread.

-Amir

On Fri., Mar. 19, 2021, 16:02 william, @.***> wrote:

Hi dear expert It's an honor to write a letter to you, I'm using mica in pin3.4 nowadays to test the program test1.zip https://github.com/boegel/MICA/files/6171033/test1.zip

which could be compiled using: $mkdir build $cd build $cmake .. $make and I using $./pin -t /home/pwang/tools/VR/installs/pin-3.4/source/tools/MICA-master/obj-intel64/mica.so -- ./Task-sphere the errors are below, I don't know why?

[image: image] https://user-images.githubusercontent.com/51076736/111780114-e7a86200-88f1-11eb-973f-b5645f968d30.png

[image: image] https://user-images.githubusercontent.com/51076736/111780179-ff7fe600-88f1-11eb-9d57-1b812493cd34.png

[image: image] https://user-images.githubusercontent.com/51076736/111780198-07d82100-88f2-11eb-94b0-917c888e2186.png

and I don't know if this result is true.

thank you Best Regards William

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/boegel/MICA/issues/18, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACECKHVYXGONXAYHRZV3NKLTEM74JANCNFSM4ZOWPQ2Q .

WilliamWangPeng commented 3 years ago

Hi, Your executable has multi-threading which is not supported by the current version of MICA. Try compiling your test1.zip with multi-threading disabled, or, if it has runtime parameters, use one which only launches a single thread. -Amir On Fri., Mar. 19, 2021, 16:02 william, @.***> wrote: Hi dear expert It's an honor to write a letter to you, I'm using mica in pin3.4 nowadays to test the program test1.zip https://github.com/boegel/MICA/files/6171033/test1.zip which could be compiled using: $mkdir build $cd build $cmake .. $make and I using $./pin -t /home/pwang/tools/VR/installs/pin-3.4/source/tools/MICA-master/obj-intel64/mica.so -- ./Task-sphere the errors are below, I don't know why? [image: image] https://user-images.githubusercontent.com/51076736/111780114-e7a86200-88f1-11eb-973f-b5645f968d30.png [image: image] https://user-images.githubusercontent.com/51076736/111780179-ff7fe600-88f1-11eb-9d57-1b812493cd34.png [image: image] https://user-images.githubusercontent.com/51076736/111780198-07d82100-88f2-11eb-94b0-917c888e2186.png and I don't know if this result is true. thank you Best Regards William — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#18>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACECKHVYXGONXAYHRZV3NKLTEM74JANCNFSM4ZOWPQ2Q .

Hi dear amirjamez @amirjamez
Thank you for giving me the reply, I tried to build again like this:
pwang@pwang-OptiPlex-7060:~/tools/VR/show/Computer-Graphics/task04-sphere/build$ cmake --disable-thread-support .. pwang@pwang-OptiPlex-7060:~/tools/VR/show/Computer-Graphics/task04-sphere/build$ make

image

image

image

could you help me to build the test1.zip and try to use MICA to test ppm and ilp_one?   

thank you
Best Regards to you
William

amirjamez commented 3 years ago

Hi,

You still have thread/pthread support set to TRUE in your CMAKE configuration. Look for the line that generates this and disable it:

On Fri., Mar. 19, 2021, 18:28 william, @.***> wrote:

Hi, Your executable has multi-threading which is not supported by the current version of MICA. Try compiling your test1.zip with multi-threading disabled, or, if it has runtime parameters, use one which only launches a single thread. … <#m6787158915050724792> -Amir On Fri., Mar. 19, 2021, 16:02 william, @.***> wrote: Hi dear expert It's an honor to write a letter to you, I'm using mica in pin3.4 nowadays to test the program test1.zip https://github.com/boegel/MICA/files/6171033/test1.zip which could be compiled using: $mkdir build $cd build $cmake .. $make and I using $./pin -t /home/pwang/tools/VR/installs/pin-3.4/source/tools/MICA-master/obj-intel64/mica.so -- ./Task-sphere the errors are below, I don't know why? [image: image] https://user-images.githubusercontent.com/51076736/111780114-e7a86200-88f1-11eb-973f-b5645f968d30.png [image: image] https://user-images.githubusercontent.com/51076736/111780179-ff7fe600-88f1-11eb-9d57-1b812493cd34.png [image: image] https://user-images.githubusercontent.com/51076736/111780198-07d82100-88f2-11eb-94b0-917c888e2186.png and I don't know if this result is true. thank you Best Regards William — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#18 https://github.com/boegel/MICA/issues/18>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACECKHVYXGONXAYHRZV3NKLTEM74JANCNFSM4ZOWPQ2Q .

Hi dear amirjamez @amirjamez https://github.com/amirjamez Thank you for giving me the reply, I tried to build again like this: @.OptiPlex-7060:/tools/VR/show/Computer-Graphics/task04-sphere/build$ cmake --disable-thread-support .. @.OptiPlex-7060:/tools/VR/show/Computer-Graphics/task04-sphere/build$ make

[image: image] https://user-images.githubusercontent.com/51076736/111799614-26481780-8906-11eb-80c3-1007ee671fd8.png

[image: image] https://user-images.githubusercontent.com/51076736/111799649-2e07bc00-8906-11eb-9224-7717722af1b3.png

[image: image] https://user-images.githubusercontent.com/51076736/111799701-38c25100-8906-11eb-9935-918628b89f3c.png

could you help me to build the test1.zip and try to use MICA to test ppm and ilp_one?

thank you Best Regards to you William

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/boegel/MICA/issues/18#issuecomment-802894627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACECKHRHTCYT7QWFZQAHFF3TENQ7RANCNFSM4ZOWPQ2Q .

zchrissirhcz commented 3 years ago

Tested with the provided code in my machine, there is sphere rendered in the window, my environments:

pin-screenshot

zchrissirhcz commented 3 years ago

The mica.conf I use:

analysis_type: ilp
interval_size: 100000000
ilp_size: 32
page_size: 12
block_size: 6
itypes_spec_file: itypes_default.spec
append_pid: yes

The cmake output is:

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at external/glfw/CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0042 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Vulkan: /usr/lib/x86_64-linux-gnu/libvulkan.so  
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zz/work/hh/Computer-Graphics/task04-sphere/build

The build/CMakeCache.txt is: (use ccmake . or cmake-gui to view it, may also toggle advance variables)

``` # This is the CMakeCache file. # For build in directory: /home/zz/work/hh/Computer-Graphics/task04-sphere/build # It was generated by CMake: /usr/bin/cmake # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a variable in the cache. # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Build shared libraries BUILD_SHARED_LIBS:BOOL=OFF //Path to a program. CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line //Path to a program. CMAKE_AR:FILEPATH=/usr/bin/ar //Choose the type of build, options are: None Debug Release RelWithDebInfo // MinSizeRel ... CMAKE_BUILD_TYPE:STRING= //Enable/Disable color output during build. CMAKE_COLOR_MAKEFILE:BOOL=ON //CXX compiler CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ //A wrapper around 'ar' adding the appropriate '--plugin' option // for the GCC compiler CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-9 //A wrapper around 'ranlib' adding the appropriate '--plugin' option // for the GCC compiler CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-9 //Flags used by the CXX compiler during all build types. CMAKE_CXX_FLAGS:STRING= //Flags used by the CXX compiler during DEBUG builds. CMAKE_CXX_FLAGS_DEBUG:STRING=-g //Flags used by the CXX compiler during MINSIZEREL builds. CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the CXX compiler during RELEASE builds. CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the CXX compiler during RELWITHDEBINFO builds. CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //C compiler CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc //A wrapper around 'ar' adding the appropriate '--plugin' option // for the GCC compiler CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-9 //A wrapper around 'ranlib' adding the appropriate '--plugin' option // for the GCC compiler CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-9 //Flags used by the C compiler during all build types. CMAKE_C_FLAGS:STRING= //Flags used by the C compiler during DEBUG builds. CMAKE_C_FLAGS_DEBUG:STRING=-g //Flags used by the C compiler during MINSIZEREL builds. CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the C compiler during RELEASE builds. CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the C compiler during RELWITHDEBINFO builds. CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //Path to a program. CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND //Flags used by the linker during all build types. CMAKE_EXE_LINKER_FLAGS:STRING= //Flags used by the linker during DEBUG builds. CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during MINSIZEREL builds. CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during RELEASE builds. CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during RELWITHDEBINFO builds. CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Enable/Disable output of compile commands during generation. CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr/local //Path to a program. CMAKE_LINKER:FILEPATH=/usr/bin/ld //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make //Flags used by the linker during the creation of modules during // all build types. CMAKE_MODULE_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of modules during // DEBUG builds. CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of modules during // MINSIZEREL builds. CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of modules during // RELEASE builds. CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of modules during // RELWITHDEBINFO builds. CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_NM:FILEPATH=/usr/bin/nm //Path to a program. CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy //Path to a program. CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump //Value Computed by CMake CMAKE_PROJECT_DESCRIPTION:STATIC= //Value Computed by CMake CMAKE_PROJECT_HOMEPAGE_URL:STATIC= //Value Computed by CMake CMAKE_PROJECT_NAME:STATIC=Task-sphere //Path to a program. CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib //Path to a program. CMAKE_READELF:FILEPATH=/usr/bin/readelf //Flags used by the linker during the creation of shared libraries // during all build types. CMAKE_SHARED_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of shared libraries // during DEBUG builds. CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of shared libraries // during MINSIZEREL builds. CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of shared libraries // during RELEASE builds. CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of shared libraries // during RELWITHDEBINFO builds. CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= //If set, runtime paths are not added when installing shared libraries, // but are added when building. CMAKE_SKIP_INSTALL_RPATH:BOOL=NO //If set, runtime paths are not added when using shared libraries. CMAKE_SKIP_RPATH:BOOL=NO //Flags used by the linker during the creation of static libraries // during all build types. CMAKE_STATIC_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of static libraries // during DEBUG builds. CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of static libraries // during MINSIZEREL builds. CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of static libraries // during RELEASE builds. CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of static libraries // during RELWITHDEBINFO builds. CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_STRIP:FILEPATH=/usr/bin/strip //If this value is on, makefiles will be generated without the // .SILENT directive, and all commands will be echoed to the console // during the make. This is useful for debugging only. With Visual // Studio IDE projects all commands are done without /nologo. CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE //Value Computed by CMake GLFW_BINARY_DIR:STATIC=/home/zz/work/hh/Computer-Graphics/task04-sphere/build/external/glfw //Build the GLFW documentation GLFW_BUILD_DOCS:BOOL=OFF //Build the GLFW example programs GLFW_BUILD_EXAMPLES:BOOL=OFF //Build the GLFW test programs GLFW_BUILD_TESTS:BOOL=OFF //Generate installation target GLFW_INSTALL:BOOL=OFF //Value Computed by CMake GLFW_SOURCE_DIR:STATIC=/home/zz/work/hh/Computer-Graphics/task04-sphere/external/glfw //Use Mir for window creation GLFW_USE_MIR:BOOL=OFF //Use OSMesa for offscreen context creation GLFW_USE_OSMESA:BOOL=OFF //Use Wayland for window creation GLFW_USE_WAYLAND:BOOL=OFF //Use the Vulkan loader statically linked into application GLFW_VULKAN_STATIC:BOOL=OFF //Takes an empty string or 64. Directory where lib will be installed: // lib or lib64 LIB_SUFFIX:STRING= //Path to a library. MATH_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so //Path to a library. RT_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/librt.so //Value Computed by CMake Task-sphere_BINARY_DIR:STATIC=/home/zz/work/hh/Computer-Graphics/task04-sphere/build //Value Computed by CMake Task-sphere_SOURCE_DIR:STATIC=/home/zz/work/hh/Computer-Graphics/task04-sphere //Path to a file. VULKAN_INCLUDE_DIR:PATH=/usr/include //Path to a library. VULKAN_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libvulkan.so //Path to a file. X11_ICE_INCLUDE_PATH:PATH=X11_ICE_INCLUDE_PATH-NOTFOUND //Path to a library. X11_ICE_LIB:FILEPATH=X11_ICE_LIB-NOTFOUND //Path to a file. X11_SM_INCLUDE_PATH:PATH=X11_SM_INCLUDE_PATH-NOTFOUND //Path to a library. X11_SM_LIB:FILEPATH=X11_SM_LIB-NOTFOUND //Path to a file. X11_X11_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_X11_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libX11.so //Path to a file. X11_XRes_INCLUDE_PATH:PATH=X11_XRes_INCLUDE_PATH-NOTFOUND //Path to a library. X11_XRes_LIB:FILEPATH=X11_XRes_LIB-NOTFOUND //Path to a file. X11_XShm_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_XSync_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xaccessrules_INCLUDE_PATH:PATH=X11_Xaccessrules_INCLUDE_PATH-NOTFOUND //Path to a file. X11_Xaccessstr_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xau_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xau_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXau.so //Path to a file. X11_Xcomposite_INCLUDE_PATH:PATH=X11_Xcomposite_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xcomposite_LIB:FILEPATH=X11_Xcomposite_LIB-NOTFOUND //Path to a file. X11_Xcursor_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xcursor_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXcursor.so //Path to a file. X11_Xdamage_INCLUDE_PATH:PATH=X11_Xdamage_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xdamage_LIB:FILEPATH=X11_Xdamage_LIB-NOTFOUND //Path to a file. X11_Xdmcp_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xdmcp_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXdmcp.so //Path to a file. X11_Xext_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xext_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXext.so //Path to a file. X11_Xfixes_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xfixes_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXfixes.so //Path to a file. X11_Xft_INCLUDE_PATH:PATH=X11_Xft_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xft_LIB:FILEPATH=X11_Xft_LIB-NOTFOUND //Path to a file. X11_Xi_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xi_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXi.so //Path to a file. X11_Xinerama_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xinerama_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXinerama.so //Path to a file. X11_Xkb_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xkblib_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xlib_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xmu_INCLUDE_PATH:PATH=X11_Xmu_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xmu_LIB:FILEPATH=X11_Xmu_LIB-NOTFOUND //Path to a file. X11_Xpm_INCLUDE_PATH:PATH=X11_Xpm_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xpm_LIB:FILEPATH=X11_Xpm_LIB-NOTFOUND //Path to a file. X11_Xrandr_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xrandr_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXrandr.so //Path to a file. X11_Xrender_INCLUDE_PATH:PATH=/usr/include //Path to a library. X11_Xrender_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libXrender.so //Path to a file. X11_Xshape_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xss_INCLUDE_PATH:PATH=X11_Xss_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xss_LIB:FILEPATH=X11_Xss_LIB-NOTFOUND //Path to a file. X11_Xt_INCLUDE_PATH:PATH=X11_Xt_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xt_LIB:FILEPATH=X11_Xt_LIB-NOTFOUND //Path to a file. X11_Xtst_INCLUDE_PATH:PATH=X11_Xtst_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xtst_LIB:FILEPATH=X11_Xtst_LIB-NOTFOUND //Path to a file. X11_Xutil_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_Xv_INCLUDE_PATH:PATH=X11_Xv_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xv_LIB:FILEPATH=X11_Xv_LIB-NOTFOUND //Path to a file. X11_Xxf86misc_INCLUDE_PATH:PATH=X11_Xxf86misc_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xxf86misc_LIB:FILEPATH=X11_Xxf86misc_LIB-NOTFOUND //Path to a file. X11_Xxf86vm_INCLUDE_PATH:PATH=X11_Xxf86vm_INCLUDE_PATH-NOTFOUND //Path to a library. X11_Xxf86vm_LIB:FILEPATH=X11_Xxf86vm_LIB-NOTFOUND //Path to a file. X11_dpms_INCLUDE_PATH:PATH=/usr/include //Path to a file. X11_xkbfile_INCLUDE_PATH:PATH=X11_xkbfile_INCLUDE_PATH-NOTFOUND //Path to a library. X11_xkbfile_LIB:FILEPATH=X11_xkbfile_LIB-NOTFOUND ######################## # INTERNAL cache entries ######################## //ADVANCED property for variable: CMAKE_ADDR2LINE CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCache.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/home/zz/work/hh/Computer-Graphics/task04-sphere/build //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=3 //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/bin/cmake //Path to cpack program executable. CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack //Path to ctest program executable. CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest //ADVANCED property for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_COMPILER_AR CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_COMPILER_AR CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_DLLTOOL CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake //Executable file format CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL= //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Generator instance identifier. CMAKE_GENERATOR_INSTANCE:INTERNAL= //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= //Have function connect CMAKE_HAVE_CONNECT:INTERNAL=1 //Have function gethostbyname CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1 //Test CMAKE_HAVE_LIBC_PTHREAD CMAKE_HAVE_LIBC_PTHREAD:INTERNAL= //Have library pthreads CMAKE_HAVE_PTHREADS_CREATE:INTERNAL= //Have library pthread CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 //Have include pthread.h CMAKE_HAVE_PTHREAD_H:INTERNAL=1 //Have function remove CMAKE_HAVE_REMOVE:INTERNAL=1 //Have function shmat CMAKE_HAVE_SHMAT:INTERNAL=1 //Source directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/home/zz/work/hh/Computer-Graphics/task04-sphere //Install .so files without execute permission. CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 //ADVANCED property for variable: CMAKE_LINKER CMAKE_LINKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_NM CMAKE_NM-ADVANCED:INTERNAL=1 //number of local generators CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=3 //ADVANCED property for variable: CMAKE_OBJCOPY CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJDUMP CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 //Platform information initialized CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 //ADVANCED property for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_READELF CMAKE_READELF-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.16 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STRIP CMAKE_STRIP-ADVANCED:INTERNAL=1 //uname command CMAKE_UNAME:INTERNAL=/usr/bin/uname //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 //Details about finding Threads FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()] //Details about finding Vulkan FIND_PACKAGE_MESSAGE_DETAILS_Vulkan:INTERNAL=[/usr/lib/x86_64-linux-gnu/libvulkan.so][/usr/include][v()] //Details about finding X11 FIND_PACKAGE_MESSAGE_DETAILS_X11:INTERNAL=[/usr/include][/usr/lib/x86_64-linux-gnu/libX11.so][c ][v()] //ADVANCED property for variable: MATH_LIBRARY MATH_LIBRARY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: RT_LIBRARY RT_LIBRARY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: VULKAN_INCLUDE_DIR VULKAN_INCLUDE_DIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: VULKAN_LIBRARY VULKAN_LIBRARY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_ICE_INCLUDE_PATH X11_ICE_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_ICE_LIB X11_ICE_LIB-ADVANCED:INTERNAL=1 //Have library /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so X11_LIB_X11_SOLO:INTERNAL=1 //ADVANCED property for variable: X11_SM_INCLUDE_PATH X11_SM_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_SM_LIB X11_SM_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_X11_INCLUDE_PATH X11_X11_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_X11_LIB X11_X11_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_XRes_INCLUDE_PATH X11_XRes_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_XRes_LIB X11_XRes_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_XShm_INCLUDE_PATH X11_XShm_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_XSync_INCLUDE_PATH X11_XSync_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xaccessrules_INCLUDE_PATH X11_Xaccessrules_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xaccessstr_INCLUDE_PATH X11_Xaccessstr_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xau_INCLUDE_PATH X11_Xau_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xau_LIB X11_Xau_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xcomposite_INCLUDE_PATH X11_Xcomposite_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xcomposite_LIB X11_Xcomposite_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xcursor_INCLUDE_PATH X11_Xcursor_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xcursor_LIB X11_Xcursor_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xdamage_INCLUDE_PATH X11_Xdamage_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xdamage_LIB X11_Xdamage_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xdmcp_INCLUDE_PATH X11_Xdmcp_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xdmcp_LIB X11_Xdmcp_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xext_INCLUDE_PATH X11_Xext_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xext_LIB X11_Xext_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xfixes_INCLUDE_PATH X11_Xfixes_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xfixes_LIB X11_Xfixes_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xft_INCLUDE_PATH X11_Xft_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xft_LIB X11_Xft_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xi_INCLUDE_PATH X11_Xi_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xi_LIB X11_Xi_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xinerama_INCLUDE_PATH X11_Xinerama_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xinerama_LIB X11_Xinerama_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xkb_INCLUDE_PATH X11_Xkb_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xkblib_INCLUDE_PATH X11_Xkblib_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xlib_INCLUDE_PATH X11_Xlib_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xmu_INCLUDE_PATH X11_Xmu_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xmu_LIB X11_Xmu_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xpm_INCLUDE_PATH X11_Xpm_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xpm_LIB X11_Xpm_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xrandr_INCLUDE_PATH X11_Xrandr_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xrandr_LIB X11_Xrandr_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xrender_INCLUDE_PATH X11_Xrender_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xrender_LIB X11_Xrender_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xshape_INCLUDE_PATH X11_Xshape_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xss_INCLUDE_PATH X11_Xss_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xss_LIB X11_Xss_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xt_INCLUDE_PATH X11_Xt_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xt_LIB X11_Xt_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xtst_INCLUDE_PATH X11_Xtst_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xtst_LIB X11_Xtst_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xutil_INCLUDE_PATH X11_Xutil_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xv_INCLUDE_PATH X11_Xv_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xv_LIB X11_Xv_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xxf86misc_INCLUDE_PATH X11_Xxf86misc_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xxf86misc_LIB X11_Xxf86misc_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xxf86vm_INCLUDE_PATH X11_Xxf86vm_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_Xxf86vm_LIB X11_Xxf86vm_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_dpms_INCLUDE_PATH X11_dpms_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_xkbfile_INCLUDE_PATH X11_xkbfile_INCLUDE_PATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: X11_xkbfile_LIB X11_xkbfile_LIB-ADVANCED:INTERNAL=1 ```
zchrissirhcz commented 3 years ago

It seems that the shader files are not loaded correctly. Load Shader File Error! in the pasted screenshot. @WilliamWangPeng Do you changd the default directory of shader files?

zchrissirhcz commented 3 years ago

Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR) This error message is also different than my one. From the gcc version you pasted, I guess you are using ubuntu 18.04, and you may consider install vulkan via:

sudo apt install libvulkan1 libvulkan-dev vulkan-tools mesa-vulkan-drivers vulkan-uttils
WilliamWangPeng commented 3 years ago

Done