DragonSA/svn2git — Issue #1: Failed building on Fedora (FC15)
Author: barefootcoder
Created: 2011-10-30 01:51:50+00:00
State: open

Okay, I had a few issues building that I was able to work around; I'll let you know what the problems and their solutions were in case you want to add something to the build instructions or whatnot. Actual error that I'm stuck on is Problem #5.

**Problem #1**

[winterfell:/var/install/svn2git-1.0.4/src] qmake
qmake: Command not found.

**Solution**

yum install qt-devel

**Problem #2**

ruleparser.cpp:18:23: fatal error: QTextStream: No such file or directory
compilation terminated.
make[1]: *** [ruleparser.o] Error 1
make[1]: Leaving directory `/var/install/svn2git-1.0.4/src'
make: *** [sub-src] Error 2

**Solution**

setenv CPLUS_INCLUDE_PATH /usr/include/QtCore

(Using tcsh; would be slightly different for bash of course.) This was the only weird one. Not sure why it wasn't picking up that directory naturally. But adding it to the env definitely fixes it.

**Problem #3**

svn.cpp:37:21: fatal error: apr_lib.h: No such file or directory
compilation terminated.
make[1]: *** [svn.o] Error 1
make[1]: Leaving directory `/var/install/svn2git-1.0.4/src'
make: *** [sub-src] Error 2

**Solution**

yum install apr-devel

**Problem #4**

svn.cpp:41:20: fatal error: svn_fs.h: No such file or directory
compilation terminated.
make[1]: *** [svn.o] Error 1
make[1]: Leaving directory `/var/install/svn2git-1.0.4/src'
make: *** [sub-src] Error 2

**Solution**

yum install subversion-devel

**Problem #5**

main.cpp:150:9: error: stray '\' in program
main.cpp:150:9: error: stray '\' in program
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/var/install/svn2git-1.0.4/src'
make: *** [sub-src] Error 2

And here I don't know what to do. main.cpp line 150 is

printf("Git version: %s\n", VER);

But I don't see anything wrong with that backslash. Maybe `VER` is a macro that's expanding to something weird?

Anyway, I think that's as far as I can get for now. Thoughts?