Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649242 - games-util/antimicro-2.20.2 : /.../SDL_config.h:33:26: fatal error: SDL_platform.h: No such file or directory
Summary: games-util/antimicro-2.20.2 : /.../SDL_config.h:33:26: fatal error: SDL_platf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
: 664608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-01 16:42 UTC by Toralf Förster
Modified: 2021-04-05 23:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.07 KB, text/plain)
2018-03-01 16:42 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,220.17 KB, text/plain)
2018-03-01 16:42 UTC, Toralf Förster
Details
environment (environment,112.94 KB, text/plain)
2018-03-01 16:42 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.60 KB, application/x-bzip)
2018-03-01 16:42 UTC, Toralf Förster
Details
games-util:antimicro-2.20.2:20180301-141123.log (games-util:antimicro-2.20.2:20180301-141123.log,31.16 KB, text/plain)
2018-03-01 16:42 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.88 KB, application/x-bzip)
2018-03-01 16:42 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,29.73 KB, application/x-bzip)
2018-03-01 16:42 UTC, Toralf Förster
Details
Patch CMakeLists.txt to include SDL2 directories (add_sdl_includes_patch.txt,331 bytes, patch)
2018-09-05 04:18 UTC, TB
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-03-01 16:42:35 UTC
                 from /var/tmp/portage/games-util/antimicro-2.20.2/work/antimicro-2.20.2/src/inputdevice.h:28,
                 from /var/tmp/portage/games-util/antimicro-2.20.2/work/antimicro-2.20.2/src/main.cpp:49:
/usr/include/x86_64-pc-linux-gnu/SDL2/SDL_config.h:33:26: fatal error: SDL_platform.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/antimicro.dir/build.make:155: CMakeFiles/antimicro.dir/src/main.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/games-util/antimicro-2.20.2/work/antimicro-2.20.2_build'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_20180224-093310

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
2)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
  [2]   jamvm 

emerge -qpv games-util/antimicro
[ebuild  N    ] games-util/antimicro-2.20.2
Comment 1 Toralf Förster gentoo-dev 2018-03-01 16:42:38 UTC
Created attachment 521700 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-01 16:42:41 UTC
Created attachment 521702 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-03-01 16:42:44 UTC
Created attachment 521704 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-03-01 16:42:47 UTC
Created attachment 521706 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-03-01 16:42:51 UTC
Created attachment 521708 [details]
games-util:antimicro-2.20.2:20180301-141123.log
Comment 6 Toralf Förster gentoo-dev 2018-03-01 16:42:54 UTC
Created attachment 521710 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-03-01 16:42:57 UTC
Created attachment 521712 [details]
temp.tbz2
Comment 8 Andreas Sturmlechner gentoo-dev 2018-08-28 19:30:04 UTC
*** Bug 664608 has been marked as a duplicate of this bug. ***
Comment 9 TB 2018-09-05 04:18:13 UTC
Created attachment 545952 [details, diff]
Patch CMakeLists.txt to include SDL2 directories

Hi, I'm new here :-D

I just tried installing antimicro-2.23 and got the same error, but I was able to fix it by patching the main CMakeLists.txt file.

The issue seems to be the same as some other reported bugs (e.g. bug 634470), where the SDL include directories aren't added to the build process.

I've attached a patch that fixed this issue for me, who's using SDL2.

I'll try to put up a pull request at the AntiMicro github soon, since the problem isn't ultimately gentoo-specific.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-05 23:16:54 UTC
(In reply to TB from comment #9)
> Created attachment 545952 [details, diff] [details, diff]
> Patch CMakeLists.txt to include SDL2 directories
> 

> I've attached a patch that fixed this issue for me, who's using SDL2.
> 
> I'll try to put up a pull request at the AntiMicro github soon, since the
> problem isn't ultimately gentoo-specific.

Hey, did that ever happen? :)
Comment 11 Larry the Git Cow gentoo-dev 2021-04-05 23:24:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44408c23a81c88f99ab2ea6a94bae01f1a3e2f19

commit 44408c23a81c88f99ab2ea6a94bae01f1a3e2f19
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-05 23:23:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-05 23:24:34 +0000

    games-util/antimicro: include SDL 2 patch
    
    Not clear why this doesn't happen for me, but it happened
    for toralf and a user, which is good enough. Patch is
    straightforward.
    
    Thanks-to: Tim Barnes <tim.barnes@gmail.com>
    Closes: https://bugs.gentoo.org/649242
    Signed-off-by: Sam James <sam@gentoo.org>

 games-util/antimicro/antimicro-2.23.ebuild                   |  1 +
 games-util/antimicro/files/antimicro-2.23-SDL2-include.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)