artoolkitx / artoolkitx/artoolkitx
ARX.cmake in "1.0.5.1/artoolkitX.for.Windows.v1.0.zip" contains absolut path to pthreadVC2static.lib, which is not contained
- Dominant language
- C
- Stars
- 511
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
I downloaded "1.0.5.1/artoolkitX.for.Windows.v1.0.zip" as 1.0.6 does not have a windows download.
Found "ARX.cmake" in a sub dir and therefore wanted to use cmake's find_package:
```
find_package(ARX CONFIGS ARX.cmake REQUIRED)
```
Configuring works but if I want to build I get this error:
```
ninja: error: 'D:/a/1/s/Source/depends/windows/lib/x64/pthreadVC2static.lib', needed by 'bin/***.exe', missing and no known rule to make it
```
I looked into "ARX.cmake" and found this line.
```
INTERFACE_LINK_LIBRARIES "opengl32;glu32;OpenGL32;D:/a/1/s/Source/depends/windows/lib/x64/pthreadVC2static.lib"
```
When replacing "D:/a/1/s/Source/depends/windows/lib/x64/pthreadVC2static.lib" with "pthreadVC2static.lib" it will build but than fail to link to it. The lib is not contained in the .zip so I cannot do anything about that.
If i run build.sh in the sources the created "ARX.cmake" again contains an absolut path to the location in the source tree. Furthermore all created files are spread throughout the build dir and I cannot find install instructions anywhere which might use relative paths and copy the libs in the right place.
What is the expected way to fix? Or is there an other approach to use the sdk on windows without building it on each system?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.