Closed arrowgent closed 4 years ago
Did you download the SDL2 source and place it in a folder where the compiler can find it?
Maybe perform the steps that the build bot does when setting up the env and compiling: https://github.com/diasurgical/devilutionX/blob/master/.circleci/config.yml#L62
Did you download the SDL2 source and place it in a folder where the compiler can find it?
-- Found sodium: /usr/i686-w64-mingw32/lib/libsodium.a (found version "1.0.18")
-- Found SDL2_ttf: /usr/i686-w64-mingw32/bin/SDL2_ttf.dll
-- Found SDL2: /usr/i686-w64-mingw32/bin/SDL2.dll
-- Found SDL2_mixer: /usr/i686-w64-mingw32/bin/SDL2_mixer.dll
Maybe perform the steps that the build bot does when setting up the env and compiling: https://github.com/diasurgical/devilutionX/blob/master/.circleci/config.yml#L62
same issue
Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
seems to be what is failing, researching how to fix this ?? no idea
however, versions your nightly pulls are different from the latest versions
SDL2-devel-2.0.9-mingw.tar.gz vs SDL2-devel-2.0.12-mingw.tar.gz
and
libsodium-1.0.17-mingw.tar.gz vs libsodium-1.0.18-mingw.tar.gz
i will download those versions...
confirmed
versions your nightly pulls are different from the latest versions
SDL2-devel-2.0.9-mingw.tar.gz vs SDL2-devel-2.0.12-mingw.tar.gz
and
libsodium-1.0.17-mingw.tar.gz vs libsodium-1.0.18-mingw.tar.gz
new issue:
[100%] Linking CXX executable devilutionx.exe
/usr/i686-w64-mingw32/lib/libSDL2main.a(SDL_windows_main.o): In function `main_getcmdline':
/Users/valve/release/SDL/SDL2-2.0.9-source/foo-x86/../src/main/windows/SDL_windows_main.c:172: undefined reference to `SDL_SetMainReady'
collect2: error: ld returned 1 exit status
CMakeFiles/devilutionx.dir/build.make:888: recipe for target 'devilutionx.exe' failed
make[2]: *** [devilutionx.exe] Error 1
CMakeFiles/Makefile2:241: recipe for target 'CMakeFiles/devilutionx.dir/all' failed
make[1]: *** [CMakeFiles/devilutionx.dir/all] Error 2
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2
CmakeLists.txt move SDL2main before other libraries instead of the end
target_link_libraries(${target} PRIVATE
SDL2::SDL2main
SDL2::SDL2_ttf
SDL2::SDL2_mixer)
[100%] Linking CXX executable devilutionx.exe [100%] Built target devilutionx
I'm not sure if you figured out the issue on your end, but if there are changes required please send a PR. You are also welcome to update the library versions that it fetches. However, we aren't using any featuers from the latest versions and they are forwards compatible.
sorry, im new to doing github work. i am learning
thanks for your help
I'm not sure if you figured out the issue on your end, but if there are changes required please send a PR. You are also welcome to update the library versions that it fetches. However, we aren't using any featuers from the latest versions and they are forwards compatible.
yes, it compiled correctly and runs on windows flawlessly.
thanks
ubuntu 18.04 x64 attempting to compile win32
cmake version 3.10.2 GNU Make 4.1
error:
CMakeFiles/devilutionx.dir/build.make:1417
CMakeFiles/Makefile2:256
CMakeError.log
compile for linux version completes fine