Hi Radu, Thanks for the suggestion, I was able to generate the .dlls in #_rd.dll format, but I couldn't get it to build the RelWithDebInfo. I am attaching the .bat files and error outputs, so you can see how I implemented your suggestion.
Final build message, ========== Build: 171 succeeded, 2 failed, 0 up-to-date, 0 skipped ========== -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/b1470ae9-87a7-445e-834f-90bb15624bf9n%40googlegroups.com.
@rem
---------------------------------------------------------------------------------------------------------
@rem Windows batch script for building GL from sources.
@rem - Place in an arbitrary temporary directory.
@rem - Specify the locations for the GL sources OR indicate that these should
be downloaded.
@rem - Specify the install directory.
@rem - Decide whether to build shared or static libraries and whether to also
build debug libraries.
@rem - Run the script (.\buildGL.bat) from a *VS developer console*.
@rem
@rem Notes:
@rem - The script accepts 1 optional argument to override the install directory.
@rem - Do *not* use GLEW from its GitHub repository. It is not properly set up
to work with CMake. Use instead
@rem the source archive available on SourceForge.
@rem - The sources for GLM and GLFW can be obtained either from GitHub or from
SourceForge.
@rem - This was tested with the following versions of VSG libraries:
@rem GLEW (glew.sourceforge.net/): Version 2.1.0
@rem GLFW (github.com/glfw/glfw): Commit (#8f470597)
@rem GLM (github.com/g-truc/glm.git): Commit (#efec5db0)
@rem
---------------------------------------------------------------------------------------------------------
set DOWNLOAD=ON
set
GL_INSTALL_DIR="C:\Users\shusain\Documents\project_chrono\support_packages\opengl_scripts\GL_INSTALL_DIR"
set BUILDSHARED=ON
set BUILDDEBUG=ON
@if %DOWNLOAD% EQU OFF (
set GLM_SOURCE_DIR="C:/Sources/glm"
set GLEW_SOURCE_DIR="C:/Sources/glew"
set GLFW_SOURCE_DIR="C:/Sources/glfw"
)
@rem ------------------------------------------------------------------------
@rem Allow overriding installation directory through command line argument
if "%~1" NEQ "" (
set GL_INSTALL_DIR=%1
)
@rem ------------------------------------------------------------------------
@if %DOWNLOAD% EQU ON (
echo "Downloading sources from sourceforge.net"
rmdir /S/Q download_gl 2>nul
mkdir download_gl
echo " ... GLEW"
powershell -Command "Invoke-WebRequest -UserAgent 'Wget' -Uri
https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip -OutFile
download_gl/glew.zip"
powershell -Command "Expand-Archive -Force download_gl/glew.zip download_gl"
set GLEW_SOURCE_DIR="download_gl/glew-2.1.0"
echo " ... GLFW"
powershell -Command "Invoke-WebRequest -UserAgent 'Wget' -Uri
https://sourceforge.net/projects/glfw/files/glfw/3.3.8/glfw-3.3.8.zip -OutFile
download_gl/glfw.zip"
powershell -Command "Expand-Archive -Force download_gl/glfw.zip download_gl"
set GLFW_SOURCE_DIR="download_gl/glfw-3.3.8"
echo " ... GLM"
powershell -Command "Invoke-WebRequest -UserAgent 'Wget' -Uri
https://sourceforge.net/projects/glm.mirror/files/0.9.9.8/glm-0.9.9.8.zip
-OutFile download_gl/glm.zip"
powershell -Command "Expand-Archive -Force download_gl/glm.zip download_gl"
set GLM_SOURCE_DIR="download_gl/glm"
) else (
echo "Using provided source directories"
)
@rem ------------------------------------------------------------------------
rmdir /S/Q %GL_INSTALL_DIR% 2>nul
rem --- GLM ----------------------------------------------------------------
xcopy /S/E/I %GLM_SOURCE_DIR%\glm %GL_INSTALL_DIR%\include\glm
rem --- GLEW ---------------------------------------------------------------
rmdir /S/Q build_glew 2>nul
cmake -B build_glew -S %GLEW_SOURCE_DIR%/build/cmake ^
-DBUILD_SHARED_LIBS:BOOL=%BUILDSHARED% ^
-DCMAKE_DEBUG_POSTFIX=_d
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd
cmake --build build_glew --config RelWithDebINfo
cmake --install build_glew --config RelWithDebInfo --prefix %GL_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_glew --config Debug
cmake --install build_glew --config Debug --prefix %GL_INSTALL_DIR%
) else (
echo "No Debug build"
)
rem --- GLFW ---------------------------------------------------------------
rmdir /S/Q build_glfw 2>nul
cmake -B build_glfw -S %GLFW_SOURCE_DIR% ^
-DBUILD_SHARED_LIBS:BOOL=%BUILDSHARED% ^
-DCMAKE_DEBUG_POSTFIX=_d
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd
cmake --build build_glfw --config RelWithDebInfo
cmake --install build_glfw --config RelWithDebInfo --prefix %GL_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_glfw --config Debug
cmake --install build_glfw --config Debug --prefix %GL_INSTALL_DIR%
) else (
echo "No Debug build"
)
error_log_oct_17_2024.xlsx
Description: MS-Excel 2007 spreadsheet
@rem
---------------------------------------------------------------------------------------------------------
@rem Windows batch script for building VSG based on the last official releases.
@rem - Place in an arbitrary temporary directory.
@rem - Specify the locations for the VSG sources OR indicate that these should
be downloaded
@rem - Specify the install directory
@rem - Decide whether to build shared or static libraries and whether to also
build debug libraries.
@rem - Run the script (.\buildVSG.bat).
@rem - The install directory will contain (under subdirectories of
VSG_INSTALL_DIR/lib/shared) all VSG CMake
@rem project configuration scripts required to configure Chrono with the
Chrono::VSG module enabled.
@rem
@rem Notes:
@rem - The script accepts 1 optional argument to override the install directory.
@rem - This script uses the following versions of the various codes from their
respective repositories, with the
@rem only exception being vsgImGui which pulls the latest version.
@rem VulkanSceneGraph (github.com/vsg-dev/VulkanSceneGraph.git): Tag v1.1.4
@rem vsgXchange (github.com/vsg-dev/vsgXchange.git): Tag v1.1.2
@rem vsgImGui (github.com/vsg-dev/vsgImGui.git): latest
@rem vsgExamples (github.com/vsg-dev/vsgExamples.git): Tag v1.1.4
@rem assimp (github.com/assimp/assimp): Tag v5.3.1
@rem
---------------------------------------------------------------------------------------------------------
set DOWNLOAD=ON
set
VSG_INSTALL_DIR="C:\Users\shusain\Documents\project_chrono\support_packages\vsg_scripts\VSG_INSTALL_DIR"
set BUILDSHARED=ON
set BUILDDEBUG=ON
@if %DOWNLOAD% EQU OFF (
set VSG_SOURCE_DIR="C:/Sources/VulkanSceneGraph"
set VSGXCHANGE_SOURCE_DIR="C:/Sources/vsgXchange"
set VSGIMGUI_SOURCE_DIR="C:/Sources/vsgImGui"
set VSGEXAMPLES_SOURCE_DIR="C:/Sources/vsgExamples"
set ASSIMP_SOURCE_DIR="C:/Sources/assimp"
)
@rem ------------------------------------------------------------------------
@rem Allow overriding installation directory through command line argument
if "%~1" NEQ "" (
set VSG_INSTALL_DIR=%1
)
@rem ------------------------------------------------------------------------
@if %DOWNLOAD% EQU ON (
echo "Downloading sources from GitHub"
rmdir /S/Q download_vsg 2>nul
mkdir download_vsg
echo " ... VulkanSceneGraph"
git clone -c advice.detachedHead=false --depth 1 --branch v1.1.4
"https://github.com/vsg-dev/VulkanSceneGraph" "download_vsg/vsg"
rem git clone "https://github.com/vsg-dev/VulkanSceneGraph"
"download_vsg/vsg"
set VSG_SOURCE_DIR="download_vsg/vsg"
echo " ... vsgXchange"
git clone -c advice.detachedHead=false --depth 1 --branch v1.1.2
"https://github.com/vsg-dev/vsgXchange" "download_vsg/vsgXchange"
rem git clone "https://github.com/vsg-dev/vsgXchange"
"download_vsg/vsgXchange"
set VSGXCHANGE_SOURCE_DIR="download_vsg/vsgXchange"
echo " ... vsgImGui"
git clone "https://github.com/vsg-dev/vsgImGui" "download_vsg/vsgImGui"
set VSGIMGUI_SOURCE_DIR="download_vsg/vsgImGui"
echo " ... vsgExamples"
git clone -c advice.detachedHead=false --depth 1 --branch v1.1.4
"https://github.com/vsg-dev/vsgExamples" "download_vsg/vsgExamples"
rem git clone "https://github.com/vsg-dev/vsgExamples"
"download_vsg/vsgExamples"
set VSGEXAMPLES_SOURCE_DIR="download_vsg/vsgExamples"
echo " ... assimp"
git clone -c advice.detachedHead=false --depth 1 --branch v5.3.1
"https://github.com/assimp/assimp" "download_vsg/assimp"
set ASSIMP_SOURCE_DIR="download_vsg/assimp"
) else (
echo "Using provided source directories"
)
@rem ------------------------------------------------------------------------
rmdir /S/Q %VSG_INSTALL_DIR% 2>nul
rem --- assimp -------------------------------------------------------------
rmdir /S/Q build_assimp 2>nul
cmake -B build_assimp -S %ASSIMP_SOURCE_DIR% ^
-DBUILD_SHARED_LIBS:BOOL=OFF ^
-DCMAKE_DEBUG_POSTFIX=_d ^
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd ^
-DASSIMP_BUILD_TESTS:BOOL=OFF ^
-DASSIMP_BUILD_ASSIMP_TOOLS:BOOL=OFF ^
-DASSIMP_BUILD_ZLIB:BOOL=ON ^
-DASSIMP_BUILD_DRACO:BOOL=ON
cmake --build build_assimp --config RelWithDebInfo
cmake --install build_assimp --config RelWithDebInfo --prefix %VSG_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_assimp --config Debug
cmake --install build_assimp --config Debug --prefix %VSG_INSTALL_DIR%
) else (
echo "No Debug build of assimp"
)
rem --- vsg ----------------------------------------------------------------
rmdir /S/Q build_vsg 2>nul
cmake -B build_vsg -S %VSG_SOURCE_DIR% ^
-DBUILD_SHARED_LIBS:BOOL=%BUILDSHARED% ^
-DCMAKE_DEBUG_POSTFIX=_d ^
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd
cmake --build build_vsg --config RelWithDebInfo
cmake --install build_vsg --config RelWithDebInfo --prefix %VSG_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_vsg --config Debug
cmake --install build_vsg --config Debug --prefix %VSG_INSTALL_DIR%
) else (
echo "No Debug build of vsg"
)
rem --- vsgXchange ---------------------------------------------------------
rmdir /S/Q build_vsgXchange 2>nul
cmake -B build_vsgXchange -S %VSGXCHANGE_SOURCE_DIR% ^
-DBUILD_SHARED_LIBS:BOOL=%BUILDSHARED% ^
-DCMAKE_DEBUG_POSTFIX=_d ^
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd ^
-Dvsg_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/vsg ^
-Dassimp_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/assimp-5.3
cmake --build build_vsgXchange --config RelWithDebInfo
cmake --install build_vsgXchange --config RelWithDebInfo --prefix
%VSG_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_vsgXchange --config Debug
cmake --install build_vsgXchange --config Debug --prefix %VSG_INSTALL_DIR%
) else (
echo "No Debug build of vsgXchange"
)
@rem del /S/Q red_teapot.vsgt
@rem vsgconv red_teapot.obj red_teapot.vsgt
@rem if EXIST red_teapot.vsgt (
@rem echo "seems to work."
@rem )
rem --- vsgImGui -----------------------------------------------------------
rmdir /S/Q build_vsgImGui 2>nul
cmake -B build_vsgImGui -S %VSGIMGUI_SOURCE_DIR% ^
-DBUILD_SHARED_LIBS:BOOL=%BUILDSHARED% ^
-DCMAKE_DEBUG_POSTFIX=_d ^
-DCMAKE_RELWITHDEBINFO_POSTFIX=_rd ^
-Dvsg_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/vsg
cmake --build build_vsgImGui --config RelWithDebInfo
cmake --install build_vsgImGui --config RelWithDebInfo --prefix
%VSG_INSTALL_DIR%
if %BUILDDEBUG% EQU ON (
cmake --build build_vsgImGui --config Debug
cmake --install build_vsgImGui --config Debug --prefix %VSG_INSTALL_DIR%
) else (
echo "No Debug build of vsgImGui"
)
rem --- vsgExamples --------------------------------------------------------
rmdir /S/Q build_vsgExamples 2>nul
cmake -B build_vsgExamples -S %VSGEXAMPLES_SOURCE_DIR% ^
-Dvsg_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/vsg ^
-DvsgXchange_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/vsgXchange ^
-DvsgImGui_DIR:PATH=%VSG_INSTALL_DIR%/lib/cmake/vsgImGui
cmake --build build_vsgExamples --config RelWithDebInfo
cmake --install build_vsgExamples --config RelWithDebInfo --prefix
%VSG_INSTALL_DIR%
rem --- VSG_FILE_PATH ------------------------------------------------------
set "VSG_INSTALL_DIR=%VSG_INSTALL_DIR:/=\%"
setx VSG_FILE_PATH "%VSG_INSTALL_DIR%\share\vsgExamples"
