Skip to content

Commit

Permalink
-- Add freeglut and glew64 libs for simpleGL
Browse files Browse the repository at this point in the history
-- delete freeimage libs and headers, user needs to install it for
building samples depending on it
  • Loading branch information
mdoijade committed Dec 11, 2020
1 parent 1cd3264 commit b882fa0
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 1,300 deletions.
142 changes: 0 additions & 142 deletions Common/FreeImage/freeimage-license.txt

This file was deleted.

1,153 changes: 0 additions & 1,153 deletions Common/FreeImage/include/FreeImage.h

This file was deleted.

Binary file removed Common/FreeImage/lib/darwin/libfreeimage.a
Binary file not shown.
Binary file not shown.
Binary file removed Common/FreeImage/lib/linux/aarch64/libfreeimage.a
Binary file not shown.
Binary file removed Common/FreeImage/lib/linux/armv7l/libfreeimage.a
Binary file not shown.
Binary file removed Common/FreeImage/lib/linux/ppc64le/libfreeimage.a
Binary file not shown.
Binary file removed Common/FreeImage/lib/linux/sbsa/libfreeimage.a
Binary file not shown.
Binary file removed Common/FreeImage/lib/linux/x86_64/libfreeimage.a
Binary file not shown.
Binary file removed Common/FreeImage/lib/x64/FreeImage.dll
Binary file not shown.
Binary file removed Common/FreeImage/lib/x64/FreeImage.lib
Binary file not shown.
Binary file added Common/lib/x64/freeglut.lib
Binary file not shown.
Binary file added Common/lib/x64/glew64.lib
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ These third-party dependencies are required by some CUDA samples. If available,

FreeImage is an open source imaging library. FreeImage can usually be installed on Linux using your distribution's package manager system. FreeImage can also be downloaded from the FreeImage website.

To set up FreeImage on a Windows system, extract the FreeImage DLL distribution into the `7_CUDALibraries/common/` folder such that `7_CUDALibraries/common/FreeImage/Dist/x64/` contains the .h, .dll, and .lib files.
To set up FreeImage on a Windows system, extract the FreeImage DLL distribution into the folder `../../Common/FreeImage/Dist/x64` such that it contains the .h, .dll, and .lib files.

#### Message Passing Interface

Expand Down
4 changes: 2 additions & 2 deletions Samples/simpleGL/simpleGL_vs2017.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<Link>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>cudart_static.lib;freeglut.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../common/lib/$(PlatformName);</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../Common/lib/$(PlatformName);</AdditionalLibraryDirectories>
<OutputFile>$(OutDir)/simpleGL.exe</OutputFile>
</Link>
<CudaCompile>
Expand Down Expand Up @@ -104,7 +104,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<Link>
<AdditionalDependencies>glew32.lib;%(AdditionalDependencies)</AdditionalDependencies>

</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
Expand Down
4 changes: 2 additions & 2 deletions Samples/simpleGL/simpleGL_vs2019.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<Link>
<SubSystem>Console</SubSystem>
<AdditionalDependencies>cudart_static.lib;freeglut.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../common/lib/$(PlatformName);</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(CudaToolkitLibDir);../../Common/lib/$(PlatformName);</AdditionalLibraryDirectories>
<OutputFile>$(OutDir)/simpleGL.exe</OutputFile>
</Link>
<CudaCompile>
Expand Down Expand Up @@ -100,7 +100,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
<Link>
<AdditionalDependencies>glew32.lib;%(AdditionalDependencies)</AdditionalDependencies>

</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
Expand Down
Binary file added bin/win64/Debug/freeglut.dll
Binary file not shown.
Binary file added bin/win64/Debug/glew64.dll
Binary file not shown.
Binary file added bin/win64/Release/freeglut.dll
Binary file not shown.
Binary file added bin/win64/Release/glew64.dll
Binary file not shown.

0 comments on commit b882fa0

Please sign in to comment.