Comments (8)
I guess it is related to xmake-io/xmake#4173, if I set the emcc toolchain proper, it should work!
from tbox.
If I run xmake config -p wasm
without setting the PATH for emcc, TB_CONFIG_POSIX_HAVE_OPEN will not be defined.
/* #undef TB_CONFIG_POSIX_HAVE_OPEN */
Using an elvish script like below:
#!/usr/bin/env elvish
xrepo install -y "emscripten 3.1.42"
var pkg_info = (xrepo fetch --json emscripten | from-json)
var emsdk_path = $pkg_info[0][artifacts][installdir]
set-env EMSDK $emsdk_path
xmake config --yes -p wasm -vD
If we set the EMSDK environment variable, TB_CONFIG_POSIX_HAVE_OPEN
will be defined.
And the behavior of the related API still need to be checked!
from tbox.
And checked the tbox.config.h
in xrepo, TB_CONFIG_POSIX_HAVE_OPEN
is not defined.
from tbox.
这是因为 tbox 默认用的也是全局的 configvar_check_cfuncs,而 wasm 新加的 target 粒度 toolchain 绑定,暂时我也没空改成 target 粒度 check 。。
你可以走 xmake f -p wasm --sdk=/wasm/sdk
全局切 emcc sdk,走全局检测去编译 tbox ,就行了
from tbox.
Bot detected the issue body's language is not English, translate it automatically.
This is because tbox also uses the global configvar_check_cfuncs by default, and wasm’s newly added target granularity toolchain binding, I have no time to change to target granularity check for the time being. .
You can run xmake f -p wasm --sdk=/wasm/sdk
to globally switch to emcc sdk, and run global detection to compile tbox, and that's it.
from tbox.
等这个 patch #235
from tbox.
初步可以了,先试试 check 分支
from tbox.
Bot detected the issue body's language is not English, translate it automatically.
It's okay initially, try the check branch first
from tbox.
Related Issues (20)
- 通过xrepo引入tbox 1.7.4,xmake config在wasm平台编译报错 HOT 6
- error: implicit declaration of function 'CancelIoEx'; did you mean 'CancelIo' HOT 2
- 在Gitee Go的linux平台上构建链接出错,缺少add_syslinks("m") HOT 10
- file_info on Window does not support symbol link HOT 4
- The ARM assembly code of tbox is not compatible with Apple M1 HOT 12
- 启用 openssl 编译错误 HOT 8
- 开启force-utf8选项后,tb_file_init在mingw平台下的路径编码与Windows下不一致 HOT 9
- Implement `SortedDictionary` / `std::map` / `GTree` equivalent HOT 4
- Does TBOX also abort in out-of-memory situations like GLib? HOT 1
- Getting the current directory of a file returns inconsistent results on macOS HOT 5
- macOS M1安装tbox报arm相关错误 HOT 7
- Can't install tbox on Mac HOT 1
- Spawn a process in Qt app without the command prompt flash up on the screen. HOT 1
- tb_backtrace_symbols_name不同平台的返回值格式应该一致 HOT 1
- 建议将event的现有实现稍微增强一下 HOT 4
- tb_option_done 只认 -f=a.txt 这种形式,却不认 -f a.txt 这种形式 HOT 7
- platform/posix/semaphore.c 中的 tb_semaphore_wait 实现存在bug HOT 2
- round相关函数的实现有问题 HOT 1
- 异步http请求? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tbox.