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

How to compile the webassembly of artoolkitx? #113

Open
wzy88111 opened this issue Jun 29, 2020 · 6 comments
Open

How to compile the webassembly of artoolkitx? #113

wzy88111 opened this issue Jun 29, 2020 · 6 comments

Comments

@wzy88111
Copy link

I have tried some times by the command line of ./build.sh emscripten ,but it occurs some errors.
build.sh emscripten
Building emscripten
-- Using single-configuration CMake generator.
-- Could NOT find OpenCV (missing: OpenCV_LIBS OpenCV_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:165 (message):
OpenCV not found, will build without 2D tracker

-- Defined: ARX_TARGET_PLATFORM_EMSCRIPTEN=1
-- Could NOT find OpenGLES2 (missing: OPENGLES2_LIBRARIES OPENGLES2_INCLUDE_DIR)
/usr/usr/local/opt/local
-- Could NOT find OpenGL3 (missing: OpenGL3_LIBRARIES OpenGL3_INCLUDE_PATH)
-- Opting for desktop OpenGL. Set ARX_GL_PREFER_EMBEDDED to change.
CMake Error at /Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Call Stack (most recent call first):
/Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindJPEG.cmake:100 (find_package_handle_standard_args)
ARX/ARVideo/CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!

@ThorstenBux
Copy link

ThorstenBux commented Jun 29, 2020 via email

@ThorstenBux
Copy link

ThorstenBux commented Jun 30, 2020 via email

@wzy88111
Copy link
Author

My bad https://github.com/webarkit/artoolkitX.js Get Outlook for iOShttps://aka.ms/o0ukef

________________________________ From: wzy88111 notifications@github.com Sent: Tuesday, June 30, 2020 1:47:23 PM To: artoolkitx/artoolkitx artoolkitx@noreply.github.com Cc: Thorsten Bux thorsten.bux@outlook.com; Comment comment@noreply.github.com Subject: Re: [artoolkitx/artoolkitx] How to compile the webassembly of artoolkitx? (#113) Look at webarkit/artoolkitX Kind regards Thorsten Bux … Sent from my iPhone On 29/06/2020, at 11:15 PM, wzy88111 notifications@github.commailto:notifications@github.com wrote:  I have tried some times by the command line of ./build.sh emscripten ,but it occurs some errors. build.sh emscripten Building emscripten -- Using single-configuration CMake generator. -- Could NOT find OpenCV (missing: OpenCV_LIBS OpenCV_INCLUDE_DIR) CMake Warning at CMakeLists.txt:165 (message): OpenCV not found, will build without 2D tracker -- Defined: ARX_TARGET_PLATFORM_EMSCRIPTEN=1 -- Could NOT find OpenGLES2 (missing: OPENGLES2_LIBRARIES OPENGLES2_INCLUDE_DIR) /usr/usr/local/opt/local -- Could NOT find OpenGL3 (missing: OpenGL3_LIBRARIES OpenGL3_INCLUDE_PATH) -- Opting for desktop OpenGL. Set ARX_GL_PREFER_EMBEDDED to change. CMake Error at /Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Call Stack (most recent call first): /Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) /Library/Python/2.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/FindJPEG.cmake:100 (find_package_handle_standard_args) ARX/ARVideo/CMakeLists.txt:13 (find_package) -- Configuring incomplete, errors occurred! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fartoolkitx%2Fartoolkitx%2Fissues%2F113&data=02%7C01%7C%7C163101c069da4b786eaf08d81c1dc173%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290261405316367&sdata=y5ISlTp9Rhgo9BHdXY43nxVB%2BIdFzUubGLHPb2JAB3E%3D&reserved=0https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fartoolkitx%2Fartoolkitx%2Fissues%2F113&data=02%7C01%7C%7C16a30d8bbd164a28f3ff08d81c9788dd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290784438355495&sdata=4DWy5hNtOKTVOscOQtw%2FkO%2FiJmtcxGbmlSPQdDXC2w0%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD765PF4BCYFAZVHLKCU4XLRZBZVVANCNFSM4OLCNZAQ&data=02%7C01%7C%7C163101c069da4b786eaf08d81c1dc173%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290261405316367&sdata=9oiq0Frv3IwfBmRQablAYk6b%2BtlhyHpWistCNFiGCN4%3D&reserved=0https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD765PF4BCYFAZVHLKCU4XLRZBZVVANCNFSM4OLCNZAQ&data=02%7C01%7C%7C16a30d8bbd164a28f3ff08d81c9788dd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290784438365471&sdata=oiy9fVeMi7P%2BJ8Zla4hEwFwnTeVHLS5X36VzCSdCFz4%3D&reserved=0. I cann't find the git location from the github. — You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fartoolkitx%2Fartoolkitx%2Fissues%2F113%23issuecomment-651468971&data=02%7C01%7C%7C16a30d8bbd164a28f3ff08d81c9788dd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290784438380450&sdata=6zOIOUGw8pzrspA2vfGTZz7mIzjSsfXkcSxJPkBnp%2Bo%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD765PG6PU7S7JFASAH3WCDRZE72XANCNFSM4OLCNZAQ&data=02%7C01%7C%7C16a30d8bbd164a28f3ff08d81c9788dd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637290784438385436&sdata=vLkOyDH0OSc24HM253WIfxMW1%2FjPjDfsClkBRhvGSx0%3D&reserved=0.

I have tried the step by the ./build.sh --dev ,It occurs the same error.

@wzy88111
Copy link
Author

build.sh --dev
Would you like to init/update the submodule (recommended) y/n: y
Cloning into '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx'...
Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:webarkit/artoolkitX_em_2d.git' into submodule path '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx' failed
Failed to clone 'Source/extras/artoolkitx'. Retry scheduled
Cloning into '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:webarkit/artoolkitX_em_2d.git' into submodule path '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx' failed
Failed to clone 'Source/extras/artoolkitx' a second time, aborting

@ThorstenBux
Copy link

ThorstenBux commented Jun 30, 2020 via email

@wzy88111
Copy link
Author

Use it without –dev as you are not aiming to build the artoolkitX code. Or setup your git account so that you can clone git@github.com:webarkit/artoolkitX_em_2d.git which means you need to setup ssh access. Otherwise clone git@github.com:webarkit/artoolkitX_em_2d.git manually and set your ARTOOLKITX_HOME env variable. And if you still have issues. Use artoolkitX.js repo for issue tracking plz. From: wzy88111 notifications@github.com Reply to: artoolkitx/artoolkitx reply@reply.github.com Date: Tuesday, 30 June 2020 at 3:01 PM To: artoolkitx/artoolkitx artoolkitx@noreply.github.com Cc: Thorsten Bux thorsten.bux@outlook.com, Comment comment@noreply.github.com Subject: Re: [artoolkitx/artoolkitx] How to compile the webassembly of artoolkitx? (#113) build.sh --dev Would you like to init/update the submodule (recommended) y/n: y Cloning into '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx'... Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:webarkit/artoolkitX_em_2d.git' into submodule path '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx' failed Failed to clone 'Source/extras/artoolkitx'. Retry scheduled Cloning into '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx'... git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:webarkit/artoolkitX_em_2d.git' into submodule path '/Users/wuzhaoyang1/work/3rdParty/webarkit_artoolkitx/Source/extras/artoolkitx' failed Failed to clone 'Source/extras/artoolkitx' a second time, aborting — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you, I compile succeed.

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

2 participants