ARM-software / astc-encoder

The Arm ASTC Encoder, a compressor for the Adaptive Scalable Texture Compression data format.
https://developer.arm.com/graphics
Apache License 2.0
1.07k stars 239 forks source link

Can't find libastcenc-avx2-static.a... How can I fix it ? #426

Closed blu3sh0rk closed 1 year ago

blu3sh0rk commented 1 year ago

The issue I encountered is that the following error occurred during compilation, and the compilation command is:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
make install -j16
[  3%] Linking CXX static library libastcenc-sse2-veneer.a
[  3%] Linking CXX static library libastcenc-sse4.1-veneer.a
[  3%] Linking CXX static library libastcenc-avx2-veneer.a
[  4%] Linking CXX static library libastcenc-avx2-static.a
[  5%] Linking CXX static library libastcenc-sse4.1-static.a
[  6%] Linking CXX static library libastcenc-sse2-static.a
Error running link command: Error running link command: Error running link command: Error running link command: Error running link command: Error running link command: No such file or directoryNo such file or directoryNo such file or directoryNo such file or directory

No such file or directory

No such file or directory

make[2]: *** [Source/CMakeFiles/astcenc-sse4.1-static.dir/build.make:419: Source/libastcenc-sse4.1-static.a] Error 2
make[2]: *** [Source/CMakeFiles/astcenc-avx2-static.dir/build.make:419: Source/libastcenc-avx2-static.a] Error 2
make[2]: *** [Source/CMakeFiles/astcenc-sse2-veneer.dir/build.make:104: Source/libastcenc-sse2-veneer.a] Error 2
make[2]: *** [Source/CMakeFiles/astcenc-sse2-static.dir/build.make:419: Source/libastcenc-sse2-static.a] Error 2
make[2]: *** [Source/CMakeFiles/astcenc-sse4.1-veneer.dir/build.make:104: Source/libastcenc-sse4.1-veneer.a] Error 2
make[1]: *** [CMakeFiles/Makefile2:968: Source/CMakeFiles/astcenc-sse4.1-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [Source/CMakeFiles/astcenc-avx2-veneer.dir/build.make:104: Source/libastcenc-avx2-veneer.a] Error 2
make[1]: *** [CMakeFiles/Makefile2:1105: Source/CMakeFiles/astcenc-avx2-static.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1078: Source/CMakeFiles/astcenc-sse2-veneer.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1051: Source/CMakeFiles/astcenc-sse2-static.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1132: Source/CMakeFiles/astcenc-sse4.1-veneer.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:941: Source/CMakeFiles/astcenc-avx2-veneer.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
[ 75%] Linking CXX static library libastcenc-avx2-static.a
Error running link command: No such file or directory
make[2]: *** [Source/CMakeFiles/astcenc-avx2-static.dir/build.make:419: Source/libastcenc-avx2-static.a] Error 2
make[1]: *** [CMakeFiles/Makefile2:1105: Source/CMakeFiles/astcenc-avx2-static.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
solidpixel commented 1 year ago

The step is that is failing is the one that builds the library, so I suspect something is broken in your compiler/linker install.

Running make VERBOSE=1 -j1 might give some more indication of what's going wrong, but it looks like it can't find the linker or archiver.