I am trying to install MultiNest and PyMultiNest on Ubutnu 16.04. I have OpenMPI installed and can successfully run programs with it. However, during the installation of MultiNest, during the final 'make' step, I get this:
kevin#kevin-VirtualBox:~/MultiNest/build$ make
Scanning dependencies of target multinest_static
[ 1%] Building Fortran object src/CMakeFiles/multinest_static.dir/utils.f90.o
[ 2%] Building Fortran object src/CMakeFiles/multinest_static.dir/utils1.f90.o
[ 4%] Building Fortran object src/CMakeFiles/multinest_static.dir/kmeans_clstr.f90.o
[ 5%] Building Fortran object src/CMakeFiles/multinest_static.dir/xmeans_clstr.f90.o
[ 7%] Building Fortran object src/CMakeFiles/multinest_static.dir/posterior.F90.o
[ 8%] Building Fortran object src/CMakeFiles/multinest_static.dir/priors.f90.o
[ 10%] Building Fortran object src/CMakeFiles/multinest_static.dir/nested.F90.o
[ 11%] Building Fortran object src/CMakeFiles/multinest_static.dir/cwrapper.f90.o
[ 12%] Linking Fortran static library ../../lib/libmultinest.a
[ 12%] Built target multinest_static
Scanning dependencies of target multinest_shared
[ 14%] Building Fortran object src/CMakeFiles/multinest_shared.dir/utils.f90.o
[ 15%] Building Fortran object src/CMakeFiles/multinest_shared.dir/utils1.f90.o
[ 17%] Building Fortran object src/CMakeFiles/multinest_shared.dir/kmeans_clstr.f90.o
[ 18%] Building Fortran object src/CMakeFiles/multinest_shared.dir/xmeans_clstr.f90.o
[ 20%] Building Fortran object src/CMakeFiles/multinest_shared.dir/posterior.F90.o
[ 21%] Building Fortran object src/CMakeFiles/multinest_shared.dir/priors.f90.o
[ 22%] Building Fortran object src/CMakeFiles/multinest_shared.dir/nested.F90.o
[ 24%] Building Fortran object src/CMakeFiles/multinest_shared.dir/cwrapper.f90.o
[ 25%] Linking Fortran shared library ../../lib/libmultinest.so
[ 25%] Built target multinest_shared
Scanning dependencies of target multinest_mpi_static
[ 27%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/utils.f90.o
[ 28%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/utils1.f90.o
[ 30%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/kmeans_clstr.f90.o
[ 31%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/xmeans_clstr.f90.o
[ 32%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/posterior.F90.o
[ 34%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/priors.f90.o
[ 35%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o
mpif.h:54: Error: Can't open included file 'mpif-config.h'
src/CMakeFiles/multinest_mpi_static.dir/build.make:206: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o' failed
make[3]: *** [src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o] Error 1
src/CMakeFiles/multinest_mpi_static.dir/build.make:222: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o.provides' failed
make[2]: *** [src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o.provides] Error 2
CMakeFiles/Makefile2:190: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/all' failed
make[1]: *** [src/CMakeFiles/multinest_mpi_static.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Any guidance or insight is greatly appreciated.
Related
With the enthusiastic help of SO netizens, I configured all the environments required for ASAP (Automated Slide Analysis Platform)
The necessary libraries including Boost, Openslide, Qt, etc. have been successfully linked, but the following error occurred
====================[ Build | ASAP | Debug ]====================================
"D:\_Jason\Clion\CLion 2021.2.2\bin\cmake\win\bin\cmake.exe" --build D:\_Jason\C++_hospital\orignal\CLion1.9\ASAP-1.9\cmake-build-debug --target ASAP -- -j 9
[ 25%] Automatic MOC and UIC for target ASAP
[ 25%] Built target ASAP_autogen
[ 50%] Linking CXX executable ASAP.exe
CMakeFiles\ASAP.dir/objects.a(main.cpp.obj): In function `main':
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationC1ERiPPci'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPC1EP7QWidget'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:8: undefined reference to `__imp__ZN7QWidget4showEv'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:10: undefined reference to `__imp__ZN12QApplication4execEv'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:7: undefined reference to `__imp__ZN4ASAPD1Ev'
D:/_Jason/C++_hospital/orignal/CLion1.9/ASAP-1.9/ASAP/main.cpp:6: undefined reference to `__imp__ZN12QApplicationD1Ev'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: *** [CMakeFiles\ASAP.dir\build.make:111: ASAP.exe] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:163: CMakeFiles/ASAP.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:170: CMakeFiles/ASAP.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:168: ASAP] Error 2
It can be seen from "__imp__ZN12QApplicationD1Ev" that this is a Qt problem. The solution they gave in other forums is to add the statement QT += gui widgets core to the .pro file under this project.However, there is no .pro file in the ASAP source code, so I tried to use the qmake -project command to generate the .pro file. It still doesn't work after adding QT += gui widgets core
The command (cia cmd.exe) in Windows 10
configure -release -opensource -confirm-license -prefix C:\Qt\6.1.3\Build
went through without problems, but now I get the following error message with
make -j8
I always get the following error message and it aborts.
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ......\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2
Thank you, I will do from now on.
Have here times a little of the error message which occurred before with attached, vlt. can someone with it what begin and help me.
C:/Qt/6.1.3/Src/qtbase/src/corelib/text/qstringconverter.h:189:87: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:6590
Q_CORE_EXPORT static const Interface encodingInterfaces[Encoding::LastEncoding + 1];
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/mingw-w64> for instructions.
qtbase\src\tools\androiddeployqt\CMakeFiles\androiddeployqt.dir\build.make:90: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj' failed
make[2]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj] Error 1
CMakeFiles\Makefile2:12798: recipe for target 'qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all' failed
make[1]: *** [qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/all] Error 2
[ 15%] Linking CXX static library ..\..\..\lib\libQt6DeviceDiscoverySupport.a
Generating version linker script
[ 15%] Built target DeviceDiscoverySupport
Makefile:144: recipe for target 'all' failed
make: *** [all] Error 2
I try to use CLion to make QT project, I have QT6 install and I just want to run a basic "helloworld" (to be sure that my configuration is ok). But i got some issues, my CLion problems terminal is empty but when I try to run the code I got this error :
"D:\CLion 2021.1.1\bin\cmake\win\bin\cmake.exe" --build D:\Qt\6.0.2\mingw81_64\bin --target GameRegister -- -j 12
Scanning dependencies of target GameRegister_autogen
[ 20%] Automatic MOC and UIC for target GameRegister
[ 20%] Built target GameRegister_autogen
Scanning dependencies of target GameRegister
[ 40%] Building CXX object CMakeFiles/GameRegister.dir/GameRegister_autogen/mocs_compilation.cpp.obj
[ 60%] Building CXX object CMakeFiles/GameRegister.dir/main.cpp.obj
[ 80%] Building CXX object CMakeFiles/GameRegister.dir/gameregister.cpp.obj
[100%] Linking CXX executable GameRegister.exe
Error copying file "D:/Qt/6.0.2/mingw81_64/lib/cmake/../../bin/Qt6Cored.dll" to "D:/Qt/6.0.2/mingw81_64/bin".
mingw32-make.exe[3]: *** [CMakeFiles\GameRegister.dir\build.make:141: GameRegister.exe] Error 1
mingw32-make.exe[3]: *** Deleting file 'GameRegister.exe'
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:95: CMakeFiles/GameRegister.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:102: CMakeFiles/GameRegister.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:136: GameRegister] Error 2
To make my configuration I followed this guide
https://www.jetbrains.com/help/clion/qt-tutorial.html#issues-limits
and I also look in Qt documentation to make my CMakeLists.txt.
my CMakeLists.txt :
cmake_minimum_required(VERSION 3.19)
project(GameRegister)
#Cmake with 20cpp version
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
#QT version
set(QT_VERSION 6)
set(REQUIRED_LIBS Core)
set(REQUIRED_LIBS_QUALIFIED Qt6::Core)
add_executable(${PROJECT_NAME}
main.cpp gameregister.cpp
gameregister.h
gameregister.ui
)
#Path to cmake lib in QT
set(CMAKE_PREFIX_PATH "D:/Qt/6.0.2/mingw81_64/lib/cmake")
if (NOT CMAKE_PREFIX_PATH)
message(WARNING "CMAKE_PREFIX_PATH is not defined, you may need to set it "
"(-DCMAKE_PREFIX_PATH=\"path/to/Qt/lib/cmake\" or -DCMAKE_PREFIX_PATH=/usr/include/{host}/qt{version}/ on Ubuntu)")
endif ()
#Find necessary packages
find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED)
find_package(Qt${QT_VERSION} COMPONENTS Widgets REQUIRED)
#Target packages
target_link_libraries(${PROJECT_NAME} ${REQUIRED_LIBS_QUALIFIED})
target_link_libraries(${PROJECT_NAME} Qt6::Widgets)
#auto generated by CLion on creation
if (WIN32)
set(DEBUG_SUFFIX)
if (CMAKE_BUILD_TYPE MATCHES "Debug")
set(DEBUG_SUFFIX "d")
endif ()
set(QT_INSTALL_PATH "${CMAKE_PREFIX_PATH}")
if (NOT EXISTS "${QT_INSTALL_PATH}/bin")
set(QT_INSTALL_PATH "${QT_INSTALL_PATH}/..")
if (NOT EXISTS "${QT_INSTALL_PATH}/bin")
set(QT_INSTALL_PATH "${QT_INSTALL_PATH}/..")
endif ()
endif ()
if (EXISTS "${QT_INSTALL_PATH}/plugins/platforms/qwindows${DEBUG_SUFFIX}.dll")
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/plugins/platforms/")
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${QT_INSTALL_PATH}/plugins/platforms/qwindows${DEBUG_SUFFIX}.dll"
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/plugins/platforms/")
endif ()
foreach (QT_LIB ${REQUIRED_LIBS})
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${QT_INSTALL_PATH}/bin/Qt${QT_VERSION}${QT_LIB}${DEBUG_SUFFIX}.dll"
"$<TARGET_FILE_DIR:${PROJECT_NAME}>")
endforeach (QT_LIB)
endif ()
and that's my Run/Debug config :
So I don't know why i got this error, maybe one of my path is incorrect or I need to edit the configuration of my run/debug ?
Cannot reinstall most recent Torch. Cloning fresh repo and attempting to install via install.sh which performs a series of make calls results in:
[ 75%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTDouble.cu.o
[ 76%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathPointwiseDouble.cu.o
[ 77%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareDouble.cu.o
[ 78%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathReduceDouble.cu.o
[ 80%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMaskedDouble.cu.o
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(234) (col. 12): catastrophic error: error while writing generated C++ file: No space left on device
1 catastrophic error detected in the compilation of "/tmp/tmpxft_0001f39b_00000000-5_THCTensorMaskedDouble.cpp4.ii".
Compilation terminated.
fatbinary fatal : Could not write file '/tmp/tmpxft_0001efb5_00000000-2_THCTensorMathCompareTHalf.fatbin.c'
CMake Error at THC_generated_THCTensorMathCompareTHalf.cu.o.cmake:267 (message):
Error generating file
/local/pavels/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTHalf.cu.o
There is not enough space on /tmp and this is a remote machine so I don't have sudo access to increase it. Is there any workaround for this? Basically what I want to know if there is any way to force make store compilation files somewhere not on /tmp?
It appears that I just needed to create tmp dir and set it as TMPDIR env variable.
mkdir $HOME/tmp
export TMPDIR=$HOME/tmp
It depends on what tmp is.
Sometimes, as an optimization, tmp is mounted in a ramdisk. You can take a look at that using mount or in /etc/fstab.
If this is not the case, then make sure the disk partition where /tmp is has enough space, or delete other unused temporary files.
BleachBit, packaged in many distros, can help you freeing space.
I found a graphics course website that is open (like MIT's OpenCourseWare) and I'm try to setup my machine for it...
I am using my windows machine to remotely access a gnu server. I think that I have installed all the dependencies and have gotten assignment 1 to build, but I get the error message below when I test assignment 1. I also copied and pasted the console window after running the commands to build and test assignment 1. I don’t know how to proceed from here. Any help would be greatly appreciated! Please give simple step-by-step instructions.
Error Messages:
[CMU462] GLFW Error: X11: Failed to open X display
[CMU462] Error: could not initialize GLFW!
govi#rubymta-test:~$ cd cs184
govi#rubymta-test:~/cs184$ cd asst1_rasterizester-master
govi#rubymta-test:~/cs184/asst1_rasterizester-master$ mkdir build; cd build
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ cmake ..
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- 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
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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 Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- Using X11 for window creation
-- Using GLX for context creation
-- 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
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for glXGetProcAddress
-- Looking for glXGetProcAddress - found
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressEXT
-- Looking for glXGetProcAddressEXT - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/govi/cs184/asst1_rasterizester-master/build
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ make
Scanning dependencies of target glew
[ 2%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/glew.c.o
[ 5%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/glewinfo.c.o
[ 7%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/visualinfo.c.o
Linking C static library libglew.a
[ 7%] Built target glew
Scanning dependencies of target glfw
[ 10%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/context.c.o
[ 13%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/init.c.o
[ 15%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/input.c.o
[ 18%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[ 21%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/window.c.o
[ 23%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 26%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 28%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 31%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 34%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/linux_joystick.c.o
[ 36%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 39%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/posix_tls.c.o
[ 42%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
Linking C static library libglfw3.a
[ 42%] Built target glfw
Scanning dependencies of target CGL
[ 44%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector2D.cpp.o
[ 47%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector3D.cpp.o
[ 50%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector4D.cpp.o
[ 52%] Building CXX object CGL/src/CMakeFiles/CGL.dir/matrix3x3.cpp.o
[ 55%] Building CXX object CGL/src/CMakeFiles/CGL.dir/matrix4x4.cpp.o
[ 57%] Building CXX object CGL/src/CMakeFiles/CGL.dir/quaternion.cpp.o
[ 60%] Building CXX object CGL/src/CMakeFiles/CGL.dir/complex.cpp.o
[ 63%] Building CXX object CGL/src/CMakeFiles/CGL.dir/color.cpp.o
[ 65%] Building CXX object CGL/src/CMakeFiles/CGL.dir/spectrum.cpp.o
[ 68%] Building CXX object CGL/src/CMakeFiles/CGL.dir/osdtext.cpp.o
[ 71%] Building C object CGL/src/CMakeFiles/CGL.dir/osdfont.c.o
[ 73%] Building CXX object CGL/src/CMakeFiles/CGL.dir/viewer.cpp.o
[ 76%] Building CXX object CGL/src/CMakeFiles/CGL.dir/base64.cpp.o
[ 78%] Building CXX object CGL/src/CMakeFiles/CGL.dir/lodepng.cpp.o
[ 81%] Building CXX object CGL/src/CMakeFiles/CGL.dir/tinyxml2.cpp.o
Linking CXX static library libCGL.a
[ 81%] Built target CGL
Scanning dependencies of target rasterizester
[ 84%] Building CXX object src/CMakeFiles/rasterizester.dir/texture.cpp.o
[ 86%] Building CXX object src/CMakeFiles/rasterizester.dir/triangulation.cpp.o
[ 89%] Building CXX object src/CMakeFiles/rasterizester.dir/svgparser.cpp.o
[ 92%] Building CXX object src/CMakeFiles/rasterizester.dir/transforms.cpp.o
[ 94%] Building CXX object src/CMakeFiles/rasterizester.dir/drawrend.cpp.o
[ 97%] Building CXX object src/CMakeFiles/rasterizester.dir/svg.cpp.o
[100%] Building CXX object src/CMakeFiles/rasterizester.dir/main.cpp.o
Linking CXX executable ../rasterizester
[100%] Built target rasterizester
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ ./rasterizester ../svg/basic/test1.svg
[CMU462] GLFW Error: X11: Failed to open X display
[CMU462] Error: could not initialize GLFW!