折腾 log4cxx @ MinGW+MSYS 未果

折腾了好些天也没搞定,还走了不少弯路,留个笔记吧,数字为实验步骤,字母为参考资料,我使用的 MinGW/MSYS 版本分别为 5.1.4 和 1.0.10。

a. http://wiki.apache.org/logging-log4cxx/MSWindowsBuildInstructions
b. http://blog.chinaunix.net/u2/85101/showart_1716046.html

1. cppunit 1.12.0 & libiconv 1.11 ok
2. expat 2.0.0 failed –> can’t remember the error info…
3. expat 2.0.1 ok
4. apr 1.2. 11 failed –> decision on anonymous shared memory failed

c. file:///D:/apache-log4cxx/site/building/autotools.html

5. get apr from svn –> ./buildconf needs autoconf
6. get autoconf 2.63 –> m4 needed
7. get m4 src –> msysDVLPR-1.0.0-alpha-1 needed

d. http://ffmpeg.arrozcru.org/wiki/index.php?title=MsysDVLPR
e. http://blog.chinaunix.net/u2/62117/showart_1904189.html

8. m4-1.4.12 ok -> copy to /bin
9. autoconf failed still –> perl needed
10. active perl -> autom4te: need GNU m4 1.4 or later: /bin/m4

f. http://www.nabble.com/Installing-Autoconf-2.63-on-MinGW-td20884749.html

11. m4-1.4.7-MSYS -> extract to /local/bin
12. perl-5.6.1-MSYS-1.0.11-1 -> extract to /local/bin
13. autoconf failed still -> Can’t locate Data/Dumper.pm in @INC

g. http://www.mingw.org/wiki/msys

14. remove perl-5.6.1-MSYS-1.0.11-1 –> use AP (active perl) again
15. get msysDTK-1.0.1 & msysCORE-1.0.11-20080826  (& coreutils-5.97-MSYS-1.0.11-snapshot & bash-3.1-MSYS-1.0.11-1)-> autoconf failed still
16. remove AP since DTK already contains perl -> /perl/bin/perl: bad interpreter: No such file or directory
17. add ‘c/msys/1.0/ /perl’  to /etc/fstab -> autoconf make ok!!!
18. no need to build autoconf ? -> DTK already contains it! (2.5x)
19. ./buildconf apr_svn ok
20. ./configure apr_svn failed -> syntax error near unexpected token `build’ & AC_CONFIG_MACRO_DIR(build)
21. make install autoconf 2.63 -> ./configure apr_svn ok
22. make apr_svn failed -> *** No rule to make target `.make.dirs’, needed by `passwd/apr_getpass.lo’.  Stop.
23. make install automake 1.10.2 & libtool-1.5.26 –> ./buildconf apr_svn failed this time, OMG…

Traceback (most recent call last):
File “build/gen-build.py”, line 238, in ?
main()
File “build/gen-build.py”, line 131, in main
objects, _unused = write_objects(f, legal_deps, h_deps, files)
File “build/gen-build.py”, line 185, in write_objects
assert file[-2:] == ‘.c’
AssertionError

24. get apr 1.3.3 -> failed to make -> error: syntax error before “LPPROCESSENTRY32W”

h. https://issues.apache.org/bugzilla/show_bug.cgi?id=46175

25. apply the patch file (partial) to apr_svn or apr 1.3.3 –> failed still –> syntax error before “LPPROCESSENTRY32W”

Hunk #1 FAILED at 238.
1 out of 1 hunk FAILED — saving rejects to file file_io/win32/pipe.c.rej

i. http://www.mail-archive.com/dev@apr.apache.org/msg21183.html

26. ./configure with a WINVER definition -> failed still…

xx. How to use Copy & Paste in MSYS:
http://blog.waterlin.org/articles/msys%E9%87%8C%E7%9A%84%E5%A4%8D%E5%88%B6%E4%B8%8E%E7%B2%98%E8%B4%B4%E6%93%8D%E4%BD%9C.html

 

This entry was posted in 软件开发 and tagged . Bookmark the permalink.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s