svn-all-fast-export / svn2git

:octopus: A fast-import based converter for an svn repo to git repos
GNU General Public License v3.0
261 stars 100 forks source link

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

Open angeloentry opened 3 years ago

angeloentry commented 3 years ago

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

     ^~~~~~~~~~~

1 error generated. make[1]: *** [svn.o] Error 1

nega0 commented 2 years ago

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).