首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在坞内运行过剩应用程序而没有FBConfig错误?

如何在坞内运行过剩应用程序而没有FBConfig错误?
EN

Stack Overflow用户
提问于 2020-08-08 23:45:20
回答 1查看 461关注 0票数 0

所以,我需要在Ubuntu上开发和运行一个特定的gui应用程序。应用程序基于OpenGLfreeglut。我想从macbook开发,所以我尝试使用vs代码远程容器特性。它运行良好,直到我需要运行这个应用程序。我在容器中安装了许多不同的gl包,并使用x夸脱等运行它。

现在我遇到了过剩的问题:freeglut (my_app): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow。正如我所发现的there,它是一个已知的有过剩和远程连接的bug。2009年就知道了!有谁知道怎么摆脱它吗?还是我永远不会在docker里面运行我的应用?

我现在的Dockerfile:

代码语言:javascript
复制
FROM nvidia/cudagl:9.0-devel-ubuntu16.04

# This Dockerfile's base image has a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=user

ENV DEBIAN_FRONTEND noninteractive

# Adding new architecture in package base
RUN dpkg --add-architecture i386

# Installg tools
RUN apt-get update \
    && apt-get -y install sudo software-properties-common zsh wget

# Installing latest git
RUN add-apt-repository ppa:git-core/ppa \
    && apt-get update \
    && apt-get -y install git

# Install C++ tools
RUN apt-get -y install build-essential gcc-multilib g++-multilib cmake cppcheck valgrind

# Install some dependencies
RUN apt-get -y install libc6-dev-i386 libgl1-mesa-dev libglu1-mesa-dev freeglut3 freeglut3-dev libjpeg-turbo8-dev libpng12-dev mesa-utils

# Install dependencies with another architecture
RUN apt-get -y install libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 freeglut3:i386 freeglut3-dev:i386 libpng12-0:i386

# Install nvidia driver
RUN apt-get install -y binutils xserver-xorg-video-all

# Adding new user
RUN groupadd --gid 2000 $USERNAME \
    && useradd --uid 2000 --gid $USERNAME --shell /bin/zsh --create-home $USERNAME \
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME

# Clean up
RUN apt-get autoremove -y \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

USER $USERNAME

ENV DEBIAN_FRONTEND interactive
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-09 15:43:18

我不知道怎么做,但现在起作用了!我试着用了这么多东西,所以我不知道到底是什么帮助了我。所以我试着告诉所有的事情:

  1. 码头基地形象成为Ubuntu14.04。我以前已经试过了,但是没有用。
  2. --我已经把XQuartz降级为2.7.8版
  3. --我把它粘贴在终端:

以防万一,这里是我的新Dockerfile:

代码语言:javascript
复制
FROM ubuntu:14.04

# This Dockerfile's base image has a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=user

ENV DEBIAN_FRONTEND noninteractive

# Adding new architecture in package base
RUN dpkg --add-architecture i386

# Install tools
RUN apt-get update \
    && apt-get -y install sudo software-properties-common zsh wget

# Install last git
RUN add-apt-repository ppa:git-core/ppa \
    && apt-get update \
    && apt-get -y install git

# Install C++ tools
RUN apt-get -y install build-essential gcc-multilib g++-multilib cmake cppcheck valgrind

# Install some dependencies
RUN apt-get -y install libc6-dev-i386 libgl1-mesa-dev libglu1-mesa-dev freeglut3 freeglut3-dev libjpeg-turbo8-dev libpng12-dev mesa-utils

# Install dependencies with another architecture
RUN apt-get -y install libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 freeglut3:i386 freeglut3-dev:i386 libpng12-0:i386

# Install nvidia driver
RUN apt-get install -y binutils xserver-xorg-video-all

# Adding new user
RUN groupadd --gid 2000 $USERNAME \
    && useradd --uid 2000 --gid $USERNAME --shell /bin/zsh --create-home $USERNAME \
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME

# Clean up
RUN apt-get autoremove -y \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

USER $USERNAME

ENV DEBIAN_FRONTEND interactive
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63321205

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档