New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeTypeFont error when trying to run magnum-fontconverter #93

Closed
neverender opened this Issue Mar 22, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@neverender

neverender commented Mar 22, 2015

Ok now I'm trying to get fontconverter working.

magnum-fontconverter --font FreeTypeFont --converter MagnumFontConverter font.ttf myfont
Renderer: Intel HD Graphics 3000 OpenGL Engine by Intel Inc.
OpenGL version: 3.3 INTEL-10.0.19
Using optional features:
    GL_ARB_ES2_compatibility
    GL_ARB_separate_shader_objects
    GL_ARB_texture_storage
    GL_ARB_vertex_array_object
    GL_EXT_debug_label
    GL_EXT_debug_marker
    GL_EXT_texture_filter_anisotropic
PluginManager::Manager::load(): cannot open plugin file "/usr/local/lib/magnum/fonts/FreeTypeFont.so": dlopen(/usr/local/lib/magnum/fonts/FreeTypeFont.so, 10): Symbol not found: __ZN6Magnum4Text12AbstractFont10doOpenDataERKNSt3__16vectorINS2_4pairINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN7Corrade10Containers14ArrayReferenceIKhEEEENS8_ISG_EEEEf
  Referenced from: /usr/local/lib/magnum/fonts/FreeTypeFont.so
  Expected in: /usr/local/lib/libMagnumText.dylib
 in /usr/local/lib/magnum/fonts/FreeTypeFont.so
@mosra

This comment has been minimized.

Show comment
Hide comment
@mosra

mosra Mar 22, 2015

Owner

Isn't it possible that you have the plugin compiled with and linked to an older version of Magnum? It complains about the following symbol not found:

Text::AbstractFont::openData(const std::vector<std::pair<std::string,
    Containers::ArrayReference<const unsigned char>>>&, Float)

but in current master, the function has the following signature:

Text::AbstractFont::openData(const std::vector<std::pair<std::string,
    Containers::ArrayReference<const char>>>&, Float)

I did this change in fd0bfcb (two months ago), can you try to rebuild the plugins with current Magnum master if it helps?

Owner

mosra commented Mar 22, 2015

Isn't it possible that you have the plugin compiled with and linked to an older version of Magnum? It complains about the following symbol not found:

Text::AbstractFont::openData(const std::vector<std::pair<std::string,
    Containers::ArrayReference<const unsigned char>>>&, Float)

but in current master, the function has the following signature:

Text::AbstractFont::openData(const std::vector<std::pair<std::string,
    Containers::ArrayReference<const char>>>&, Float)

I did this change in fd0bfcb (two months ago), can you try to rebuild the plugins with current Magnum master if it helps?

@neverender

This comment has been minimized.

Show comment
Hide comment
@neverender

neverender Mar 22, 2015

You were right. But after updating I'm getting this:

Renderer: Intel HD Graphics 3000 OpenGL Engine by Intel Inc.
OpenGL version: 3.3 INTEL-10.0.19
Using optional features:
    GL_ARB_ES2_compatibility
    GL_ARB_separate_shader_objects
    GL_ARB_texture_storage
    GL_ARB_vertex_array_object
    GL_EXT_debug_label
    GL_EXT_debug_marker
    GL_EXT_texture_filter_anisotropic
Populating distance field glyph cache...
Assertion _viewport != Range2Di{} failed in /Users/nick/src/magnum/src/Magnum/AbstractFramebuffer.cpp on line 215
[1]    28343 abort      magnum-fontconverter --font FreeTypeFont --converter MagnumFontConverter  

neverender commented Mar 22, 2015

You were right. But after updating I'm getting this:

Renderer: Intel HD Graphics 3000 OpenGL Engine by Intel Inc.
OpenGL version: 3.3 INTEL-10.0.19
Using optional features:
    GL_ARB_ES2_compatibility
    GL_ARB_separate_shader_objects
    GL_ARB_texture_storage
    GL_ARB_vertex_array_object
    GL_EXT_debug_label
    GL_EXT_debug_marker
    GL_EXT_texture_filter_anisotropic
Populating distance field glyph cache...
Assertion _viewport != Range2Di{} failed in /Users/nick/src/magnum/src/Magnum/AbstractFramebuffer.cpp on line 215
[1]    28343 abort      magnum-fontconverter --font FreeTypeFont --converter MagnumFontConverter  
@mosra

This comment has been minimized.

Show comment
Hide comment
@mosra

mosra Mar 22, 2015

Owner

Ah, sorry again for another OS X-specific bug :) I assumed that the size of default viewport would never be zero, but apparently that's exactly the case when creating windowless context on OS X. Should be fixed in fbf0656, please reopen if the problem persists.

Owner

mosra commented Mar 22, 2015

Ah, sorry again for another OS X-specific bug :) I assumed that the size of default viewport would never be zero, but apparently that's exactly the case when creating windowless context on OS X. Should be fixed in fbf0656, please reopen if the problem persists.

@mosra mosra closed this Mar 22, 2015

@mosra mosra added apple bug labels Mar 22, 2015

@mosra mosra added this to the 2015.05 milestone Feb 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment