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

编译步骤可以再详细点吗? #3

Open
panmeibing opened this issue Mar 9, 2023 · 8 comments
Open

编译步骤可以再详细点吗? #3

panmeibing opened this issue Mar 9, 2023 · 8 comments

Comments

@panmeibing
Copy link

根据已给的编译步骤,我使用Ubuntu20.04尝试编译,但执行CMakeLists.txt里的加载fmt、ncnn子文件夹的时候提示不存在,已执行 git submodule update --init 也没有出现文件夹

CMake Error at CMakeLists.txt:13 (add_subdirectory):
  add_subdirectory given source "fmt" which is not an existing directory.

CMake Error at CMakeLists.txt:14 (add_subdirectory):
  add_subdirectory given source "ncnn" which is not an existing directory.

-- Configuring incomplete, errors occurred!

希望作者有时间的话给出一个比较详细的部署步骤,非常感谢

@panmeibing
Copy link
Author

原来fmt和ncnn也是一个git项目,手动clone就行

git clone https://github.com/fmtlib/fmt.git
git clone https://github.com/Tencent/ncnn.git

但遇到另一个问题,编译之后运行,提示 浏览器不支持pthread (不支持iOS,Android请单独用Chrome/Firefox等浏览器打开,桌面端请使用最新版本的Chrome或Firefox) ,但我使用的是最新的Chrome,打开https://real-cugan.animesales.xyz/又是可以正常使用的,不知道是我哪个步骤错了吗?

@hanFengSan
Copy link
Owner

hanFengSan commented Mar 10, 2023 via email

@panmeibing
Copy link
Author

不是,我在虚拟机里编译和go run local_server.go,然后在物理机访问虚拟机的ip端口

@hanFengSan
Copy link
Owner

不是,我在虚拟机里编译和go run local_server.go,然后在物理机访问虚拟机的ip端口

只有localhost打开才能豁免哈,不然就需要https了

@hanFengSan
Copy link
Owner

wasm的使用限制比较多,比如必须https

@panmeibing
Copy link
Author

好的,非常感谢回复

@panmeibing
Copy link
Author

你好,我想再请教一下,可以使用NGINX部署然后通过公网访问吗?我编译好之后把web文件夹拿到NGINX的网站目录里还是无法使用(已使用https),还是说只能通过go run local_server.go运行?

@yueshuangyan
Copy link

请问,可以支持编译webassembly 单线程的版本,以提高兼容性吗

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

3 participants