tihmstar / img4tool

A tool for manipulating IMG4, IM4M and IM4P files
GNU Lesser General Public License v3.0
270 stars 105 forks source link

./configure: line 16573: syntax error near unexpected token `openssl,' #46

Closed hipp013 closed 4 years ago

hipp013 commented 4 years ago

I am trying to run autogen.sh but keep running into the same error:

checking whether we need platform-specific build settings... ./configure: line 16573: syntax error near unexpected token `openssl,'
./configure: line 16573: `PKG_CHECK_MODULES(openssl, $OPENSSL_REQUIRES_STR, have_openssl=yes, have_openssl=no)

I have OpenSSL installed via brew. I've tried deleting and recloning the git and everything I can think of, but no luck. Please get back to me soon and let me know if I'm doing something wrong.

edit: On macOS High Sierra 10.13.4

tihmstar commented 4 years ago

Looks like you don't have pkg-config installed

hipp013 commented 4 years ago

Yes I do, I have pkg-config 0.29.2_3 installed. Is there an issue with where ./configure is looking for dependencies? Or is there something I have to do manually to properly detect/use pkg-config?

You mentioned on Twitter (link) that "macOS bin may require manually installing some std deps through homebrew". Do you think this might be applicable to my situation? I'm pretty sure I have them all installed, and everything in ./autogen.sh runs fine until it gets to ./configure where it throws an error when trying to locate openssl.

I also talked with someone on Discord who gave me this chunk of code to run, which still didn't work:

LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:"${LD_LIBRARY_PATH}"                    
CPATH=/usr/local/opt/openssl/include:"${CPATH}"                                    
PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:"${PKG_CONFIG_PATH}"          
export LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH     

I can provide the whole cmd log of ./autogen.sh if that would help identify the issue.

hipp013 commented 4 years ago

I ended up installing stek29's homebrew-idevice and running brew install img4tool, which fixed the issue. I'm still wondering why this error kept popping up though, because I thought I had everything configured correctly.