Does not build on a machine without Solarus already installed
Quest Editor output (from
Building quest-editor cmake /home/alex/Projects/solarus-snap/parts/quest-editor/src -DCMAKE_INSTALL_PREFIX= -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- 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/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find SOLARUS (missing: SOLARUS_INCLUDE_DIR) -- Could NOT find SOLARUS_GUI (missing: SOLARUS_GUI_INCLUDE_DIR) -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread -- Found SDL2_image: /usr/include/SDL2 (found version "2.0.1") -- Found SDL2_ttf: /usr/include/SDL2 (found version "2.0.14") -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so -- Found VORBISFILE: /usr/include/vorbis -- Found OGG: /usr/include/ogg -- Found MODPLUG: /usr/include/libmodplug -- Found PhysFS: /usr/lib/x86_64-linux-gnu/libphysfs.so -- Found LuaJit: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so;/usr/lib/x86_64-linux-gnu/libm.so CMake Error at CMakeLists.txt:79 (include_directories): include_directories given empty-string as include directory. -- Configuring incomplete, errors occurred! See also "/home/alex/Projects/solarus-snap/parts/quest-editor/build/CMakeFiles/CMakeOutput.log". See also "/home/alex/Projects/solarus-snap/parts/quest-editor/build/CMakeFiles/CMakeError.log". Failed to run 'cmake /home/alex/Projects/solarus-snap/parts/quest-editor/src -DCMAKE_INSTALL_PREFIX=' for 'quest-editor': Exited with code 1. Verify that the part is using the correct parameters and try again.
It turns out Snap is kind of like AppImage in the sense that it builds on your system rather than a base image (although we can and should use Docker for that.
I assumed it was all magically building, but in fact the Quest Editor relied on my system install of 1.6 (which I'd compiled earlier and run
sudo make install). After removing that, it failed. We need to tell the Quest Editor where Solarus shared library objects are before it's built.