NPAPI는 컴파일 된 바이너리를 거의 100 % 사용하기 때문에 모든 플랫폼에 대한 코드를 동시에 포함하는 플러그인을 작성하는 것이 바람직하므로 크로스 컴파일이 NPAPI 빌드 시스템의 우선 순위 기능이되는 것이 좋습니다 뼈대. 그러나 나는 맥 OS X에서 firebreath 대상 창을 크로스 컴파일 할 때 내가 얻을 :firebreath 대상 창 교차 컴파일
$ bash firebreath/prepmake.sh Codebendercc/ build.win -DCMAKE_TOOLCHAIN_FILE=$HOME/Toolchain-mingw32.cmake
Using projects in: /path/to/project/root/Codebendercc
Generating build files in: /path/to/project/root/build.win
NOTE: The build files in /path/to/project/root/build.win should *NEVER* be modified directly. Make changes in cmake and re-run this script.
/path/to/root/build.win /path/to/root
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/local/mingw/bin/i686-w64-mingw32-gcc
-- Check for working C compiler: /usr/local/mingw/bin/i686-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/mingw/bin/i686-w64-mingw32-g++
-- Check for working CXX compiler: /usr/local/mingw/bin/i686-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
!! Could not find VS DIR!
-- Visual Studio dir:
CMake Error at cmake/Win.cmake:126 (message):
FireBreath on windows requires ATL/MFC libs to be installed. Please
download the Microsoft DDK and install the build environments in \WinDDK
Call Stack (most recent call first):
cmake/common.cmake:31 (include)
CMakeLists.txt:41 (include)
-- Configuring incomplete, errors occurred!
See also "/path/to/project/root/build.win/CMakeFiles/CMakeOutput.log".
$HOME/Toolchain-mingw32.cmake
파일이 포함되어 그것을 우회하는 방법이
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER /usr/local/mingw/bin/i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/mingw/bin/i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER /usr/local/mingw/bin/i686-w64-mingw32-windres)
SET(CMAKE_AR /usr/local/mingw/bin/i686-w64-mingw32-ar CACHE FILEPATH "Archiver")
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/local/mingw)
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
있습니까?
MFC 라이브러리를 가져 오는 것은 Visual C++의 무료 Express 버전에서도 어려운 작업입니다 ... https://stackoverflow.com/questions/5543523/afxwin-h-file-is-missing-in-vc-express-edition/ 18976046 # 18976046 행운을 빌어 요! – Melebius