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

Cannot build with clang on windows #1018

Open
Kavci034 opened this issue Aug 25, 2023 · 0 comments · May be fixed by #1069
Open

Cannot build with clang on windows #1018

Kavci034 opened this issue Aug 25, 2023 · 0 comments · May be fixed by #1069

Comments

@Kavci034
Copy link

When I try to build with clang I get this error when it is compiling
[66/137] Building CXX object CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj FAILED: CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\"C:/Users/kayra/draco\" -DDRACO_FLAGS_TMPDIR=\"/tmp\" -DNOMINMAX=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -IC:/Users/kayra/draco -IC:/Users/kayra/draco/src -IC:/Users/kayra/draco/build -O0 -g -Xclang -gcodeview -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -Wno-implicit-const-int-float-conversion -MD -MT CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -MF CMakeFiles\draco_io.dir\src\draco\io\stdio_file_reader.cc.obj.d -o CMakeFiles/draco_io.dir/src/draco/io/stdio_file_reader.cc.obj -c C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc C:/Users/kayra/draco/src/draco/io/stdio_file_reader.cc:91:48: error: use of undeclared identifier 'ftello'; did you mean 'ftell'? const size_t file_size = static_cast<size_t>(ftello(file_)); ^~~~~~ ftell C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h:286:27: note: 'ftell' declared here _ACRTIMP long __cdecl ftell( ^ 1 error generated. [83/137] Building CXX object CMakeFiles/draco_mesh.dir/src/draco/mesh/mesh_cleanup.cc.obj ninja: build stopped: subcommand failed.

These are my cmake environment variables
CMAKE_GENERATOR -> ninja
CC -> clang
CXX -> clang++

When I try to compile using visual studio generator everything works but with ninja and clang it doesnt

SpinnerX added a commit to SpinnerX/draco that referenced this issue Jun 4, 2024
@SpinnerX SpinnerX linked a pull request Jun 4, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant