How to compile OGRE Meashy on ubuntu 16.04

Problems building or running the engine, queries about how to use features etc.
Post Reply
Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Tue Nov 27, 2018 4:20 pm

Ogre Version:1.9 :?:
Operating System:Ubuntu 16.04 :?:
Render System:Open GL :?:

Hi Guys,
Im trying to compile OGRE Meashy on ubuntu 16.04 I have installed libogre-dev and Im following compile instructins

Code: Select all

Compiling under Linux:
======================
You'll need CMake www.cmake.org   You can get an explanation of how CMake works here http://www.ogre3d.org/tikiwiki/Getting+started+with+CMake
You'll need wxWidgets 2.8 or higher
You'll need dev OGRE installed in your system
You'll need OpenGL dev libraries (they usually come with Mesa or X11)

sudo apt-get install libwxgtk2.8-dev libwxgtk2.8-dbg libgtk2.0-dev

Note: If you're using Ogre 1.8 or lower instead of 1.9; overwrite rename 'CMakeLists.old.1.8.txt' as 'CMakeLists.txt'

Copy all necessary Resources files to folder bin/Release_Linux/Resources; the following script will do that for you:
	cd scripts/Resources
	sh copyresources.sh
Create your binary output folder with CMake at %OgreMeshyFolder%/build
Go to that folder and type from command line:
	cd build
	make all
So next step is to run

Code: Select all

sh copyresources.sh
but nothing is copied over
$ ./copyresources.sh
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources’: No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources/Fonts’: No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources/Models’: No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources/Icons’: No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources/Icons/32x32’: No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources/RTShaderLib’: No such file or directory
cp: cannot create directory '../../bin/Release_Linux/Resources/Icons': No such file or directory
cp: target '../../bin/Release_Linux/Resources/Fonts' is not a directory
cp: target '../../bin/Release_Linux/Resources/Models' is not a directory
cp: target '../../bin/Release_Linux/Resources/RTShaderLib' is not a directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/Resources/Models': No such file or directory
mkdir: cannot create directory ‘../../bin/Release_Linux/Plugins’: No such file or directory
cp: cannot create regular file '../../bin/Release_Linux/': Not a directory
cp: cannot create regular file '../../bin/Release_Linux/': Not a directory
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3885
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 158
Contact:

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by dark_sylinc » Tue Nov 27, 2018 5:57 pm

I can repro this problem. I'll take a look.
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Tue Nov 27, 2018 6:10 pm

dark_sylinc wrote:
Tue Nov 27, 2018 5:57 pm
I can repro this problem. I'll take a look.
Ok great tnx I lot, I did tried prebuild for 12.04 but they dont work due to ABI miss maching
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Nov 28, 2018 10:42 am

On front page of Ogre Meashy on bitbucket there is link which point to OGRE 2 but Meashy need 1.1 https://github.com/OGRECave/ogre/releases ?
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Nov 28, 2018 5:07 pm

When I run make all Im getting an error I first installed 1.9 and then OGRE 1.11 but Im getting an error

Code: Select all

make all
[  9%] Building CXX object CMakeFiles/OgreMeshy.dir/src/Core/AnimationPanel.cpp.o
In file included from /home/slobodan/ogremeshy-3f308524f4cb/src/Core/AnimationPanel.cpp:19:0:
/home/slobodan/ogremeshy-3f308524f4cb/./include/Core/AnimationPanel.h:28:31: fatal error: OgrePrerequisites.h: No such file or directory
Last edited by Vido on Wed Nov 28, 2018 5:22 pm, edited 1 time in total.
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Nov 28, 2018 5:21 pm

dark_sylinc wrote:
Tue Nov 27, 2018 5:57 pm
I can repro this problem. I'll take a look.
I solved issue of creating new dir by adding -p on mkdir like so
mkdir -p ../../bin/Release_Linux/Resources
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Nov 28, 2018 8:39 pm

I'v got this error
Attachments
OM.png
Last edited by Vido on Wed Nov 28, 2018 8:51 pm, edited 1 time in total.
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Nov 28, 2018 8:50 pm

ASSERT INFO: ../src/gtk/toolbar.cpp(260): assert ""bitmap.IsOk()"" failed in SetImage(): invalid bitmap for wxToolBar icon BACKTRACE: [1] wxToolBar::DoInsertTool(unsigned long, wxToolBarToolBase)
[2] wxToolBarBase::InsertTool(unsigned long, wxToolBarToolBase) [3] wxToolBarBase::InsertTool(unsigned long, int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject)
[4] wxToolBarBase::AddTool(int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject) [5] MainFrame::MainFrame(wxWindow, int, wxString const&, wxPoint const&, wxSize const&, long)
[6] MeshyMainFrameImpl::MeshyMainFrameImpl(wxWindow, CmdSettings const&) [7] wxWidgetsApp::OnInit() [8] wxAppConsoleBase::CallOnInit() [9] wxEntry(int&, wchar_t**) [10] main [11] __libc_start_main [12] _start ,
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3885
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 158
Contact:

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by dark_sylinc » Wed Nov 28, 2018 9:48 pm

I'm glad you were able to compile Meshy.

As for the error you're encountering, it's because Meshy cannot find some PNG files.

Where are you running OgreMeshy from? The script copies the PNG files to a folder in "bin/Release_Linux". Make sure that is the working directory.
If CMake created binaries in another folder, just copy them to the bin/Release_Linux directory.
Simply doing

Code: Select all

cd /path/to/OgreMeshy/bin/Release_Linux
./OgreMeshy
Should work.

Try to match the folder structure from the Ubuntu binaries provided.
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Thu Nov 29, 2018 2:25 pm

Im folowing COMPILING.txt I run copyresources.sh and make dir build and inside it cmake .. bit Im gettig an error when I run make

Code: Select all

make
[  9%] Building CXX object CMakeFiles/OgreMeshy.dir/src/Core/AnimationPanel.cpp.o
In file included from /home/slobodan/dark_sylinc-ogremeshy-2110b963ee28/src/Core/AnimationPanel.cpp:19:0:
/home/slobodan/dark_sylinc-ogremeshy-2110b963ee28/./include/Core/AnimationPanel.h:28:31: fatal error: OgrePrerequisites.h: No such file or directory
compilation terminated.
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Thu Nov 29, 2018 10:28 pm

So I setted up dependecies but it cant link OgreMeshy ?

Code: Select all

[100%] Linking CXX executable bin/RelWithDebInfo/OgreMeshy
/usr/bin/ld: CMakeFiles/OgreMeshy.dir/src/Core/AnimationPanel.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/OgreMeshy.dir/build.make:234: recipe for target 'bin/RelWithDebInfo/OgreMeshy' failed
make[2]: *** [bin/RelWithDebInfo/OgreMeshy] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/OgreMeshy.dir/all' failed
make[1]: *** [CMakeFiles/OgreMeshy.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Dec 05, 2018 5:48 pm

So I finally compiled it but Im getting an error

Code: Select all

Warning: Can not load backdrop for config dialog: Can not find codec for 'png' image format.
Supported formats are: dds ktx pkm.
Edit: When I select "select one" I'v got an error

Code: Select all

Error: Shell widget menu has zero width and/or height
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Wed Dec 05, 2018 6:18 pm

Also I added

Code: Select all

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
under

Code: Select all

if( UNIX )
	target_link_libraries( OgreMeshy ${GTK2_LIBRARIES} ${OPENGL_LIBRARIES} )
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3885
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 158
Contact:

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by dark_sylinc » Thu Dec 06, 2018 4:43 am

Vido wrote:
Wed Dec 05, 2018 5:48 pm
So I finally compiled it but Im getting an error

Code: Select all

Warning: Can not load backdrop for config dialog: Can not find codec for 'png' image format.
Supported formats are: dds ktx pkm.
Make sure that Plugin=Codec_FreeImage is in Plugins.cfg
0 x

Vido
Halfling
Posts: 53
Joined: Thu Feb 26, 2015 3:48 pm

Re: How to compile OGRE Meashy on ubuntu 16.04

Post by Vido » Thu Dec 06, 2018 12:30 pm

dark_sylinc wrote:
Thu Dec 06, 2018 4:43 am
Make sure that Plugin=Codec_FreeImage is in Plugins.cfg
If I do that Im getting

Code: Select all

ASSERT INFO:
../src/common/wincmn.cpp(478): assert "GetEventHandler() == this" failed in ~wxWindowBase(): any pushed event handlers must have been removed

BACKTRACE:
[1] wxWindowBase::~wxWindowBase()
[2] MainFrame::~MainFrame()
[3] MeshyMainFrameImpl::MeshyMainFrameImpl(wxWindow*, CmdSettings const&)
[4] wxWidgetsApp::OnInit()
[5] wxAppConsoleBase::CallOnInit()
[6] wxEntry(int&, wchar_t**)
[7] main
[8] __libc_start_main
[9] _start


Image
0 x

Post Reply