import os
env=Environment()
env.PrependENVPath("PATH", os.getenv("PATH"))
env.PrependENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH"))
env.ParseConfig('pkg-config --cflags --libs sfml-all')
env.Program('project', Glob('src/*.cpp'), LIBS = ['sfml-window', 'sfml-system', 'sfml-graphics'])
scons: Reading SConscript files ...
Package sfml-all was not found in the pkg-config search path.
Perhaps you should add the directory containing `sfml-all.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sfml-all' found
OSError: 'pkg-config --cflags --libs sfml-all' exited 1:
File "/home/hertog/Projects/C-lang/V_For_Vector/SConstruct", line 6:
env.ParseConfig('pkg-config --cflags --libs sfml-all')
File "/nix/store/nbcmcfp74924axc8898cf8yc2q5j38jp-scons-4.7.0/lib/python3.12/site-packages/SCons/Environment.py", line 1773:
return function(self, self.backtick(command), unique)
File "/nix/store/nbcmcfp74924axc8898cf8yc2q5j38jp-scons-4.7.0/lib/python3.12/site-packages/SCons/Environment.py", line 806:
raise OSError(f'{command!r} exited {cp.returncode}')
/nix/store/hgw57m0jh2w10jsv8x86ng267pm5sla8-gcc-wrapper-13.3.0/bin/g++
niet-bestaande map "/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/../../../../x86_64-unknown-linux-gnu/include" wordt genegeerd
Zoektocht voor #include "..." begint hier:
Zoektocht voor #include <...> begint hier:
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0/
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0//x86_64-unknown-linux-gnu
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0//backward
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include
/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed
/nix/store/932dj5qwfzck90mnvqpd1f9hjqznaqdj-glibc-2.40-36-dev/include
Einde van opzoekingslijst.
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/game.o -c src/game.cpp
src/game.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory
1 | #include <SFML/Graphics.hpp>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [src/game.o] Error 1
scons: building terminated because of errors.-frandom-seed=lxzf700k52 -isystem /nix/store/6gfnx12avg78svzvpxd8dnhhaaxxzy49-sfml-2.5.1/include -isystem /nix/store/901c80rlps5q05bnjk1sj4zaz5k736nc-python3-3.12.7/include -isystem /nix/store/6gfnx12avg78svzvpxd8dnhhaaxxzy49-sfml-2.5.1/include -isystem /nix/store/901c80rlps5q05bnjk1sj4zaz5k736nc-python3-3.12.7/include{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
# Flake outputs
outputs = { self, nixpkgs, ... }:
let
allSystems = [
"x86_64-linux" # 64-bit Intel/AMD Linux
"aarch64-linux" # 64-bit ARM Linux
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
# Development environment output
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
skim
ripgrep
onefetch
sfml
scons
];
shellHook = ''
onefetch
'';
};
});
};
}