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

svn.cpp:37:10: fatal error: 'apr_lib.h' file not found #135

Open
angeloentry opened this issue Sep 5, 2021 · 1 comment · May be fixed by #139
Open

svn.cpp:37:10: fatal error: 'apr_lib.h' file not found #135

angeloentry opened this issue Sep 5, 2021 · 1 comment · May be fixed by #139

Comments

@angeloentry
Copy link

When I run qmake && make command. It shows the below in command line. This is for MacOS machine.

cd src/ && ( test -e Makefile || /usr/local/Cellar/qt@5/5.15.2/bin/qmake -o Makefile /Users/allensavio/Desktop/Svn2Git/svn2git/src/src.pro ) && /Library/Developer/CommandLineTools/usr/bin/make -f Makefile
/Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DVER="""" -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I. -I/usr/include/subversion-1 -I/usr/local/include/subversion-1 -I/usr/include/apr-1.0 -I/usr/include/apr-1 -I/usr/local/include/apr-1 -I/usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers -I. -I/usr/local/Cellar/qt@5/5.15.2/mkspecs/macx-clang -F/usr/local/Cellar/qt@5/5.15.2/lib -o svn.o svn.cpp
svn.cpp:37:10: fatal error: 'apr_lib.h' file not found
#include <apr_lib.h>
^~~~~~~~~~~
1 error generated.
make[1]: *** [svn.o] Error 1

@nega0
Copy link

nega0 commented Feb 11, 2022

From your error message i can see that you're using Homebrew. The Apache Portable Runtime (apr) is keg-only, and not symlinked into your system. You'll have to either run brew link apr (not recommended) or add the appropriate paths to src/src.pro yourself. You'll need to do that for both the include path and the library location (the -L linker flag).

@nega0 nega0 linked a pull request Feb 11, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants