Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-prerequisites-vs2017.cmd fails on ptex on Windows10 #29

Open
joss13aws opened this issue Mar 30, 2019 · 1 comment
Open

build-prerequisites-vs2017.cmd fails on ptex on Windows10 #29

joss13aws opened this issue Mar 30, 2019 · 1 comment

Comments

@joss13aws
Copy link

joss13aws commented Mar 30, 2019

Windows10,
MSVS 2017 Community:
"Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64"
Ptex fails to build because of either missed or not properly processed header.
Tried on 2 different systems.

=======================================================
C:_usd\usd-build-club>call ..\usd-build-club\prerequisites-vc150-x64\ptex.cmd

C:_usd\usd-build-club>ECHO building ptex
building ptex

C:_usd\usd-build-club>SET current=C:_usd\usd-build-club

C:_usd\usd-build-club>if not exist "prereq" mkdir prereq

C:_usd\usd-build-club>cd prereq

C:_usd\usd-build-club\prereq>if not exist "ptex\CMakeLists.txt" git clone https://github.com/wdas/ptex.git

C:_usd\usd-build-club\prereq>cd ptex

C:_usd\usd-build-club\prereq\ptex>git pull
Already up to date.

C:_usd\usd-build-club\prereq\ptex>cd ..

C:_usd\usd-build-club\prereq>if not exist "build\ptex" mkdir build\ptex

C:_usd\usd-build-club\prereq>cd build\ptex

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexCache.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexCache.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexFilters.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexFilters.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexHalf.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexHalf.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexHalf.h(62): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexReader.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexReader.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexSeparableFilter.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexSeparableFilter.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexSeparableKernel.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexSeparableKernel.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexTriangleFilter.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexTriangleFilter.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexTriangleKernel.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexTriangleKernel.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexUtils.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexUtils.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>cl /c -DPTEXAPI="__declspec(dllexport)" -I"C:_usd\usd-build-club\local\include" -wd4800 -wd4244 -D_CRT_SECURE_NO_WARNINGS /EHsc ....\ptex\src\ptex\PtexWriter.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

PtexWriter.cpp
c:_usd\usd-build-club\prereq\ptex\src\ptex\PtexPlatform.h(90): fatal error C1083: Cannot open include file: 'PtexVersion.h': No such file or directory

C:_usd\usd-build-club\prereq\build\ptex>link /dll -out:ptex.dll PtexCache.obj PtexFilters.obj PtexHalf.obj PtexReader.obj PtexSeparableFilter.obj PtexSeparableKernel.obj PtexTriangleFilter.obj PtexTriangleKernel.obj PtexUtils.obj PtexWriter.obj zlib.lib /libpath:"C:_usd\usd-build-club\local\lib"
Microsoft (R) Incremental Linker Version 14.16.27027.1
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1181: cannot open input file 'PtexCache.obj'

C:_usd\usd-build-club\prereq\build\ptex>copy ptex.* ......\local\lib
ptex.*
The system cannot find the file specified.
0 file(s) copied.

C:_usd\usd-build-club\prereq\build\ptex>copy ptex.dll ......\local\dll
The system cannot find the file specified.

C:_usd\usd-build-club\prereq\build\ptex>cd ......

C:_usd\usd-build-club>copy prereq\ptex\src\ptex\PtexHalf.h local\include\PtexHalf.h
1 file(s) copied.

C:_usd\usd-build-club>copy prereq\ptex\src\ptex\PtexInt.h local\include\PtexInt.h
1 file(s) copied.

C:_usd\usd-build-club>copy prereq\ptex\src\ptex\Ptexture.h local\include\Ptexture.h
1 file(s) copied.

C:_usd\usd-build-club>copy prereq\ptex\src\ptex\PtexUtils.h local\include\PtexUtils.h
1 file(s) copied.

C:_usd\usd-build-club>copy prereq\ptex\src\ptex\PtexVersion.h local\include\PtexVersion.h
The system cannot find the file specified.
C:_usd\usd-build-club>

=======================================================

@meshula
Copy link
Member

meshula commented Aug 15, 2019

Looks like build steps for ptex need to be revised, thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants