Hi all,
John, Thanks for your suggestions. I gave the following command from Msys
shell,
$ ../configure --build=i686-pc-mingw32 --host=i686-w64-mingw32
--target=i686-w6
4-mingw32 --disable-shared --disable-threads --with-msw  --enable-unicode
expor
t CXXFLAGS="-m32 -Wno-error=switch" export CPPFLAGS ="-m32"  export
LDFLAGS="-m
32 -mwindows" --disable-monolithic --enable-release --without-libjpeg
--without-libpng --without-zlib
--without-libtiff --without-expat --without-regex export RCFLAGS="-F
pe-i386"

The command was successful. Then, make and make install worked fine. To
test the install, gave the following command,

Raji@COMPUTER_1 /wx/msw_build/samples/minimal
$ make
g++ -o minimal.exe minimal_sample_rc.o  minimal_minimal.o
 -L/wx/msw_build/lib
 -mwindows  -m32 -mwindows   -lwx_mswu_core-2.8-i686-w64-mingw32
 -lwx_baseu-2.8
-i686-w64-mingw32           -m32 -mwindows  -lrpcrt4 -loleaut32 -lole32
-luuid -
lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32
-lwsock32
 -lgdi32  -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32
-lcomc
tl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32
e:/mingw32_64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.1/../../../../x86_64-w64-min
gw32/bin/ld.exe: i386:x86-64 architecture of input file
`minimal_sample_rc.o' is
 incompatible with i386 output
collect2: ld returned 1 exit status
make: *** [minimal.exe] Error 1

As i have ignored expat, tiff,jpeg, zlib, regex,png, may be the above error
is due to that. So, want to include these utilities. The following link
http://www.gaia-gis.it/spatialite-2.4.0-3/mingw_how_to.html contains all
the information for installing the above utilities. I just checked the
msysgit/bin, and found that libexpat-0.dll and libz.dll are available.
msysgit is linked correctly (solved by Earnie) to msys through profile
file. Can i safely follow the above link and install the above utilities.
Regards,
Raj007


On Tue, Apr 10, 2012 at 6:16 PM, rajeshwari b <[email protected]>wrote:

> Hi all,
> When compiling with stand alone TDM-GCC without Msys, the compilation
> stopped midway, so the file ' compile_log_tdm-gcc' contained its log.
> Thanks for the information regarding the compiler /linker flags. Yet to
> experiment using the flags on the stand alone TDM-GCC. I also understand
> that, when compiling through Msys, the errors were due to link errors, as
> per the FAQ in the wxWindows Quick reference. So, have reported the same
> with wxwidgets forum.
> Rgds,
> Raj007
>
>
> On Mon, Apr 9, 2012 at 8:32 PM, John E. / TDM <[email protected]> wrote:
>
>> On 4/8/2012 11:37 PM, rajeshwari b wrote:
>>
>>> I tried building wxWidgets 2.8.12 through Msys. That is, through Msys
>>> shell, the TDM-GCC was accessed. The log is attached regarding the commands
>>> given, configuration, and make.
>>>
>>
>> I have never tried building wxWidgets in MSYS. However, I've heard it is
>> supposed to be possible. Your mileage may vary.
>>
>>
>>  Previously, i could build wxWidgets 2.8.12successfully  through TDM-GCC,
>>> which then was not accessible from Msys. Then, tried compiling from TDM-GCC
>>> terminal which was again giving error. I didn't save that log.
>>>
>> *snip*
>>
>>  then, opened the TDM-GCC terminal, removed the wxwidgets2.8.12 and then
>>> installed again, i have attached the log (file name: compile_log_tdm-gcc)
>>> for that.
>>>
>>
>> This log appears incomplete -- I see no error messages.
>>
>> If you want to use the TDM64 version of TDM-GCC to build a 32-bit version
>> of wxWidgets, you'll probably need to alter "makefile.gcc" according to
>> what I noted in my post here: <http://forums.codeblocks.org/**
>> index.php/topic,12701.**msg86317.html#msg86317<http://forums.codeblocks.org/index.php/topic,12701.msg86317.html#msg86317>
>> >.
>>
>> Even without having done that, your command for the build is not doing
>> what you think. Assigning different values to the same environment variable
>> doesn't add to it; it is merely overridden by the most recent assignment.
>>  I recommend the commands referenced in the wxWindowQuickRef at <
>> http://wiki.codeblocks.org/**index.php?title=**WxWindowsQuickRef<http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef>>,
>> with a couple of additions for your specific use case:
>>
>> mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=0
>> UNICODE=1 CFLAGS=-m32 CXXFLAGS=-m32 RCFLAGS="-F pe-i386"
>>
>>
>> Cheers,
>> John E. / TDM
>>
>
>
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to