Centos/Redhat specific Install

get dependencies

For gtk development install packages:

 sudo yum install gtk2-devel
 sudo yum install gcc-c++
 sudo yum install libjpeg-devel
 sudo yum install libtiff-devel
 sudo yum install libSM-devel
 sudo yum install libmspack-devel
 sudo yum install libnotify-devel
 sudo yum install readline-devel
 sudo yum install ncurses-devel
 sudo yum install gettext
 sudo yum install freetype-devel

Or quick and dirty and more than needed:

yum groupinstall 'Development Tools'

For Opengl and glut you need the Mesa libraries:

 yum install glut-devel
 yum install mesa-libGL-devel

wxArt2D uses cmake for generating makefile, and svn is needed to get wxArt2D from the repository.

sudo yum install cmake 
sudo yum install cmake-gui 
sudo yum install subversion 


First wxWidgets should be installed. Download the latest version of wxGTK. Replace directories called wxGTK down here with the wxWidgets version you unpacked there, e.g. wxWidgets-3.1.0. Read how to install, should come down to something like the next. Configure compile and install for debug version like this:

cd wxGTK 
cd .. 
mkdir buildwxdebug 
cd buildwxdebug  
../wxGTK/configure --with-gtk --enable-debug --enable-debug_gdb --disable-shared --with-opengl --enable-threads

Wait for this to work: ../wxGTK/configure --with-gtk --enable-debug --enable-debug_gdb --disable-shared --with-opengl --enable-threads --enable-graphics_ctx  

sudo make install  
cd contrib 
sudo make install  

Notice that this is an outside of tree build, so you can easily make a next compile as only release. And as super user the default install is to /usr/local.


Optional to have lua scripting on top of wxArt2D.

Very likely not needed this step, since now included in wxLua itself.

Better get it fresh from CVS repository. And rename/copy its setup0.h to setup.h.

svn co https://wxcode.svn.sourceforge.net/svnroot/wxcode wxcode    
Copy the setup0.h to setup.h in stedit/include/wx/stedit  
./configure  make   
sudo make install  
sudo cp /usr/local/include/wx/stedit/setup0.h /usr/local/include/wx/stedit/setup.h  

After install, there is no install of the setup.h but still of setup0.h. For wxLua make sure you have a setup.h available somehow in your include paths.


Optional to have lua scripting on top of wxArt2D.

voor lua-devel files, I ghot them here:

sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

svn checkout svn://svn.code.sf.net/p/wxlua/svn/trunk/wxLua wxLua
cmake-gui .

In cmake-gui, choose source and binary to /ThePathTo/wxLua. Set BUILD_SHARED_LIBS to off. Good idea is to set BUILD_VERBOSELY to on. Set BUILD_INSTALL_PREFIX to /usr/local. Set wxWidgets_USE_DEBUG to on. If media does not work (not compiled/available within wxWidgets, remove media library in cmake-gui .

sudo make install 


In case you want it with wxLua and wxStedit (which are both optional ) you need to set this:

export WXLUA=/pathToWxLuaSourceDir/wxLua 
export WXSTEDIT=/pathToWxSteditSourceDir/wxstedit 

Those paths are used to get to certain scripts which are not installed. Now first get a fresh copy of wxArt2D, checkout into directory wxArt2D here

svn checkout svn://svn.code.sf.net/p/wxart2d/code/trunk/wxArt2D wxArt2D

For the rest follow WxArt2dInstallCmake the Unix way.

wxArt2D: CentosRedhat (last edited 2023-06-19 13:55:05 by KlaasHolwerda)