ubuntu 下 Ogre 引擎开发环境配置

启动gazebo时的ogre渲染引擎相关error 解决error:virtual void Ogre::RenderSystem::setDepthBufferFor(Ogre::RenderTarget*),更新nvida最新驱动即可。 阅读详情

1.安装Ogre sdk

打开终端,输入以下命令

把Ogre源进入到系统软件源: sudo add-apt-repository ppa:ogre-team/ogre

更新包列表: sudo apt-get update

安装Ogre开发包: sudo apt-get install libogre-dev

2.先决条件

开发ogre,在ubuntu上还需要安装一些库

打开终端,输入以下命令

a.编译器和配置工具      sudo apt-get install build-essential automake libtool

b.必需的依赖                 sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev

 c.不严格必需的依赖      sudo apt-get install nvidia-cg-toolkit libois-dev libboost-thread-dev

 d.完整可选的依赖         sudo apt-get install doxygen graphviz libcppunit-dev

最好把上述依赖完整安装。

3.下载Ogre源代码,使用cmake编译安装。

     3.1 通过ogre3d官网,http://www.ogre3d.org/download/source,下载源代码

           选择最新版 OGRE 1.8.1 Source for Linux / OSX,下载。

     3.2 ubuntu 安装 cmake.  

     3.3 下载好Ogre源代码文件,ogre_src_v1-8-1.tar.bz2,解压缩放在 /home/OGRE 目录下。

           进入解压好的目录

           cd  /home/OGRE

           创建一个build 目录   mkdir build

           进入build目录           cd build

           执行cmake命令,带上表示源代码路径的参数   cmake ..

           (..表示父路径,也就是build上一级路径,在本例中表示  /home/OGRE  路径)

          cmake命令为构建,会输出构建相关信息,如果没有错误发生,执行make 命令编译,make –j2

           (参数 -j2指定有多少个并发的编译任务运行,-j2表示双核,-j4表示四核。如果你的cpu是四核,可以用-j4,这样编译速度更快。) 

           编译完成之后,执行 sudo make install 安装命令,默认情况下,会把库文件放到/usr/local

           安装完成之后,可以在/usr/local/lib,/usr/local/lib/OGRE看到不少so文件。

           这些文件可以被以后开发的Ogre程序所调用。

4.进入 build/bin 目录 就可以运行例子程序 SampleBrowser了.

三维引擎实践 - ubuntu20.04 编译ogre ogre build on ubuntu20.04 阅读详情

相关推荐

在Ubuntu上编译Ogre引擎的Codeblocks环境

点击"Add"(添加)按钮,然后将Ogre引擎的库文件目录(通常是"/usr/lib/x86_64-linux-gnu")添加到库目录列表中。接下来,点击"Add"(添加)按钮,将Ogre引擎的头文件目录(通常是"/usr/include/OGRE")添加到包含目录列表中。打开Codeblocks IDE,选择"File"(文件)菜单,然后选择"New"(新建)-> “Project”(项目)。在弹出的对话框中,选择"Empty project"(空项目)并点击"Go"(继续)按钮。步骤6:验证编译结果。

InjeProgram的博客 201

Ubuntu上的OGRE开发环境搭建

在Ubuntu 12.04上搭建OGRE的开发环境使用命令: sudo apt-get install libogre-dev 建立一个文件夹helloogre然后创建main.cpp,文件内容如下: #include "OGRE/ExampleApplication.h" class Example1 : public ExampleApplication { public: void

bizzareblizzard的专栏 1542

Ogre图形引擎深入学习资料包

本文还有配套的精品资源,点击获取 简介:Ogre是一个开源的3D图形渲染引擎,广泛应用于游戏开发和高质量图形项目。本学习资料大合集为初学者和经验丰富的开发者提供了从基础到高级的全方位Ogre知识,包括安装配置、架构理解、场景管理、渲染技术、资源管理、光照与阴影技术、粒子系统、脚本语言支持以及插件和扩展应用。通过实际案例和示例项目,学习者能够将理论知识应用于实践,掌握使用Og...

weixin_42465140的博客 936

Ogre Ubuntu 环境搭建

坑爹啊,用了2天时间搭环境,虽然一直在玩。。。 开发的人能写个完整入门的环境搭建教程吗 1. 准备工作 首先在终端下下载一些东西 http://www.ogre3d.org/tikiwiki/Prerequisites?tikiversion=Linux 按照这个教程下载需要准备的环境 2. 下载源码并编译 http://www.ogre3d.org/tikiw...

anbeizhankou26248的博客 294

ubuntu 12.04 Ogre 开发环境配置

linux 下 Ogre环境配置, Ogre是流行的的三维引擎, 使用方便。

fMRI原始数据分割的笔记

好记性不如烂笔头_fMRI小白入门笔记

ZY_brain的博客 2896

demo开发之问题04编译ubuntu环境下编译opencv

一、安装过程中出现的问题 1.  looking for ccache --not found sudo apt-get install ccache 2.  Performance test HAVE)C_WSUGGEST_OVERRIDE - Failed What parameter did you pass to cmake to allow for "Non-free algor...

要努力成为很厉害很厉害的人哦 6890

Python_构建同花顺问财智能选股API服务

本文详细介绍了如何使用Python构建同花顺问财智能选股API服务,涵盖从环境准备、核心API开发到高级功能扩展的全过程。通过Flask框架和pywencai库,开发者可以快速搭建稳定可靠的选股接口,实现自动化股票筛选与交易系统集成,提升量化投资效率。

weixin_30596343的博客 329

ubuntu系统下如何使用Ogre SDK

最近想学Ogre 3D,开源的嘛,据说很多人在学这个,自己用的是Ubuntu系统,根据网站上提供的方法下载了,但不知到如何用呀? 需要配置开发环境什么吗?

天梯 691

AWS入门实践-如何在AWS云上创建一个内外网隔离的生产环境

在 AWS 上建立一个内外网分离的生产环境,可以减少应用服务的暴露面,有效的保证你的应用服务器的安全。通常我们会将web应用放在外网的子网内,数据库服务器等放在内网的子网。我们将按照下图来部署动手实践环境,实现在public subnet的EC2虚拟机可以直接通过互联网可以访问,在Private subnet的EC2虚拟机不能通过互联网直接访问,但是却可以在内部来访问互联网安装应用等等。

weixin_39108752的博客 2994

2024年全国大学生电子设计竞赛H题_自动行驶小车

自动行驶小车(H题)【本科组/高职高专组】

qq_74395263的博客 1万+

ogre在Linux下如何创建窗口,Ubuntu 11.10中配置OGRE1.8

在这里提到的版本有点低,但对于Ubuntu 11.10+Ogre1.8照样适用。对于Ubuntu 9.10及以上版本:安装编译器及配置工具:sudo apt-get install build-essential automake libto安装必须的依赖:sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libx...

weixin_35804761的博客 293

Android CCodec (十一) Codec2Buffer BufferPool分析

1、序言 2、C2BlockPool分析 3、SimpleC2Component关于BlockingBlockPool的实现 4、总结

给大佬递杯卡布奇诺的博客 4022

从零配置OGRE 3D引擎:C++图形开发入门与旋转立方体实战

3D图形渲染引擎是现代游戏开发和可视化应用的核心组件,它封装了底层图形API的复杂性,为开发者提供了高效的场景管理与渲染能力。其技术价值在于平衡性能与易用性,让开发者能够专注于内容创作与逻辑实现,广泛应用于游戏、仿真、数据可视化等领域。本文以经典的OGRE引擎为例,通过详细的编译配置和依赖管理指南,结合CMake构建工具和vcpkg包管理器,手把手带领读者完成环境搭建,并实现一个包含光照与动画的旋转立方体示例,深入讲解场景图、资源管理等核心概念。

weixin_33739541的博客 336

【即插即用模块】Transformer篇 | CVPR 2025 | D2T:双域特征融合,完美适配缺陷检测/小目标检测和分割等频域细节敏感的任务!

本文提出了一种基于小波和原型增强的双域Transformer(WPFormer)用于像素级表面缺陷检测。该模型通过Dual-domain Transformer (D2T)模块融合频域和空间域特征:小波增强交叉注意力(WCA)分解高低频特征并加权平衡,增强缺陷细节捕捉;原型引导注意力(PCA)生成全局原型向量强化关键信息聚合。实验表明,该模块在缺陷检测任务中性能优于现有方法,通过频域细节增强和全局依赖建模有效提升了复杂场景下的检测效果。代码已开源,适用于对频域敏感的目标检测和分割任务。

主要更新底层视觉(去噪、超分等)相关的科研内容,形式为【论文精读】+【论文复现】 1374

电容式三点式振荡电路/电感式三点振荡电路基础知识及Multisim电路仿真

摘要:三极管振荡电路利用放大特性与正反馈实现自激振荡,需满足巴克豪森条件(增益≥1,相位匹配)。核心由放大级、反馈网络、选频网络和稳幅环节构成。主要分为三类:1)LC/RC正弦波振荡电路(如电容三点式、电感三点式),输出高频/低频正弦波;2)多谐振荡电路,通过电容充放电产生方波;3)张弛振荡电路,生成锯齿波等。设计需关注相位匹配、增益控制和元件适配。LC振荡频率由谐振参数决定,RC振荡由时间常数控制。稳幅机制通过非线性或主动元件维持等幅输出。该电路在信号发生、时钟源等领域有广泛应用。

XU157303764的博客 2037

ogre在Linux下如何创建窗口,linux+ogre环境搭建

安装平台:Ubuntu12.04cmake version 2.8.7gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3ogre_src_v1-9-0RC1.tar.bz2我采用的是从源码编译方式来创建OGRE。一、安装一些依赖包。For Ubuntu Karmic and above:Compiler And Configuration Toolssud...

weixin_32267129的博客 322

第 9 篇:TMC2240 速度调节实战|STEP 信号生成 + 平滑调速算法(无抖动)

摘要:本文详细介绍了TMC2240电机调速方案,重点解决调速时电机抖动、丢步等问题。核心原理是通过STEP信号频率控制转速,结合平滑加减速算法避免电流冲击。文章从速度与STEP频率的数学关系入手,提供了定时器生成固定频率STEP信号的实现代码,并给出不同转速下的频率参数表。针对42步进电机+256微步细分场景,详细讲解了定时器初始化、中断处理及固定转速设置方法,帮助开发者实现稳定调速。全文包含可直接复用的代码片段,适合嵌入式开发者快速实现电机平滑调速功能。

BackCatK Chen的博客 1034

OGRE学习之路01:Ubuntu16.04 下 OGRE 1.10.11 基于源码的编译安装

前言: 话说,我从来没有想到过自己学习机器人技术,会与游戏渲染引擎打交道,因为作为门外汉的我来说,游戏图形引擎不是专门用来制作游戏的么,可是在我研究Rviz1.12.15版本的源码的时候,发现它是主要基于Qt 5.5.1 和OGRE 1.9.0 这两个库进行开发的. 为了进一步研究Rviz的相关源码,我想:是不是要源码编译安装一下OGRE来试一试这个传说中的开源游戏图形渲染引擎? 说干就干!...

小强的机器人工坊 2613

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

第一章 安装Ogre 3D引擎

想要学习并且使用 Ogre,就要先下载并安装它。 在这章,我们将会学习到: * 下载并安装 Ogre 3D 引擎 * 配置好 Ogre 3D 引擎的开发环境 * 用 Ogre 3D 引擎构建第一个场景 那我们就开始了。

anhuizhj的专栏 1965

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

ubuntu 14.04 编译ogre

这两天在ubuntu上编译ogre,开始想编译ogre1.8,

LaineGates的专栏 3191

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

ogre 学习笔记系列(一)环境搭建

背景:ogre 移植至 android,需要在本地PC练习。 环境:ubuntu 10.04 1 更新apt-get的Ogre源: $ sudo add-apt-repository ppa:ogre-team/ogre 并 sudo apt-get update 2 安装Ogre相关: $ sudo apt-get install libogre-dev build-

pathfinder 3113

Ubuntu下安装配置eclipse开发IDE环境

p { margin-bottom: 0.21cm; } 将压缩包eclipse-cpp-helios-SR1-linux-gtk.tar.gz拷贝到用户目录或其他目录直接解压在应用程序——ubuntu软件管理中搜索openjdk、g++,分别安装,即可运行使用eclipse进行c++开发Eclipse的环境配置方法:1、头文件引用路径配置:点选工程,右键,属性,选择“C/C++ General——Path and Symbols”,点选右侧includes,点击add,输

超越 1911

How to install ogre, cegui, ode on Ubuntu(转)

1.Installing Compiler And Configuration Tools sudo apt-get install build-essential automake libtool cmake-gui 2.Ogre Dependencies sudo apt-get install libois-dev libfreeimage-dev libfreetype6-dev...

weixin_30556161的博客 229

Ogre 安装 配置 问题

这些天准备要学习一下在国内享有盛名的著名的ogre开源游戏引擎,但是据说1000个使用者就可能有1000种问题的可能性。现在说说我遇到见到的问题,希望能给想使用ogre的筒子们一些帮助哈。(我装的是OgreSDK_vc9_v1-7-2)   1. SampleBrowser 编译错误:        编译orge工程的时候,会出现这样一个错误: 系统找不到指定的路径

nkliming的专栏 1289
上一篇: 一个使用秘钥加/解密字符串的delphi函数
下一篇: VS2008 OGRE环境搭建
一葉輕舟
博客等级 码龄14年 9粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值