Compiling with Freetype

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

Compiling with Freetype

by JPRuehmann » Mon Apr 28, 2014 10:33

Hello
I Try to compile the actual Version with Freetype, but everytime I try to compile with Freetype on it breaks with the following errors.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
[ 30%] Building CXX object src/CMakeFiles/minetest.dir/guiTextInputMenu.cpp.o                                                                               
/home/ruehmann/minetest/src/guiTextInputMenu.cpp: In member function ‘virtual void GUITextInputMenu::regenerateGui(v2u32)’:
/home/ruehmann/minetest/src/guiTextInputMenu.cpp:117:101: error: cannot allocate an object of abstract type ‘irr::gui::intlGUIEditBox’
    e = (gui::IGUIElement *) new gui::intlGUIEditBox(text.c_str(), true, Environment, this, 256, rect);
                                                                                                     ^
In file included from /home/ruehmann/minetest/src/guiTextInputMenu.cpp:35:0:
/home/ruehmann/minetest/src/intlGUIEditBox.h:19:8: note:   because the following virtual functions are pure within ‘irr::gui::intlGUIEditBox’:
  class intlGUIEditBox : public IGUIEditBox
        ^
In file included from /home/ruehmann/minetest/src/guiTextInputMenu.cpp:27:0:
/usr/local/include/IGUIEditBox.h:73:16: note:   virtual bool irr::gui::IGUIEditBox::isDrawBackgroundEnabled() const
   virtual bool isDrawBackgroundEnabled() const = 0;
                ^
/usr/local/include/IGUIEditBox.h:81:16: note:   virtual bool irr::gui::IGUIEditBox::isDrawBorderEnabled() const
   virtual bool isDrawBorderEnabled() const = 0;
                ^
/usr/local/include/IGUIEditBox.h:139:16: note:  virtual void irr::gui::IGUIEditBox::setCursorChar(wchar_t)
   virtual void setCursorChar(const wchar_t cursorChar) = 0;
                ^
/usr/local/include/IGUIEditBox.h:142:19: note:  virtual wchar_t irr::gui::IGUIEditBox::getCursorChar() const
   virtual wchar_t getCursorChar() const = 0;
                   ^
/usr/local/include/IGUIEditBox.h:146:16: note:  virtual void irr::gui::IGUIEditBox::setCursorBlinkTime(irr::u32)
   virtual void setCursorBlinkTime(irr::u32 timeMs) = 0;
                ^
/usr/local/include/IGUIEditBox.h:149:20: note:  virtual irr::u32 irr::gui::IGUIEditBox::getCursorBlinkTime() const
   virtual irr::u32 getCursorBlinkTime() const = 0;
                    ^
make[2]: *** [src/CMakeFiles/minetest.dir/guiTextInputMenu.cpp.o] Fehler 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Fehler 2
make: *** [all] Fehler 2

I´ve installed everything that could used for and by freetype.
If I disable Freetype everything works normal.
either cmake nor ccmake shows anything else as the freetype = on.
How do I make it work?
I am using Kubuntu 14.04 LTS and the latest minetest.git.
Thanks,
JPR
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Compiling with Freetype

by Morn76 » Mon Apr 28, 2014 11:36

Which version of Irrlicht is Kubuntu using? Make sure it's 1.8.1.
 

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

Re: Compiling with Freetype

by JPRuehmann » Mon Apr 28, 2014 12:31

It is 1.9.0
Thanks
 

Morn76
Member
 
Posts: 640
Joined: Sun Feb 16, 2014 19:45
GitHub: mdoege

Re: Compiling with Freetype

by Morn76 » Mon Apr 28, 2014 13:22

That might be a too recent version. Try downgrading to 1.8 or search the forum for tips on compiling with 1.9. I think there are some problems with 1.9 at the moment.
 

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

Re: Compiling with Freetype

by JPRuehmann » Mon Apr 28, 2014 13:47

If I do that
The Sources are compiling, but the resulting programm crashes with Segfault.
I thing the best solution is to left Freetype out and use the recent libIrrlicht.
Thanks for your help,
JPR
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: Compiling with Freetype

by gsmanners » Tue Apr 29, 2014 20:51

If you're getting segfaulted, it's probably from mismatches between irrlicht and your system. I would suggest you stick with the repo version:

sudo apt-get install libirrlicht-dev
 

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

Re: Compiling with Freetype

by JPRuehmann » Wed Apr 30, 2014 08:38

Hello
The Version from the repositories is the Version throwing segfaults.
Thaqnks,
JPR
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: Compiling with Freetype

by gsmanners » Fri May 02, 2014 19:46

Okay. Well I just upgraded to 14.04, so I'll be checking this out, shortly...

EDIT: Works fine. I don't know what you're doing wrong, but you might want to try it the way I did:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake . -DRUN_IN_PLACE=0 -DENABLE_FREETYPE=ON
make -j2


Make sure you're doing this in a freshly unpacked folder of 0.4.9. It should work at that point. Here's some other info:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
$ apt-cache policy libirrlicht-dev
libirrlicht-dev:
  Installed: 1.8.1+dfsg1-1
  Candidate: 1.8.1+dfsg1-1
  Version table:
 *** 1.8.1+dfsg1-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: Compiling with Freetype

by gsmanners » Sat May 03, 2014 21:33

This is pretty cool, actually. I'm glad I tried this.

+ Spoiler


Settings:

font_path = /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
font_size = 15
font_shadow = 1
font_shadow_alpha = 240
mono_font_path = /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-B.ttf
mono_font_size = 15
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 35 guests

cron