Closed anrichter closed 11 years ago
[anrichter] Unfortunateley i don't own a Mac. So i cannot evaluate your error. But a look into the code explain me, that the error is in a section for Subversion with a version number lower than 1.5. So i think you use Subversion 1.4.x or lower. Is it possible for you to upgrade your Subversion to a newer version?
[anonymous] Replying to [comment:1 anrichter]:
Unfortunately i don't own a Mac. So i cannot evaluate your error. But a look into the code explain me, that the error is in a section for Subversion with a version number lower than 1.5. So i think you use Subversion 1.4.x or lower. Is it possible for you to upgrade your Subversion to a newer version?
Leopard does ship with Subversion 1.4.4 however I did upgrade to 1.6.6. prior to this ticket. The install path of the new version is /opt/subversion/bin/ instead of the original /usr/bin. For extra measure I renamed the old version in /usr/bin/svn-back and checked that the right version is being run:
{{{ bash-3.2$ svn --version svn, version 1.6.6 (r40053) compiled Jan 5 2010, 11:17:07
}}}
Any chance that the different install path of Subversion is the culprit for this not compiling?
I've also using Cmake version 2.8.0 Any further ideas on this? Thanks again!
[anrichter] Ah ok. Your cmake output says that it uses the system libraries of subversion: {{{ Found subversion client lib: /usr/lib/libsvn_client-1.dylib }}}
according to this i see, that you call cmake in the qsvn/scripts folder. That is a bad idea.
First create a build directory in /Users/username/qsvn-0.8.3/ and switch into it. Then call:
{{{ cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE="Release" -D SUBVERSION_INSTALL_PATH="/opt/subversion/" /Users/username/qsvn-0.8.3/src/ }}}
And take a look into the cmake output that it find and use your subversion libraries in /opt/subversion. Than compile again.
[Michael Corbett qsvn@tebroc.net] Thanks for your continued help, I'm a lot closer... The following is based on your instruction:
{{{ bash-3.2$ cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE="Release" -D SUBVERSION_INSTALL_PATH="/opt/subversion/" /Users/username/qsvn-0.8.3/src/ -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test HAVE_GCC_VISIBILITY -- Performing Test HAVE_GCC_VISIBILITY - Success -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - found -- Looking for QT_MAC_USE_COCOA -- Looking for QT_MAC_USE_COCOA - not found. -- Found Qt-Version 4.6.0 (using /usr/bin/qmake) -- Found apr include: /opt/local/include/apr-1 -- Found apu include: /opt/local/include/apr-1 -- Found apr cppflags: -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -- Found apr libs: -L/opt/local/lib -lapr-1 -lpthread -- Found apr extra ldflags: -- Found apu libs: -L/opt/local/lib -laprutil-1 -ldb-4.6 -lexpat -liconv -- Found apu extra ldflags: -L/opt/local/lib/db46 -L/opt/local/lib -- Looking for include files HAS_BACKTRACE_H -- Looking for include files HAS_BACKTRACE_H - found -- Found subversion include: /opt/subversion/include/subversion-1 -- Found subversion client lib: /opt/subversion/lib/libsvn_client-1.dylib -- Found subversion diff lib: /opt/subversion/lib/libsvn_diff-1.dylib -- Found subversion fs lib: /opt/subversion/lib/libsvn_fs-1.dylib -- Found subversion ra lib: /opt/subversion/lib/libsvn_ra-1.dylib -- Found subversion repository lib: /opt/subversion/lib/libsvn_repos-1.dylib -- Found subversion subr lib: /opt/subversion/lib/libsvn_subr-1.dylib -- Found subversion wc lib: /opt/subversion/lib/libsvn_wc-1.dylib -- Qt: optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Frameworks/QtCore.framework -- Configuring done -- Generating done -- Build files have been written to: /Users/username/qsvn-0.8.3/build }}}
The following is the compile (which is a huge improvement.)
{{{ bash-3.2$ make Scanning dependencies of target svnqt [ 1%] Building CXX object svnqt/CMakeFiles/svnqt.dir/apr.o [ 2%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_annotate.o [ 3%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_cat.o [ 4%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client.o [ 5%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_diff.o [ 5%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_ls.o [ 6%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_modify.o [ 7%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_property.o [ 8%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_status.o [ 9%] Building CXX object svnqt/CMakeFiles/svnqt.dir/context.o [ 10%] Building CXX object svnqt/CMakeFiles/svnqt.dir/datetime.o [ 11%] Building CXX object svnqt/CMakeFiles/svnqt.dir/dirent.o [ 12%] Building CXX object svnqt/CMakeFiles/svnqt.dir/entry.o [ 12%] Building CXX object svnqt/CMakeFiles/svnqt.dir/exception.o [ 13%] Building CXX object svnqt/CMakeFiles/svnqt.dir/log_entry.o [ 14%] Building CXX object svnqt/CMakeFiles/svnqt.dir/path.o [ 15%] Building CXX object svnqt/CMakeFiles/svnqt.dir/pool.o [ 16%] Building CXX object svnqt/CMakeFiles/svnqt.dir/revision.o [ 17%] Building CXX object svnqt/CMakeFiles/svnqt.dir/status.o [ 18%] Building CXX object svnqt/CMakeFiles/svnqt.dir/targets.o [ 19%] Building CXX object svnqt/CMakeFiles/svnqt.dir/url.o [ 19%] Building CXX object svnqt/CMakeFiles/svnqt.dir/version_check.o [ 20%] Building CXX object svnqt/CMakeFiles/svnqt.dir/wc.o [ 21%] Building CXX object svnqt/CMakeFiles/svnqt.dir/lock_entry.o [ 22%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_lock.o [ 23%] Building CXX object svnqt/CMakeFiles/svnqt.dir/info_entry.o [ 24%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_impl.o [ 25%] Building CXX object svnqt/CMakeFiles/svnqt.dir/contextdata.o [ 26%] Building CXX object svnqt/CMakeFiles/svnqt.dir/commititem.o [ 26%] Building CXX object svnqt/CMakeFiles/svnqt.dir/repository.o [ 27%] Building CXX object svnqt/CMakeFiles/svnqt.dir/repositorydata.o [ 28%] Building CXX object svnqt/CMakeFiles/svnqt.dir/repositorylistener.o [ 29%] Building CXX object svnqt/CMakeFiles/svnqt.dir/repoparameter.o [ 30%] Building CXX object svnqt/CMakeFiles/svnqt.dir/svnstream.o [ 31%] Building CXX object svnqt/CMakeFiles/svnqt.dir/diff_data.o [ 32%] Building CXX object svnqt/CMakeFiles/svnqt.dir/svnfilestream.o [ 33%] Building CXX object svnqt/CMakeFiles/svnqt.dir/stringarray.o [ 33%] Building CXX object svnqt/CMakeFiles/svnqt.dir/diffoptions.o [ 34%] Building CXX object svnqt/CMakeFiles/svnqt.dir/conflictdescription.o [ 35%] Building CXX object svnqt/CMakeFiles/svnqt.dir/conflictresult.o [ 36%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_merge.o [ 37%] Building CXX object svnqt/CMakeFiles/svnqt.dir/cache/LogCache.o [ 38%] Building CXX object svnqt/CMakeFiles/svnqt.dir/cache/ReposLog.o [ 39%] Building CXX object svnqt/CMakeFiles/svnqt.dir/cache/DatabaseException.o [ 40%] Building CXX object svnqt/CMakeFiles/svnqt.dir/cache/ReposConfig.o [ 41%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_parameter.o Linking CXX shared library ../lib/libsvnqt.dylib ld: library not found for -ldb-4.6 collect2: ld returned 1 exit status make[2]: * [lib/libsvnqt.6.0.0.dylib] Error 1 make[1]: * [svnqt/CMakeFiles/svnqt.dir/all] Error 2 make: *\ [all] Error 2
}}}
I'm confused why it's not finding the library for ldb-4.6 since in the output of the cmake it seems to find it. Any ideas? Thanks again!
[Michael Corbett qsvn@tebroc.net] SOLVED:
My issue was still related to the original install of SVN that comes OS X Leopard. Even though I installed the latest SVN, when I ran Make, it was looking at the libraries of 1.4.4 (the older version). I created a .bash_profile file in my user folder and added the following to it:
{{{ export PATH=/opt/subversion/bin/:$PATH }}}
Then let Terminal read the file to know the path had changed: {{{ $ . .bash_profile }}}
After that, sweet success. Thanks again for all your help!
I'm running OS X Leopard (10.5.8) Kernel - Darwin 9.8.0
Here is the output of my failed compile: {{{ Build QSvn for Release -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Checking whether C compiler has -isysroot -- Checking whether C compiler has -isysroot - yes -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Checking whether CXX compiler has -isysroot -- Checking whether CXX compiler has -isysroot - yes -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test HAVE_GCC_VISIBILITY -- Performing Test HAVE_GCC_VISIBILITY - Success -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - found -- Looking for QT_MAC_USE_COCOA -- Looking for QT_MAC_USE_COCOA - not found. -- Found Qt-Version 4.6.0 (using /usr/bin/qmake) -- Found apr include: /opt/local/include/apr-1 -- Found apu include: /opt/local/include/apr-1 -- Found apr cppflags: -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -- Found apr libs: -L/opt/local/lib -lapr-1 -lpthread -- Found apr extra ldflags: -- Found apu libs: -L/opt/local/lib -laprutil-1 -ldb-4.6 -lexpat -liconv -- Found apu extra ldflags: -L/opt/local/lib/db46 -L/opt/local/lib -- Looking for include files HAS_BACKTRACE_H -- Looking for include files HAS_BACKTRACE_H - found -- Found subversion include: /usr/include/subversion-1 -- Found subversion client lib: /usr/lib/libsvn_client-1.dylib -- Found subversion diff lib: /usr/lib/libsvn_diff-1.dylib -- Found subversion fs lib: /usr/lib/libsvn_fs-1.dylib -- Found subversion ra lib: /usr/lib/libsvn_ra-1.dylib -- Found subversion repository lib: /usr/lib/libsvn_repos-1.dylib -- Found subversion subr lib: /usr/lib/libsvn_subr-1.dylib -- Found subversion wc lib: /usr/lib/libsvn_wc-1.dylib -- Qt: optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Frameworks/QtCore.framework -- Configuring done -- Generating done -- Build files have been written to: /Users/username/qsvn-0.8.3/scripts Scanning dependencies of target svnqt [ 1%] Building CXX object svnqt/CMakeFiles/svnqt.dir/apr.o [ 2%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_annotate.o [ 3%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_cat.o [ 4%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client.o [ 5%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_diff.o [ 5%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_ls.o [ 6%] Building CXX object svnqt/CMakeFiles/svnqt.dir/client_modify.o /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp: In member function 'virtual svn::Revision svn::Client_impl::copy(const svn::CopyParameter&)': /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:298: error: 'paramter' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:308: error: 'paramter' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:309: error: 'sparameter' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:312: error: 'srcRevision' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp: In member function 'virtual svn::Revision svn::Client_impl::move(const svn::CopyParameter&)': /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:406: error: 'srcPaths' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:406: error: 'asChild' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:412: error: 'srcPaths' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:414: error: 'destPath' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:415: error: 'asChild' was not declared in this scope /Users/username/qsvn-0.8.3/src/svnqt/client_modify.cpp:419: error: 'force' was not declared in this scope make[2]: * [svnqt/CMakeFiles/svnqt.dir/client_modify.o] Error 1 make[1]: * [svnqt/CMakeFiles/svnqt.dir/all] Error 2 make: * [all] Error 2 Test project /Users/username/qsvn-0.8.3/scripts Start 1: simpletest Could not find executable /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest Looked in the following places: /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest /Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest Unable to find executable: /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest 1/2 Test #1: simpletest ......................._Bad command 1 0.00 sec Start 2: simpletest2 Could not find executable /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 Looked in the following places: /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest2 /Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Release/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Debug/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/MinSizeRel/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/RelWithDebInfo/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Deployment/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest2 Users/username/qsvn-0.8.3/scripts/tests/bin/Development/simpletest2 Unable to find executable: /Users/username/qsvn-0.8.3/scripts/tests/bin/simpletest2 2/2 Test #2: simpletest2 ......................**_Bad command 1 0.00 sec
0% tests passed, 2 tests failed out of 2
Total Test time (real) = 0.00 sec
The following tests FAILED: 1 - simpletest (Not Run) 2 - simpletest2 (Not Run) Errors while running CTest
}}}
Any help on this would be appreciated. I'm available for testing as well. Thanks so much. AIM: TebrocDotNet