Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Build broken #1

Open
ebachard opened this issue Sep 3, 2017 · 1 comment
Open

[Linux] Build broken #1

ebachard opened this issue Sep 3, 2017 · 1 comment

Comments

@ebachard
Copy link

ebachard commented Sep 3, 2017

Hi,

First, thanks a lot for sharing your code, really appreciated. I was curious to understand how you integrated the images in the view, and I wanted to test your software on Linux. But something seems to be broken.

Thanks in advance if you could tell me what I did wrongly, and apologies if I missed something important.

Please see the logs below:

  • I read carefully the README, and installed all the dependencies (if I'm not wrong).
  • second, I did:
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release -DUSE_SDL2_MIXER=TRUE -DSDL2_MIXER_INCLUDE_DIR=/usr/include/SDL2 ..

N.B. : the path is hidden, to simplify the presentation (long path)

The cmake log (looks normal):
-- 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
-- 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 Bgfx Library: optimized;$HOME/$LOGIN//termite/deps/bgfx/lib/libbgfxRelease.so;debug;
/$HOME/$LOGIN/
/termite/deps/bgfx/lib/libbgfxDebug.so
-- Found libuv library: /usr/lib/x86_64-linux-gnu/libuv.so
-- Found SDL2 library: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread
-- Found Curl Library: /usr/lib/x86_64-linux-gnu/libcurl.so
-- Found Assimp library: /usr/lib/x86_64-linux-gnu/libassimp.so
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Warning at source/termite/CMakeLists.txt:96 (message):
Using -lgcc -lgcc_s workaround for gcc bug

-- Configuring done
-- Generating done
-- Build files have been written to: $HOME/$LOGIN/***/termite/build

Now the compilation:

''
make
Scanning dependencies of target fcontext
[ 0%] Building CXX object deps/deboost.context/CMakeFiles/fcontext.dir/source/stack.cpp.o
[ 1%] Building ASM object deps/deboost.context/CMakeFiles/fcontext.dir/asm/make_x86_64_sysv_elf_gas.S.o
[ 2%] Building ASM object deps/deboost.context/CMakeFiles/fcontext.dir/asm/jump_x86_64_sysv_elf_gas.S.o
[ 2%] Building ASM object deps/deboost.context/CMakeFiles/fcontext.dir/asm/ontop_x86_64_sysv_elf_gas.S.o
[ 3%] Linking CXX static library libfcontext.a
[ 3%] Built target fcontext
Scanning dependencies of target nanovg
[ 4%] Building CXX object deps/nvg/CMakeFiles/nanovg.dir/nanovg_bgfx.cpp.o
[ 5%] Building CXX object deps/nvg/CMakeFiles/nanovg.dir/nanovg.cpp.o
[ 5%] Linking CXX static library libnanovg.a
[ 6%] Built target nanovg
Scanning dependencies of target remotery
[ 7%] Building C object deps/remotery/CMakeFiles/remotery.dir/lib/Remotery.c.o
[ 7%] Linking C static library libremotery.a
[ 7%] Built target remotery
Scanning dependencies of target AHEasing
[ 7%] Building C object deps/AHEasing/CMakeFiles/AHEasing.dir/AHEasing/easing.c.o
[ 8%] Linking C static library libAHEasing.a
[ 8%] Built target AHEasing
Scanning dependencies of target utf8
[ 9%] Building C object deps/utf8/CMakeFiles/utf8.dir/utf8.c.o
[ 10%] Linking C static library libutf8.a
[ 10%] Built target utf8
Scanning dependencies of target tiny-AES128-C
[ 11%] Building C object deps/tiny-AES128-C/CMakeFiles/tiny-AES128-C.dir/aes.c.o
[ 11%] Linking C static library libtiny-AES128-C.a
[ 11%] Built target tiny-AES128-C
Scanning dependencies of target lz4
[ 11%] Building C object deps/lz4/CMakeFiles/lz4.dir/lz4.c.o
[ 12%] Building C object deps/lz4/CMakeFiles/lz4.dir/xxhash.c.o
[ 13%] Linking C static library liblz4.a
[ 13%] Built target lz4
Scanning dependencies of target restclient-cpp
[ 14%] Building CXX object deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/source/connection.cc.o
In file included from $HOME/$LOGIN//termite/deps/restclient-cpp/include/restclient-cpp/connection.h:17:0,
from $HOME/$LOGIN/
/termite/deps/restclient-cpp/source/connection.cc:7:
$HOME/$LOGIN/***/termite/deps/restclient-cpp/include/restclient-cpp/restclient.h:16:36: fatal error: restclient-cpp/version.h: Aucun fichier ou dossier de ce type
compilation terminated.
deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/build.make:62 : la recette pour la cible « deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/source/connection.cc.o » a échouée
make[2]: *** [deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/source/connection.cc.o] Erreur 1
CMakeFiles/Makefile2:506 : la recette pour la cible « deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/all » a échouée
make[1]: *** [deps/restclient-cpp/CMakeFiles/restclient-cpp.dir/all] Erreur 2
Makefile:127 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

''

@septag
Copy link
Owner

septag commented Sep 28, 2017

sorry I was busy with my game ...
yeah I know about the build issues on linux and possibly other platforms except android and windows which is currently what I'm working on. I'll try to fix them in them in a couple of days and get back to you ...

septag added a commit that referenced this issue Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants