ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

Unsupported target processor: AMD64

Open ScSofts opened this issue 4 years ago • 4 comments

I'm working on a project which use ChakraCore as a library with cmake. However, an error occurred.

Platform: Windows + Microsoft Visual Studio 2017 + CMake.

Code:

add_subdirectory(chakra-core)
include_directories(chakra-core/lib/)
include_directories(chakra-core/lib/Jsrt)
include_directories(chakra-core/lib/Runtime)

CommandLine:

F:\Repos\Tode\build>d:\sdk\cmake-3.14.0-win32-x86\bin\cmake .
CMake Error at core/engine/chakra-core/CMakeLists.txt:63 (message):
  Unsupported target processor: AMD64


-- Configuring incomplete, errors occurred!
See also "F:/Repos/Tode/build/CMakeFiles/CMakeOutput.log".

```

ScSofts avatar Nov 17 '21 14:11 ScSofts

When I changed to Linux, the error had disappeared.

ScSofts avatar Nov 17 '21 14:11 ScSofts

ChakraCore uses VisualStudio directly on Windows, solution file is Build\Chakra.Core.sln. Also see Building ChakraCore in Readme.

Enabling CMake builds on Windows is something of interest though.

ppenzin avatar Nov 19 '21 05:11 ppenzin

ChakraCore uses VisualStudio directly on Windows, solution file is Build\Chakra.Core.sln. Also see Building ChakraCore in Readme.

Enabling CMake builds on Windows is something of interest though.

Thank you. I have found solution in https://github.com/microsoft/Chakra-Samples/blob/master/ChakraCore%20Samples/Hello%20World/CMake/CMakeLists.txt

ScSofts avatar Nov 19 '21 14:11 ScSofts

Currently the CMake setup is intended for Linux and macOS (and it works on those platforms); if you'd like to make it work on windows we would accept a pull request for that.

The visual studio solution file works on windows - the available cmake files are not (currently) tested on windows.

rhuanjl avatar Dec 11 '21 16:12 rhuanjl