mis08のブログ

ハマったことの備忘録

craft コンパイルエラー 解決済み

ーーーーーーーーーーーーーーーーーーーーーーーー

craft に cmake -G "MinGW MakeFiles" した時のログ

ーーーーーーーーーーーーーーーーーーーーーーーー

E:Programminecraft cpyCraft>cmake -G "MinGW Makefiles"
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- 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: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at deps/glfw/CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


-- Found OpenGL: opengl32
-- Looking for pthread.h
-- Looking for pthread.h - not found

        解決?せず!

cmake pthread.h not found ←検索!←なくても無害?

Windowsでpthread - AkiIroブログ


-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

解決 ←header.htmlが見つからないエラー(後述)バージョンが関係?

Doxygen


-- Performing Test _GLFW_HAS_DEP
-- Performing Test _GLFW_HAS_DEP - Success
-- Performing Test _GLFW_HAS_ASLR
-- Performing Test _GLFW_HAS_ASLR - Success
-- Performing Test _GLFW_HAS_64ASLR
-- Performing Test _GLFW_HAS_64ASLR - Failed
-- Using Win32 for window creation
-- Using WGL for context creation
-- Found CURL: C:/Program Files (x86)/CURL/lib/libcurl.dll.a (found version "7.60.0")
-- Configuring done
-- Generating done
-- Build files have been written to: E:/Program/minecraft cpy/Craft

 

-----------------------------------------------------------------

コマンドプロントコンパイル時のエラー

---------------------------------------------------------------------

 

解決!

crulのバージョンを32bit版に変更し、ProgramFileにぶち込んでPATHを通した

(64bitじゃダメだった?

 

E:Programminecraft cpyCraftCraft>mingw32-make
[ 14%] Built target glfw
[ 15%] Linking C executable craft.exe
CMakeFilescraft.dir/objects.a(auth.c.obj):auth.c:(.text+0xae): undefined reference to `_imp__curl_easy_init'
CMakeFilescraft.dir/objects.a(auth.c.obj):auth.c:(.text+0x11a): undefined reference to `_imp__curl_easy_setopt'
CMakeFilescraft.dir/objects.a(auth.c.obj):auth.c:(.text+0x189): undefined reference to `_imp__curl_easy_perform'
CMakeFilescraft.dir/objects.a(auth.c.obj):auth.c:(.text+0x1a4): undefined reference to `_imp__curl_easy_getinfo'
CMakeFilescraft.dir/objects.a(auth.c.obj):auth.c:(.text+0x1ad): undefined reference to `_imp__curl_easy_cleanup'
CMakeFilescraft.dir/objects.a(main.c.obj):main.c:(.text.startup+0x2a): undefined reference to `_imp__curl_global_init'
CMakeFilescraft.dir/objects.a(main.c.obj):main.c:(.text.startup+0x1975): undefined reference to `_imp__curl_global_cleanup'
collect2.exe: error: ld returned 1 exit status
CMakeFilescraft.diruild.make:343: recipe for target 'craft.exe' failed
mingw32-make[2]: *** [craft.exe] Error 1
CMakeFilesMakefile2:71: recipe for target 'CMakeFiles/craft.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/craft.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

E:Programminecraft cpyCraftCraft>

 

 

-----------------------------------------------------------------

コマンドプロントコンパイル時のエラー2

-----------------------------------------------------------------

 

100%まで実行されCraft.exeを得られるが、エラーにより起動せず

「libssl-1_1.dill が見つからないため、コードの実行を続行できません。プログラムを再インストールすると、この問題が解決する可能性があります。」

「ilbcrypto-1_1.dill が見つからないため、(以下略

 

上記のdillファイルを別でダウンロードし、Craft.exeと同じフォルダに入れることにより解決!

 

Scanning dependencies of target windows
[ 97%] Building C object deps/glfw/tests/CMakeFiles/windows.dir/windows.c.obj
[ 98%] Linking C executable windows.exe
[ 98%] Built target windows
Scanning dependencies of target docs
[100%] Generating HTML documentation
error: tag HTML_HEADER: header file `E:/Program/minecraftcpy/Craft/deps/glfw/docs/header.html' does not exist

↑ header.html については、上記の場所に存在する!

  何らかの理由で認識できない?

       64から32bit版に変更するも変化なし

https://stackoverflow.com/questions/29453833/glfw-makefile-fails-upon-generating-html-documentation-on-ubuntu

症状同じ、参考になる?←ならず

 

depsglfwdocsCMakeFilesdocs.diruild.make:56: recipe for target 'deps/glfw/docs/CMakeFiles/docs' failed
mingw32-make[2]: *** [deps/glfw/docs/CMakeFiles/docs] Error 1
CMakeFilesMakefile2:1170: recipe for target 'deps/glfw/docs/CMakeFiles/docs.dir/all' failed
mingw32-make[1]: *** [deps/glfw/docs/CMakeFiles/docs.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

E:Programminecraft cpyCraft>