Skip to content
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

dyld: Symbol not found: _AG_GL_BackupSurfaces #47

Closed
TonalidadeHidrica opened this issue Jan 31, 2020 · 3 comments
Closed

dyld: Symbol not found: _AG_GL_BackupSurfaces #47

TonalidadeHidrica opened this issue Jan 31, 2020 · 3 comments

Comments

@TonalidadeHidrica
Copy link

TonalidadeHidrica commented Jan 31, 2020

I installed libagar into my Mac Mojave by the following steps, according to the official guide.

First, I installed SDL1.2 . (I don't know it's needed though)

$ brew install sdl

Next, I executed the following:

$ tar -xzf agar-1.5.0.tar.gz
$ cd agar-1.5.0.tar.gz
$ ./configure --prefix=$HOME/lib/agar
$ make depend all
$ make install

Then I created a file named hello.c according to the bottom of the page. I successfully compiled it, but when I try running, an dynamic library loading error occurs:

$ cc -o hello (~/lib/agar/bin/agar-config --cflags | string split " ") hello.c (~/lib/agar/bin/agar-config --libs | string split " ")
$ ./hello
dyld: Symbol not found: _AG_GL_BackupSurfaces
  Referenced from: /Users/$USER/lib/agar//lib/libag_gui.5.dylib
  Expected in: flat namespace
 in /Users/$USER/lib/agar//lib/libag_gui.5.dylib
fish: './hello' terminated by signal SIGABRT (Abort)

(where $USER is actually the username of my PC.)

What am I getting wrong? How can I fix this problem?

@TonalidadeHidrica
Copy link
Author

TonalidadeHidrica commented Jan 31, 2020

A sloppy attempt of adding DYLD_LIBRARY_PATH also failed.

$ export DYLD_LIBRARY_PATH=/Users/seasellsheshell/lib/agar/bin/:/Users/seasellsheshell/lib/agar/share/
$ ./hello
dyld: Symbol not found: _AG_GL_BackupSurfaces
  Referenced from: /Users/seasellsheshell/lib/agar//lib/libag_gui.5.dylib
  Expected in: flat namespace
 in /Users/seasellsheshell/lib/agar//lib/libag_gui.5.dylib
Abort trap: 6

@JulNadeauCA
Copy link
Owner

Can you post the contents of config.log from the build directory? I suspect the test for OpenGL has failed for some reason, and your build is missing OpenGL support as a result.

Enabling SDL support adds support for the "sdlgl" and "sdlfb" drivers. This allows Agar applications to run in SDL/OpenGL or SDL/Framebuffer mode in addition to the native "cocoa" driver (which uses the Cocoa API). The "sdlgl" driver is also handy if you wish to provide a MDI or "single-window" mode in a multi-window application.

@JulNadeauCA
Copy link
Owner

Can you try again with version 1.6.0? (http://libagar.org/download.html) and please re-open the issue if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants