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

Won't compile on Linux without error #35

Open
eGax opened this issue Nov 9, 2024 · 0 comments
Open

Won't compile on Linux without error #35

eGax opened this issue Nov 9, 2024 · 0 comments

Comments

@eGax
Copy link

eGax commented Nov 9, 2024

Under Manjaro Linux KDE/Plasma, it won't finish compiling, failing at 57% with error:

assignment to ‘const long unsigned int *’ from incompatible pointer type ‘const z_crc_t *’ {aka ‘const unsigned int *’} [-Wincompatible-pointer-types]

[image]

My steps to build from terminal :

git clone --recursive https://github.com/assimp/assimp_view.git
cd assimp_view
cmake ./CMakeLists.txt --preset=default
cmake --build .

I see no issues during configuring, generating, or writing the build files from CMakeLists.txt.
cmakelists_setup.log

On to the output at build fail :

[ 56%] Building CXX object contrib/osre/contrib/assimp/code/CMakeFiles/assimp.dir/__/contrib/Open3DGC/o3dgcDynamicVectorDecoder.cpp.o
[ 56%] Building CXX object contrib/osre/contrib/assimp/code/CMakeFiles/assimp.dir/__/contrib/Open3DGC/o3dgcDynamicVectorEncoder.cpp.o
[ 56%] Building CXX object contrib/osre/contrib/assimp/code/CMakeFiles/assimp.dir/__/contrib/Open3DGC/o3dgcTools.cpp.o
[ 56%] Building CXX object contrib/osre/contrib/assimp/code/CMakeFiles/assimp.dir/__/contrib/Open3DGC/o3dgcTriangleFans.cpp.o
[ 57%] Building C object contrib/osre/contrib/assimp/code/CMakeFiles/assimp.dir/__/contrib/zip/src/zip.c.o
In file included from /home/retro/dev/assimp_view/contrib/osre/contrib/assimp/contrib/zip/src/zip.c:44:
/home/retro/dev/assimp_view/contrib/osre/contrib/assimp/contrib/zip/src/miniz.h:5108:9: note: ‘#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.’
 5108 | #pragma message(                                                               \
      |         ^~~~~~~
[ 57%] Linking CXX shared library ../../../../../lib/libassimp.so
[ 57%] Built target assimp
[ 57%] Building CXX object contrib/osre/contrib/cppcore/CMakeFiles/cppcore.dir/code/Memory/MemUtils.cpp.o
[ 57%] Building CXX object contrib/osre/contrib/cppcore/CMakeFiles/cppcore.dir/code/Random/RandomGenerator.cpp.o
[ 57%] Building CXX object contrib/osre/contrib/cppcore/CMakeFiles/cppcore.dir/code/cppcore.cpp.o
[ 57%] Linking CXX shared library ../../../../lib/libcppcore.so
[ 57%] Built target cppcore
[ 57%] Building C object contrib/osre/contrib/unzip/CMakeFiles/Unzip.dir/ioapi.c.o
[ 57%] Building C object contrib/osre/contrib/unzip/CMakeFiles/Unzip.dir/unzip.c.o
/home/retro/dev/assimp_view/contrib/osre/contrib/unzip/unzip.c: In function ‘unzOpenCurrentFile3’:
/home/retro/dev/assimp_view/contrib/osre/contrib/unzip/unzip.c:1178:24: error: assignment to ‘const long unsigned int *’ from incompatible pointer type ‘const z_crc_t *’ {aka ‘const unsigned int *’} [-Wincompatible-pointer-types]
 1178 |         s->pcrc_32_tab = get_crc_table();
      |                        ^
make[2]: *** [contrib/osre/contrib/unzip/CMakeFiles/Unzip.dir/build.make:90: contrib/osre/contrib/unzip/CMakeFiles/Unzip.dir/unzip.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:796: contrib/osre/contrib/unzip/CMakeFiles/Unzip.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

build.log

image

Expected behavior
I expect it to build without error.

Manjaro Linux KDE/Plasma
gcc --version : gcc (GCC) 14.2.1 20240910

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

1 participant