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

Ubuntu 18.04.03 - Building SDL2 fails #914

Closed
PJaros opened this issue Aug 25, 2019 · 2 comments
Closed

Ubuntu 18.04.03 - Building SDL2 fails #914

PJaros opened this issue Aug 25, 2019 · 2 comments

Comments

@PJaros
Copy link

PJaros commented Aug 25, 2019

According to https://github.com/nesbox/TIC-80/wiki/build-instructions I should be able compile this with the instructions:

sudo apt-get install git 
git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
cmake .
make

But I fail at cmake .

Here is what I habve in the console. I've also attached the generated log file

madmike@desktop:~/git$ git clone --recursive https://github.com/nesbox/TIC-80
Klone nach 'TIC-80' ...
remote: Enumerating objects: 101, done.
remote: Counting objects: 100% (101/101), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 6099 (delta 30), reused 68 (delta 15), pack-reused 5998
Empfange Objekte: 100% (6099/6099), 117.43 MiB | 32.95 MiB/s, Fertig.
Löse Unterschiede auf: 100% (4092/4092), Fertig.
Submodul '3rd-party' (https://github.com/nesbox/3rd-party.git) für Pfad '3rd-party' in die Konfiguration eingetragen.
Klone nach '/home/madmike/git/TIC-80/3rd-party' ...
remote: Enumerating objects: 282, done.        
remote: Counting objects: 100% (282/282), done.        
remote: Compressing objects: 100% (257/257), done.        
remote: Total 7466 (delta 35), reused 264 (delta 25), pack-reused 7184        
Empfange Objekte: 100% (7466/7466), 51.61 MiB | 18.54 MiB/s, Fertig.
Löse Unterschiede auf: 100% (2804/2804), Fertig.
Submodul-Pfad: '3rd-party': '62c418b272da3104df4a04a5a280311892d62df5' ausgecheckt
Submodul 'duktape' (https://github.com/svaarala/duktape-releases.git) für Pfad '3rd-party/duktape' in die Konfiguration eingetragen.
Submodul 'sdl2' (https://github.com/SDL-mirror/SDL.git) für Pfad '3rd-party/sdl2' in die Konfiguration eingetragen.
Submodul 'sokol' (https://github.com/floooh/sokol.git) für Pfad '3rd-party/sokol' in die Konfiguration eingetragen.
Submodul 'squirrel' (https://github.com/albertodemichelis/squirrel.git) für Pfad '3rd-party/squirrel' in die Konfiguration eingetragen.
Submodul 'wren' (https://github.com/wren-lang/wren.git) für Pfad '3rd-party/wren' in die Konfiguration eingetragen.
Klone nach '/home/madmike/git/TIC-80/3rd-party/duktape' ...
remote: Enumerating objects: 3949, done.        
remote: Total 3949 (delta 0), reused 0 (delta 0), pack-reused 3949        
Empfange Objekte: 100% (3949/3949), 51.46 MiB | 27.12 MiB/s, Fertig.
Löse Unterschiede auf: 100% (2674/2674), Fertig.
Klone nach '/home/madmike/git/TIC-80/3rd-party/sdl2' ...
remote: Enumerating objects: 54, done.        
remote: Counting objects: 100% (54/54), done.        
remote: Compressing objects: 100% (32/32), done.        
remote: Total 112832 (delta 27), reused 37 (delta 21), pack-reused 112778        
Empfange Objekte: 100% (112832/112832), 125.90 MiB | 31.27 MiB/s, Fertig.
Löse Unterschiede auf: 100% (63977/63977), Fertig.
Klone nach '/home/madmike/git/TIC-80/3rd-party/sokol' ...
remote: Enumerating objects: 143, done.        
remote: Counting objects: 100% (143/143), done.        
remote: Compressing objects: 100% (90/90), done.        
remote: Total 2962 (delta 91), reused 101 (delta 53), pack-reused 2819        
Empfange Objekte: 100% (2962/2962), 2.12 MiB | 4.58 MiB/s, Fertig.
Löse Unterschiede auf: 100% (1976/1976), Fertig.
Klone nach '/home/madmike/git/TIC-80/3rd-party/squirrel' ...
remote: Enumerating objects: 45, done.        
remote: Counting objects: 100% (45/45), done.        
remote: Compressing objects: 100% (36/36), done.        
remote: Total 1429 (delta 20), reused 15 (delta 9), pack-reused 1384        
Empfange Objekte: 100% (1429/1429), 1019.73 KiB | 2.10 MiB/s, Fertig.
Löse Unterschiede auf: 100% (944/944), Fertig.
Klone nach '/home/madmike/git/TIC-80/3rd-party/wren' ...
remote: Enumerating objects: 37, done.        
remote: Counting objects: 100% (37/37), done.        
remote: Compressing objects: 100% (33/33), done.        
remote: Total 16198 (delta 9), reused 14 (delta 4), pack-reused 16161        
Empfange Objekte: 100% (16198/16198), 6.35 MiB | 8.74 MiB/s, Fertig.
Löse Unterschiede auf: 100% (10864/10864), Fertig.
Submodul-Pfad: '3rd-party/duktape': 'a4b0358f26bfb02a314db048e036f69c7250504f' ausgecheckt
Submodul-Pfad: '3rd-party/sdl2': 'c7b8b49ef8691ac85ad18298468f7e4a616290ed' ausgecheckt
Submodul-Pfad: '3rd-party/sokol': '487822d82ca79dba7b67718d962e1ba6beef01b2' ausgecheckt
Submodul-Pfad: '3rd-party/squirrel': '780e9c96b34d24d347c90756efa96f2927fcb641' ausgecheckt
Submodul-Pfad: '3rd-party/wren': 'd1a0d0682ac072fa20f2dcca356dac06565e93a1' ausgecheckt
madmike@desktop:~/git$ cd TIC-80/
madmike@desktop:~/git/TIC-80$ ls
3rd-party     bin    build_demos.sh  CODE_OF_CONDUCT.md  demos              docs      include  README.md  tools
appveyor.yml  build  CMakeLists.txt  config.tic          Dockerfile.dapper  examples  LICENSE  src
madmike@desktop:~/git/TIC-80$ cmake .
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.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
Building for target : Linux
CMake Error at 3rd-party/sdl2/CMakeLists.txt:2 (message):
  Prevented in-tree built.  Please create a build directory outside of the
  SDL source code and call cmake from there


-- Configuring incomplete, errors occurred!
See also "/home/madmike/git/TIC-80/CMakeFiles/CMakeOutput.log".

CMakeOutput.log

@msx80
Copy link
Contributor

msx80 commented Aug 25, 2019

I think those instructions are outdated, try the one on the main readme https://github.com/nesbox/TIC-80/blob/master/README.md

(basically it's just building from the "build" directory)

nesbox added a commit that referenced this issue Sep 27, 2019
@nesbox
Copy link
Owner

nesbox commented Sep 27, 2019

yes, SDL2 requires you be in a subfolder to generate makefile
updated build instructions
thanks

@nesbox nesbox closed this as completed Sep 27, 2019
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

3 participants