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

[BUG] Build failed on windows #517

Open
sandsc opened this issue Jan 7, 2025 · 1 comment
Open

[BUG] Build failed on windows #517

sandsc opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@sandsc
Copy link

sandsc commented Jan 7, 2025

Description

I was trying to build ten-framework on windows, After successfully executing the "tgn gen win x64 debug" command, when I ran the "tgn build win x64 debug" command, I encountered the following error:

../../../core/include_internal/ten_runtime/binding/python/common/python_stuff.h(15, 10): fatal error: 'Python.h' file not found.

I've checked the generated compile_commands.json and found that the command-line arguments include the Python directory using "/I"" instead of "-I". Could this be the cause of the problem?

  "command": "ninja.exe -t msvc -e ten_framework/out/win/x64/environment.x64 -- clang-cl.exe /nologo /showIncludes  -DTEN_PLATFORM -DOS_WINDOWS -DTEN_RUNTIME_EXPORT -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_WARNINGS -DTEN_LOG_DEF_LEVEL=TEN_LOG_DEBUG -DTEN_ENABLE_TEN_RUST_APIS -DTARGET_OS_WIN -D_UNICODE -DUNICODE -D_DEBUG  -Isrc -I. -Iobj -I../../../core -I../../../core/src -I../../../core/include -I../../.. -Igen -Igen/core/src/ten_rust -Igen/cmake/jansson/install/include  /wd4312 /wd4305 /wd5105 /wd5103 /wd4996 /FC /MTd /Gy /FS /bigobj /Zi /d2FastFail /Zc:sizedDealloc- -m64 /MTd -I\"C:\\Python\\Python313\\Include\"  /TC /c ../../../core/src/ten_runtime/binding/python/native/init.c /Fo obj/core/src/ten_runtime/binding/python/native/ten_runtime_python/init.obj /Fd\"obj/core/src/ten_runtime/binding/python/native/ten_runtime_python_c.pdb\""

Environment

Win32

Steps to reproduce

  1. generator config: tgn gen win x64 debug
  2. build: tgn build win x64 debug

Expected behavior

build successfully.

Actual behavior

fatal error: 'Python.h' file not found.

Version

The latest code on the current main branch.

Severity

Minor

Additional Information

No response

@sandsc sandsc added the bug Something isn't working label Jan 7, 2025
@halajohn
Copy link
Member

halajohn commented Jan 9, 2025

Well, thanks for your report. I don’t have a Windows machine, so I can’t handle this problem very efficiently. You could try experimenting a bit.
However, from the command line you posted, it seems like there’s no /I option either?

@halajohn halajohn moved this to Todo in TEN framework Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants