I'm trying to build the current alpha so I can try to build
There Will Be Text so I can try out the
GemSet graphics pack and currently striking out. I usually play on OS X and Windows, but I'm building on an Ubuntu 18.04 VPS because I'm more comfortable with Linux development. Maybe this is barking up the wrong tree and I should just try to build on Windows or OS X (though I'd rather not OS X since I only have a dinky Air for building anything). When I run
cmake .. -G Ninja -DCMAKE_BUILD_TYPE:string=Release -DCMAKE_INSTALL_PREFIX=/home/changemewtf/df_linux, cmake fails complaining that CMakeLists.txt doesn't exist in various places, and the error log has the following:
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/changemewtf/dfhack/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_57f82"
[1/2] Building C object CMakeFiles/cmTC_57f82.dir/CheckSymbolExists.c.o
[2/2] Linking C executable cmTC_57f82
FAILED: cmTC_57f82
: && /usr/bin/cc -fvisibility=hidden -mtune=generic -m64 -mno-avx -rdynamic CMakeFiles/cmTC_57f82.dir/CheckSymbolExists.c.o -o cmTC_57f82 && :
CMakeFiles/cmTC_57f82.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
File /home/changemewtf/dfhack/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
I see from the
DFHack docs pthread is specifically mentioned, and I made sure to compile the latest stable version of cmake from source. But I still got the pthread errors.
Not sure if this would be better off as a GitHub issue; like I said, I'm not even sure if it's supposed to be able to build on a headless Ubuntu installation, so I might try building on Windows later, though the idea of tracking down all those dependencies by hand or becoming an overnight chocolatey expert is not very appealing...
Edit: Just found
/u/clinodev's comments on Reddit indicating they might have a successful build running for Windows already... I'll update as I go!