Although the postinstall bit is outdated. All you need to do (and thats what the postinstall script does) is set your PATH correctly:
export PATH=/mingw/bin:$PATH
Assuming this is where your gcc.exe is located (no need for prefixes with native toolchains. If you do not have a native toolchain, find one here). Then you need to configure with the following argument (as described on the wiki):
--host=x86_64-w64-mingw32
If that does not work, that means log4cxx is using a crappy configure script, and you should add
CXX=g++ CC=gcc
to your configure command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Log4cplus has normal Autoconf/Automake build system that should definitely not be that broken that it would fail like that. It works on various systems, including Linux, AIX, HP-UX, etc.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks a lot chaps; i re-explored the options of changing the path and adding the extra options and i'm so sorry i was an idiot check the == after CC that was the root cause all along. Thanks so much for your time it's really appreciated as without i would still have never spotted that glaring error!
Thanks a lot chaps; i re-explored the options of changing the path and adding the extra options and i'm so sorry i was an idiot check the == after CC that was the root cause all along. Thanks so much for your time it's really appreciated as without i would still have never spotted that glaring error!
Hi; I'm having a problem with compiling on WIN64 using Mingw. I'm trying to configure with:
./configure --prefix=/mingw/usr CXXFLAGS=-std=gnu++0x CXX=/c/MinGW/bin/x86_64-w64-mingw32-g++.exe CC==/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe
And then i get errors like:
configure:3446: checking for C compiler version
configure:3455: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe --version >&5
./configure: line 3457: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe: No such file or directory
configure:3466: $? = 127
configure:3455: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe -v >&5
./configure: line 3457: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe: No such file or directory
configure:3466: $? = 127
configure:3455: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe -V >&5
./configure: line 3457: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe: No such file or directory
configure:3466: $? = 127
configure:3455: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe -qversion >&5
./configure: line 3457: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe: No such file or directory
configure:3466: $? = 127
configure:3486: checking whether the C compiler works
configure:3508: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe conftest.c >&5
./configure: line 3510: =/c/MinGW/bin/x86_64-w64-mingw32-gcc.exe: No such file or directory
configure:3512: $? = 127
configure:3550: result: no
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "log4cplus"
| #define PACKAGE_TARNAME "log4cplus"
| #define PACKAGE_VERSION "1.1.3"
| #define PACKAGE_STRING "log4cplus 1.1.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| / end confdefs.h. /
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3555: error: in `/e/Downloads/log4cplus-1.1.3-rc1/log4cplus-1.1.3-rc1':
configure:3557: error: C compiler cannot create executables
If i then try to compile that using gcc myself it works a treat.
BTW; i just tried clean install from:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.8.2/threads-posix/seh/
http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/
And still the same result :( I'm then running on Windows 7x64
Is it something to do with my msys installation? Any help would be much appreciated!
BTW old post on log4cplus forums with recommendation to post here.
https://plus.google.com/app/basic/stream/z13lz5iakyewh1zrx04cc1izqlvhdrjjwtg0k?cbp=12scvuixi8yto&sview=27&cid=5&soc-app=115&soc-platform=1&spath=/app/basic/109191887257097115521/posts&sparm=cbp%3D1bo75s34lnwih%26sview%3D58%26cid%3D5%26soc-app%3D115%26soc-platform%3D1%26spath%3D/app/basic/communities/117815353450765593933%26sparm%3Dcbp%253Dxx3mkrhbo4wf%2526sview%253D58%2526cid%253D5%2526soc-app%253D115%2526soc-platform%253D1%2526spath%253D/app/basic/stream%2526sparm%253Dcbp%25253D16cyknnlk1sii%252526sview%25253D58%252526cid%25253D5%252526soc-app%25253D115%252526soc-platform%25253D1%2526hnm%253Di6c0uawq3LPUVad4oB6MYvxctyUsZkvI
The best way to use MSYS is described on the wiki: https://sourceforge.net/apps/trac/mingw-w64/wiki/MSYS
Although the postinstall bit is outdated. All you need to do (and thats what the postinstall script does) is set your PATH correctly:
Assuming this is where your gcc.exe is located (no need for prefixes with native toolchains. If you do not have a native toolchain, find one here). Then you need to configure with the following argument (as described on the wiki):
If that does not work, that means log4cxx is using a crappy configure script, and you should add
to your configure command.
This is about log4cplus, not log4cxx. They are actually two different projects.
Log4cplus has normal Autoconf/Automake build system that should definitely not be that broken that it would fail like that. It works on various systems, including Linux, AIX, HP-UX, etc.
Ok, misread, apologies to the author. Oh that's you
;-)
.Thanks a lot chaps; i re-explored the options of changing the path and adding the extra options and i'm so sorry i was an idiot check the == after CC that was the root cause all along. Thanks so much for your time it's really appreciated as without i would still have never spotted that glaring error!
./configure --prefix=/mingw/usr CXXFLAGS=-std=gnu++0x CXX=x86_64-w64-mingw32
-g++.exe CC=x86_64-w64-mingw32-gcc.exe --host=x86_64-w64-mingw32
Now working perfectly
Thanks a lot chaps; i re-explored the options of changing the path and adding the extra options and i'm so sorry i was an idiot check the == after CC that was the root cause all along. Thanks so much for your time it's really appreciated as without i would still have never spotted that glaring error!
./configure --prefix=/mingw/usr CXXFLAGS=-std=gnu++0x CXX=x86_64-w64-mingw32
-g++.exe CC=x86_64-w64-mingw32-gcc.exe --host=x86_64-w64-mingw32
Now working perfectly