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

scons fails with OSError: 'pkg-config glu --cflags --libs' exited 1 #684

Open
kungfooman opened this issue Dec 19, 2022 · 1 comment
Open

Comments

@kungfooman
Copy link

I just type scons and this error message shows:

scons: Reading SConscript files ...
pushing a default config
saving updated configuration
emit build rules
emit configuration: config: target=['radiant', 'q3map2', 'q3data', 'setup'] config=['release']
parse /home/kung/GtkRadiant/libs/synapse/synapse.vcxproj
1 source files
parse /home/kung/GtkRadiant/libs/cmdlib/cmdlib.vcxproj
1 source files
parse /home/kung/GtkRadiant/libs/mathlib/mathlib.vcxproj
4 source files
parse /home/kung/GtkRadiant/libs/l_net/l_net.vcxproj
2 source files
Package opengl was not found in the pkg-config search path.
Perhaps you should add the directory containing `opengl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opengl', required by 'glu', not found
OSError: 'pkg-config glu --cflags --libs' exited 1:
  File "/home/kung/GtkRadiant/SConstruct", line 70:
    c.emit()
  File "/home/kung/GtkRadiant/config.py", line 213:
    self.emit_radiant()
  File "/home/kung/GtkRadiant/config.py", line 104:
    radiant = SConscript( os.path.join( build_dir, 'SConscript.radiant' ) )
  File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 661:
    return method(*args, **kw)
  File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/kung/GtkRadiant/SConscript.radiant", line 12:
    settings.SetupEnvironment( env, config[ 'name' ], useGtk = True, useGtkGL = True )
  File "/home/kung/GtkRadiant/config.py", line 247:
    env.ParseConfig( 'pkg-config glu --cflags --libs' )
  File "/usr/lib/python3/dist-packages/SCons/Environment.py", line 1612:
    return function(self, self.backtick(command))
  File "/usr/lib/python3/dist-packages/SCons/Environment.py", line 599:
    raise OSError("'%s' exited %d" % (command, status))

Any ideas how to fix it?

@kungfooman
Copy link
Author

OS:

cat /etc/linuxmint/info 
RELEASE=21
CODENAME=vanessa
EDITION="Cinnamon"
DESCRIPTION="Linux Mint 21 Vanessa"

Fixed it using apt install libglvnd-dev. Should this be part of "How to build" @TTimo?

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

1 participant