Re: [dev] Need Help, Problem on building with MinGW.

2008-11-02 Thread Takashi Ono
Hi Cynthia,

In message [dev] Need Help, Problem on building with MinGW.,
Cynthia Qu wrote...
 hi,all
 
 I have met some problems when I am building OOo_SRC680_m247 with MinGW on 
 Windows XP. 
I just want to compile with mingw now. 
 
 I got the information here:
 http://tools.openoffice.org/dev_docs/build_windows_mingw.html

Welcome to mingw port world!

However, if you are willing to contribute to OOo community by writing some 
application 
fragment, mingw is not a good platform. If you are planning to do so on MS 
Windows, 
Microsoft Visual C++ is the standard tool. You can also use free Express 
version and 
you can find building instruction on Wiki pages.

I think the efforts by Volker on codeline 625 was abandoned and maybe the web 
page is 
obsolete. I am taking over the task on SRC680 and DEV300.

Please note that mingw may not substitute MS Visual C++ even if the port is 
completed. 
I am doing the port for checking code portability in windows native modules and 
for 
fearing Microsoft may discontinue providing free compiler in the future.

My effort on SRC680 is almost completed but I stopped it because we have 
switched to 
DEV300. My effort on DEV300 is also leaving a few build breakers.

You can find my draft build instructions here. It is for SRC680.

http://www.hkfreak.net/build_windows_mingw_tcsh.htm

Some required SDKs are too old and maybe you cannot get them.

I have not made instruction document for DEV300 as there is no documents for 
other 
platforms. You can find changed requirements for DEV300 in my following issue.

http://www.openoffice.org/issues/show_bug.cgi?id=88772

If you dare try build on mingw, the documents may be of some help.

Best Regards

Takashi Ono ([EMAIL PROTECTED])

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Need Help, Problem on building with MinGW.

2008-10-27 Thread Cynthia Qu
hi,all

I have met some problems when I am building OOo_SRC680_m247 with MinGW on 
Windows XP. I just want to compile with mingw now. 

I got the information here:
http://tools.openoffice.org/dev_docs/build_windows_mingw.html

My problems are:
1. I cannot pass configure when I use mingw shell (there is only sh in the 
/bin ), and I will get the error information. So I have to 
turn to help from Cygwin, and I am not sure whether it is right or wrong.

2. When I am doing configure with Cygwin, the compiler is looking for 
mspdb71.dll, but I want to use g++ instead of cl.exe, why does it 
still need this file?

 Error Information:
 *
checking for friendly registry keys... done
configure: error: You need a mspdb71.dll, make sure it's in the path or use 
--with-mspdb-path
 *

3. then, I copy mspdb71.dll into C: , and do configure again, and it is wrong.
  I don't know why does it look for cl.exe.

Error information:
 *
checking for friendly registry keys... Can't find MS Visual Studio / VC++ at ./o
owintool line 176.
done
checking for mspdb71.dll... /cygdrive/c
checking the Microsoft C/C++ Compiler... checking for cl.exe... no
configure: error: Microsoft C/C++ Compiler not found. Use --with-cl-home or set
path to cl.exe.
** 

Have you ever met/dealed such problem ?

My Build Env is:

1. Windows XP SP2
2. CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57
3. MinGW , with gcc version 3.4.5 (mingw special r3)
4. msys 1.0.9, with:
   MSYS-1.0.9.exe,
   msysDTK-1.0.1.exe,
   binutils-2.18.50-20080109-2-src.tar.gz( I don't know  how to patch it, so I 
didn't do that.)
   mingw-runtime-3.2-src.tar.gz,
   w32api-2.5-src.tar.gz,
   bison,
   flex.
5. MS 2005 Professional
6. Windows Software Development Kit (SDK) for Windows Server 2008 and .NET 
Framework 3.5 Release 

And My configure:
*
./configure --with-mingwin=/cygdrive/c/MinGW 
--with-jdk-home=/cygdrive/c/OOENV/jdk1.5.0_16 
--with-psdk-home=/cygdrive/c/OOENV/PSDK 
--with-ant-home=/cygdrive/c/OOENV/ant1.7 --disable-odk --disable-activex 
--disable-directx --with-asm-home=/cygdrive/c/Program 
Files/Microsoft Visual Studio 8/VC/bin --disable-mozilla 
--without-myspell-dicts --with-mspdb-path=/cygdrive/c
**

P.S:

I do not use binutils-2.13.90-20030111-1-src.tar.gz,  for I cannot  make 
install it, with information: 
*
./arlex.l: line 11: syntax error near unexpected token `any'
./arlex.l: line 11: `(at your option) any later version.'
make[3]: *** [arlex.c] Error 1
make[3]: Leaving directory `/usr/src/binutils-2.13.90-20030111-1-src/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/binutils-2.13.90-20030111-1-src/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/src/binutils-2.13.90-20030111-1-src/binutils'
make: *** [all-binutils] Error 2
*
I have patched binutils-2.13 with this version. And I checked the flex and 
bison. I found yacc is in C:\MinGW\bin , and flex is in 
C:\Program Files\GnuWin32\bin on my mechine. Is there anything I have missed? 
Then I changed it to binutils-2.18.50-20080109-2.

Any hint? Thank you in advance! 

Best Regards,
Cynthia
2008-10-27


Re: [dev] Need Help, Problem on building with MinGW.

2008-10-27 Thread Christian Lins
On 10/27/08 10:57, Cynthia Qu wrote:
 hi,all
 
 I have met some problems when I am building OOo_SRC680_m247 with MinGW on 
 Windows XP. I just want to compile with mingw now. 

Building OOo with MinGW is not easy and requires special tricks and
patches to succeed.
So, if you are unexperienced in building OOo try a clean Cygwin build
(which is also not simple) or better a Linux-build (e.g. Ubuntu (amd64))
which is in my opinion the best platform for start building OOo.

Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]