emscripten-core / emscripten-core/emscripten
behave normally when use cmake and make, make an error when use emcmake and emmake
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
**Version**
emcc version 2.0.29
clang version 14.0.0
**emcmake**
emcmake cmake ..
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Success
-- Found Iconv: /Users/carrollwang/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/libc.a
CMake Warning (dev) at CMakeLists.txt:163 (add_library):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
to problems.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carrollwang/Desktop/WASM/test2/qqseg/build
**cmake**
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Failed
-- Found Iconv: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/lib/libiconv.tbd
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carrollwang/Desktop/WASM/test2/qqseg/build
**emmake**
make[2]: *** [CMakeFiles/other-objs.dir/thirdparty/log.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/qqseg-objs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/other-objs.dir/all] Error 2
make: *** [all] Error 2
**make**
success
Contributor guide
Assessment
This issue has not been assessed yet.