Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

schroedinger undefined symbols for architecture x86_64 #15734

Closed
cheeyeo opened this issue Oct 29, 2012 · 4 comments
Closed

schroedinger undefined symbols for architecture x86_64 #15734

cheeyeo opened this issue Oct 29, 2012 · 4 comments

Comments

@cheeyeo
Copy link

cheeyeo commented Oct 29, 2012

Hi

I installed schroedinger using brew successfully but when I try to link it to ffmpeg 1.0 i get the following errors:

Undefined symbols for architecture x86_64:
"__schro_decode_prediction_only", referenced from:
_schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
"__schro_telemetry", referenced from:
_schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is this a fault within schroedinger or ffmpeg? I have all the paths setup correctly using pkg-config etc. The build is on OS X 10.7 Lion

any suggestions will be of great help - thanks!

@2bits
Copy link
Contributor

2bits commented Oct 30, 2012

Have a look at this and try to follow it: https://github.com/mxcl/homebrew/wiki/Troubleshooting
We need some more info from it. I just modified my ffmpeg formula to enable libschroedinger on ML 10.8.2, and it built without error. I can also build it on Lion with XCode-4.5.

2bits pushed a commit to 2bits/homebrew that referenced this issue Nov 1, 2012
- Add `--extra-cflags` using pkg-config to find openjpeg.
- The cflags fix a configure error.
- Add an option `with-schroedinger` for Dirac Video

Fixes Homebrew#15772 Homebrew#15734
@2bits
Copy link
Contributor

2bits commented Nov 1, 2012

Please try this pull request when it lands, and tell us whether it fixes things for you. If not, please post your logs. Thanks.

@adamv adamv closed this as completed in 628a875 Nov 1, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
- Add `--extra-cflags` using pkg-config to find openjpeg.
- The cflags fix a configure error.
- Add an option `with-schroedinger` for Dirac Video

Fixes Homebrew#15772
Fixes Homebrew#15734

Closes Homebrew#15791.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
@dezi
Copy link

dezi commented Feb 16, 2013

I had the same problem compiling schroedinger on OSX with a static build into ffmpeg. For some reasons the ld of OSX does not handle external ints correctly. In file schroedinger/schrodecoder.c around line 75 just initialize the ints:

int _schro_decode_prediction_only = 0;
int _schro_telemetry = 0;

Then rebuild schroedinger and You will be fine.

By the way, there is a similar problem with gnutls and ffmpeg as well. Somewhere in verify_tofu.c, same issue.

Cheers
dezi

@cheeyeo
Copy link
Author

cheeyeo commented Feb 17, 2013

hi dezi

thanks for the info above will give that a try

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants