User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
Admin
Private
I am tog I am studying ICT at HU..
I fucking love
godot and mango juice.

tog prefers the ways of the water and the wind

Het grote genot vind ik in het toeval.

Your views are not my own
Location
Utrecht I think
Birthday
2004-06-04
Webbed site https://hertog.hermitcollective.net
Email hertog@hermitcollective.net
Pronouns Whatever you want me to be
Signal Hertog.04
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
there was no previous @keyaura on mastodon.hermitcollective.net you all know this
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @Mae @mei very well I shall do as such
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
hinges are kinda cringe tbh?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @Mae @mei oh shit! I missed that part!
it works!

thank you so much!

This working saves me a fuck ton of trouble, do you have a kofi or the like where I can buy you a coffee?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @Mae @mei I have included that yet scons still cannot find the package.

SConstruct file:
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'])


Result:
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}')
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @Mae @mei hmm

scons complains sfml-all was not found in the pkg-config search path.

But running ``
pkg-config --cflags --libs sfml-all `` does return the right paths
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @Mae @mei ah I see

I have checked for typos like every 30 minutes for the past week this shit has me absolutely kerfuffled
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei @Mae ​:adespair:​

I'll first try the stenv thingy mabobber

(I did have scons working fine in another script (and had the same issue with cmake))

but this does give some new ideas ty both
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@fiore I shall trust you on this
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei resulted in:
/nix/store/hgw57m0jh2w10jsv8x86ng267pm5sla8-gcc-wrapper-13.3.0/bin/g++
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Sometimes I am glad I didn't get into emacs

I still think it looks very cool tho
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@Natuwu ​:mexico_pride:​
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei ah I see
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei yes! I have checked it does exist.

I assume you mean a different g++ output than the post specifies?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @mei I did:
mastodon.hermitcollective.net/notes/a0qjdid2m1mg0e0u
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ @justinas details are here:
mastodon.hermitcollective.net/notes/a0qjdid2m1mg0e0u

the command you asked returned this:

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.
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe My error log is simply this.
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.


The $NIX_CFLAGS_COMPILE variable shows:
-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


And my flake (now just with packages again is this:
{
  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
            '';
          };
      });
    };
  }
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @deivpaukst no, it is complaining about the specific header files that the dependency I added provides in /include

I'll share the flake with screenshots in a bit
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @deivpaukst I have tried this.

No positive results yet
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
I just don't know any distro that quite scratches the same itch