1.ubuntuä¸G2Oåºçå®è£
2.Ubuntu如何安装wine命令
3.ubuntu安装wine的源码时候出现不能解决依赖关系。怎么解决
4.å¦ä½å¨Linuxä¸ä½¿ç¨OpenGL+ C++å¼å
ubuntuä¸G2Oåºçå®è£
ä¸ãä»ä¹æ¯G2Oåºï¼æä»ä¹ç¨ï¼
g2o æ¯ä¸ä¸ªå¾ä¼ååºã常常å¨SLAM ä¸è¢«ä½¿ç¨ã
å¾ä¼åæ¬è´¨ä¸ä»ç¶æ¯é线æ§ä¼åãåªä¸è¿å©ç¨å¾çæ¹å¼è¡¨ç°åºæ¥ï¼ä½¿é®é¢ å¯è§å ï¼ç¶åå¯ä»¥æ ¹æ®å¯è§åçç»ææ¥æ´å¥½çè°æ´ä¼åè¿ç¨ã
å¾ æ¯ä¸ç§æ°æ®ç»æãå¨å¾ä¼åä¸ï¼ç¨ é¡¶ç¹ (vertex) 表示 ä¼ååé ï¼ç¨ è¾¹ (edge) 表示 误差项 ãäºæ¯ï¼å¯¹äºä»»æä¸ä¸ªä¸è¿°å½¢å¼çé线æ§æå°äºä¹é®é¢ï¼é½å¯ä»¥æ建ä¸ä¸ªä¸ä¹å¯¹åºçå¾ã
å¨è§è§SLAM åå讲ä¸ï¼å¸¸ç¨çå端ä¼ååºæ两个ï¼g2o åceresãceres æ¯google çä¸ä¸ªä¼ååºï¼æ档详尽ä¸å好ï¼å°±ä¸åèµè¿°äºãä½å¯¹äºg2oï¼é¤äºæºç ï¼å®æ¹ç¨doxygen çæç帮å©ææ¡£ï¼å°±åªæ论æ g2o: A general framework for graph optimization åè¿ç¯github ç ææ¡£ ã
äºãå¦ä½å®è£ G2Oåºï¼æåªäºä¾èµé¡¹ï¼å¨å®è£ å使ç¨çè¿ç¨ä¸ï¼ä¼éå°åªäºé®é¢ï¼ä»¥åå¦ä½è§£å³ï¼
1å®è£ æ¥éª¤
git clone .archive.ubuntu.com/ubuntu bionic/universe amd freeglut3 amd 2.8.1-3
connetciton failed [IP:... ]
Err:2 .archive.ubuntu.com/ubuntu bionic/universe amd freeglut3-dev amd 2.8.1-3
connetciton failed [IP:... ]
E:Failed to fetch .archive.ubuntu.com/ubuntu/pool/universe/f/freeglut/freeglut3_2.8.1-3_amd.deb connection failed [IP:... ]
E:Failed to fetch .archive.ubuntu.com/ubuntu/pool/universe/f/freeglut/freeglut3-dev_2.8.1-3_amd.deb connection failed [IP:... ]
E:Unable to fetch some archives,源码 maybe run apt-get install libglut-dev
æç» è§£å³æ¹æ¡ ï¼ æ´æ¢ sources.list é¿éæº æ¸ åéåã
apt-get update
apt-get upgrade
3å¨ä½¿ç¨g2oæ¶ï¼ç¼è¯ç¨å°äºg2oåºçprojectï¼éå°æ¥éerror: âindex_sequenceâ is not a member of 'std'
解å³æ¹æ¡ ï¼ä¿®æ¹projectçCMakeLists.txtæ·»å :set(CMAKE_CXX_STANDARD )
åèé¾æ¥ï¼
Ubuntu. æ´æ¢ sources.list é¿éæº æ¸ åéå â å°åºä»¶ (atmcu.com)
(æ¡æ¶æ¯) è§è§SLAMåå讲 æ¥é error: âindex_sequenceâ is not a member of âstdâ_CSSDCCçå客-CSDNå客
(æ¡æ¶æ¯) è§è§SLAMåå讲 æ¥é error: âindex_sequenceâ is not a member of âstdâ_CSSDCCçå客-CSDNå客
Ubuntu如何安装wine命令
方法一:Wine (“Wine Is Not an Emulator” 的首字母缩写)是一个能够在多种 POSIX-compliant 操作系统(诸如 Linux,Mac OSX 及 BSD 等)上运行 Windows 应用的源码兼容层。 Wine 不是源码怎么查看java源码像虚拟机或者模拟器一样模仿内部的 Windows 逻辑,而是源码将 Windows API 调用翻译成为动态的 POSIX 调用,免除了性能和其他一些行为的源码源码实时运行内存占用,让你能够干净地集合 Windows 应用到你的源码桌面。
下面跟大家分享如何在Ubuntu .上安装Wine
1.添加PPA
sudo add-apt-repository ppa:ubuntu-wine/ppa
2.更新列表
sudo apt-get update
3.安装Wine
sudo apt-get install wine1.7 winetricks
为了避免错误大家可以使用以下命令
sudo apt-get update
方法二:
打开终端执行一下命令,源码在安装过程中会提示你是源码否同意协议,点击Enter:
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update sudo apt-get install wine1.5
Ubuntu . 编译安装Wine 1.7
先安装依赖的源码库:
sudo apt-get install flex bison qt4-qmake
apt-get install libfreetype6-dev
apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
apt-get install libxrender-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
apt-get install prelink
apt-get install libasound2-dev
下载最新的源代码:
mands
config.status: executing dlls/gdi/dibdrv commands
config.status: executing dlls/gdi/enhmfdrv commands
config.status: executing dlls/gdi/mfdrv commands
config.status: executing dlls/kernel/nls commands
config.status: executing dlls/user/resources commands
config.status: executing dlls/wineps.drv/data commands
config.status: executing include/wine commands
config.status: executing Makefile commands
configure: libxcursor development files not found, the Xcursor extension won't be supported.
configure: libxi development files not found, the Xinput extension won't be supported.
configure: libxrandr development files not found, XRandr won't be supported.
configure: libxinerama development files not found, multi-monitor setups won't be supported.
configure: libxcomposite development files not found, Xcomposite won't be supported.
configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL development files not found, OpenCL won't be supported.
configure: libdbus development files not found, no dynamic device support.
configure: libgnutls development files not found, no schannel support.
configure: lib(n)curses development files not found, curses won't be supported.
configure: libsane development files not found, scanners won't be supported.
configure: libv4l development files not found.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.
configure: liblcms2 development files not found, Color Management won't be supported.
configure: gstreamer-0. base plugins development files not found, gstreamer support disabled
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi development files not found, ISDN won't be supported.
configure: libcups development files not found, CUPS won't be supported.
configure: fontconfig development files not found, fontconfig won't be supported.
configure: libgsm development files not found, gsm . codec won't be supported.
configure: libtiff development files not found, TIFF won't be supported.
configure: libmpg development files not found (or too old), mp3 codec won't be supported.
configure: libopenal development files not found (or too old), OpenAL won't be supported.
configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.
configure: Finished. Do 'make' to compile Wine.
现在可以编译了。运行make,源码等待吧。源码一个小时候编译完成。源码个订货系统源码然后运行make install
或者可以以非root用户的源码身份进入tools目录,运行:
./wineinstall
它会自动编译并安装程序,源码中间会提示输入管理员密码。pychon换脸源码
安装到了/usr/local/bin目录下
运行命令检查版本:
ine --version
wine-1.7.4
然后创建一个wine链接,否则很多程序不能用, 比如winecfg。
sudo ln -s /usr/local/bin/wine /usr/local/bin/wine
ubuntu安装wine的新版做菜网源码时候出现不能解决依赖关系。怎么解决
去下源代码自己编译呗,那还是1.4的,你可以去官网下个1.7滴~~
先安装依赖的库:
sudo apt-get install flex bison qt4-qmake
sudo apt-get install libfreetype6-dev
sudo apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev
sudo apt-get install libxrender-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
sudo apt-get install prelink
sudo apt-get install libasound2-dev
然后下载源代码进入解包目录:
./configure
make //编译大约需要一个小时~~
sudo make install
安装完后中文显示乱码,需要下载字体解决,不会就谷歌~~
å¦ä½å¨Linuxä¸ä½¿ç¨OpenGL+ C++å¼å
åææ¯ï¼1.é 置好äºUbuntuä¸çc++ç¯å¢ï¼gcc以åg++å¯ç¨ã
2.使ç¨eclipse for c+åOpenGLå¼å
ããæ¥éª¤ä¸ï¼
å¨ubuntuç»ç«¯ä¸è¿è¡ä»¥ä¸å½ä»¤ï¼å®è£ openglæéè¦çåºæ件
$ sudo apt-get install build-essential
$ sudo apt-get install freeglut3-dev
ããæ¥éª¤äºï¼
ããè¿è¡ä¸ä¸openglå®ä¾ï¼æµè¯é ç½®çç¯å¢æ¯å¦å®è£ æå
å¨eclipseä¸æ°å»ºä¸ä¸ªå·¥ç¨æ件ï¼å设æ们å½å为Testï¼å¨å·¥ç¨Testéé¢æ°å»ºä¸ä¸ªC++æºä»£ç æ件ï¼è¿éæ们æå®å½å为main.cppï¼å¨main.cppæ件ä¸æå ¥ä¸ä¸ä»£ç
#include <GL/glut.h>ããvoid init();
void display();
ããint main(int argc, char* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB |GLUT_SINGLE);
glutInitWindowPosition(0, 0);
glutInitWindowSize(, );
ããglutCreateWindow("OpenGL 3D View");
ããinit();
glutDisplayFunc(display);
ããglutMainLoop();
return 0;
}
ããvoid init()
{
glClearColor(0.0, 0.0, 0.0, 0.0);
glMatrixMode(GL_PROJECTION);
glOrtho(-5, 5, -5, 5, 5, );
glMatrixMode(GL_MODELVIEW);
gluLookAt(0, 0, , 0, 0, 0, 0, 1, 0);
}
ããvoid display()
{
glClear(GL_COLOR_BUFFER_BIT);
ããglColor3f(1.0, 0, 0);
glutWireTeapot(3);
ããglFlush();
}
å³å»å·¥ç¨æ件å
Test->ç¹å»å±æ§ï¼Propertiesï¼->C/C++Bulid->Settings->GCC C++Linker->Libraries,
å¨è¿ä¸ªçªå£ä¸æ·»å å 个个åºï¼
åå«ä¸ºGLU,glut,GLï¼
ç¹å»OKã
å¦æè¿æ³ä½¿ç¨opencvï¼
å¨è¿éè¿å å ¥cv,cxcore,highguiçåºæ件ï¼
æ ¹æ®èªå·±çéè¦æ¥å®
åæ¶å¨GCC Cï¼ï¼ Compiler->Includesä¸çincudepathä¸æ·»å è·¯å¾/usr/include/GL
å¦æè¿æ³ä½¿ç¨opencvä¸çåºï¼é£ä¹å å ¥opencvçè·¯å¾ï¼ä¸è¬æ¯/usr/include/opencv
ããè¿è¡ä»¥ä¸ç¨åºï¼ä¼æ¾ç¤ºä¸ä¸ªè¶å£¶å½¢ç¶çopenglè¿è¡ç»æ