![]() |
windows vista compiling problems - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: windows vista compiling problems (/showthread.php?tid=865) |
windows vista compiling problems - muska54 - 01-14-2008 Hi all , I am using VDrift for a college project but am having trouble compiling in windows vista. i am following the steps in the wiki for compiling and have working installations of mingw, MSYS, python, and scons. when i run ./configure , this happens.. Bren@BRENDAN /c/newVDrift/bullet-2.64 $ ./configure checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. *this is the log file: file C:\newVDrift\SConstruct,line 331: Configure(confdir = .sconf_temp) *SConstruct file: #--------------------------# # Check for Libs & Headers # #--------------------------# (line 331) conf = Configure(env) for header in check_headers: if not conf.CheckCXXHeader(header): print 'You do not have the %s headers installed. Exiting.' % header Exit(1) i have set up minGW and msys correctly i believe. when installing msys, it wanted me to declare where minGW was installed and it picked it up fine. any help would be great thank you. Brendan. sony vaio laptop fe41s windows vista 1.66ghz core 2 duo 2gb ram nvidia 7600 video card - joevenzon - 01-14-2008 Can you post the contents of /c/newVDrift/bullet-2.64/config.log? But based on the ./configure output, it looks like mingw might not be installed properly. You could test it by making a simple C++ file called "test.cpp" and running Code: g++ test.cpp -o test - muska54 - 01-14-2008 This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by bullet configure 2.64, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = Brendan uname -m = i686 uname -r = 1.0.10(0.46/3/2) uname -s = MINGW32_NT-6.0 uname -v = 2004-03-15 07:17 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: . PATH: /usr/local/bin PATH: /mingw/bin PATH: /bin PATH: /c/Windows/system32 PATH: /c/Windows PATH: /c/Windows/System32/Wbem PATH: /c/Program Files/Microsoft SQL Server/90/Tools/binn/ PATH: /c/Program Files/QuickTime/QTSystem/ PATH: /c/Program Files/MATLAB/MATLAB Component Runtime/v75/runtime/win32 PATH: /c/Python25 PATH: /c/Dev-Cpp/bin PATH: /c/Program Files/Microsoft Visual Studio6/Common/Tools/WinNT PATH: /c/Program Files/Microsoft Visual Studio6/Common/MSDev98/Bin PATH: /c/Program Files/Microsoft Visual Studio6/Common/Tools PATH: /c/Program Files/Microsoft Visual Studio6/VC98/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1369: checking build system type configure:1387: result: i686-pc-mingw32 configure:1395: checking host system type configure:1409: result: i686-pc-mingw32 configure:1476: checking for gcc configure:1492: found /mingw/bin/gcc configure:1502: result: gcc configure:1746: checking for C compiler version configure:1749: gcc --version </dev>&5 gcc.exe (GCC) 3.4.5 (mingw special) Copyright © 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1752: $? = 0 configure:1754: gcc -v </dev>&5 Reading specs from c:/MinGW/lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw special) configure:1757: $? = 0 configure:1759: gcc -V </dev>&5 gcc.exe: `-V' option must have argument configure:1762: $? = 1 configure:1785: checking for C compiler default output file name configure:1788: gcc conftest.c >&5 gcc.exe: installation problem, cannot exec `cc1': No such file or directory configure:1791: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "bullet" | #define PACKAGE_TARNAME "bullet" | #define PACKAGE_VERSION "2.64" | #define PACKAGE_STRING "bullet 2.64" | #define PACKAGE_BUGREPORT "bullet@erwincoumans.com" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:1830: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-mingw32 ac_cv_build_alias=i686-pc-mingw32 ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=i686-pc-mingw32 ac_cv_host_alias=i686-pc-mingw32 ac_cv_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## APPLE_LIBTOOL='' CC='gcc' CFLAGS='' CPP='' CPPFLAGS='' CS_LT_APPLE='' CXX='' CXXFLAGS='' DEFS='' DLLTOOL='' DLLWRAP='' DOT='' DOXYGEN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' INSTALL='' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LIBTOOL_PATH='' LIBTOOL_TEST='' LTLIBOBJS='' MKDIR='' MKDIRS='' OBJCOPY='' OBJEXT='' PACKAGE_BUGREPORT='bullet@erwincoumans.com' PACKAGE_NAME='bullet' PACKAGE_STRING='bullet 2.64' PACKAGE_TARNAME='bullet' PACKAGE_VERSION='2.64' PATH_SEPARATOR=':' PERL='' RANLIB='' SHELL='/bin/sh' STRINGS='' TTREE='' WINDRES='' X_CFLAGS='' X_EXTRA_LIBS='' X_LIBS='' X_PRE_LIBS='' ac_ct_CC='gcc' ac_ct_CXX='' ac_ct_DLLTOOL='' ac_ct_DLLWRAP='' ac_ct_DOT='' ac_ct_LIBTOOL='' ac_ct_LIBTOOL_TEST='' ac_ct_OBJCOPY='' ac_ct_RANLIB='' ac_ct_STRINGS='' ac_ct_WINDRES='' bindir='${exec_prefix}/bin' build='i686-pc-mingw32' build_alias='' build_cpu='i686' build_os='mingw32' build_vendor='pc' datadir='${prefix}/share' exec_prefix='NONE' host='i686-pc-mingw32' host_alias='' host_cpu='i686' host_os='mingw32' host_vendor='pc' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='NONE' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "bullet@erwincoumans.com" #define PACKAGE_NAME "bullet" #define PACKAGE_STRING "bullet 2.64" #define PACKAGE_TARNAME "bullet" #define PACKAGE_VERSION "2.64" configure: exit 77 it must be my install of the compiler though because i cant even compile a simple helloworld.cpp , i have the latest version of mingw so i dont understand.. ill keep on looking for a solution for that. maybe there is something i am missing Thanks for taking a look - joevenzon - 01-14-2008 Make sure you have mingw *and* msys downloaded and installed in the same location (they come in separate packages). - muska54 - 01-18-2008 for some reason the installation of mingw doesnt set paths automatically in vista... that was my problem solved. however i now have a new problem when i run scons , i get this error: ![]() even though i have not touched stdio it works fine in XP but not here, im not really sure what would cause this. The output carries on like this with syntax errors and undeclared variables for stdlib.h and string.h ![]() has anybody else have this problem? thanks -Brendan - thelusiv - 01-18-2008 BinReloc is used for Linux + Autopackage only, it can be disabled on Windows, and the data directory should be hard coded. I thought we had some checks for that already, both in the SCons(struct|script) files and in the code in the forms of #ifdefs. - joevenzon - 01-18-2008 Also, you want to run everything from the msys command prompt, not from cmd.exe - muska54 - 01-20-2008 yeah i tried to run scons from msys but got a command not found error. i have posted in the topic relating to this to see if the topic starter can tell me how they fixed it. but if i want to disable the binreloc how would i go about this? it compiles fine for me in XP - thelusiv - 01-21-2008 This section of the SConstruct file (starting at line 365) should take care of turning off BinReloc: Code: if ( 'win32' == sys.platform or 'cygwin' == sys.platform ): It may be that this is getting ignored because sys.platform is something besides "win32" or "cygwin". Perhaps it should also check for "msys" or something like that? Again I haven't tried this at all. I do not have a Vista test machine. You could find out the value of sys.platform by running python within msys and typing "sys.platform" on the python console. You can manually disable BinReloc in definitions.h, but you'll have to disable writing of definitions.h by scons (comment out the call to the write_definitions function in SConstruct on line 500), or your changes will be overwritten when you run scons. - muska54 - 01-21-2008 ok thanks, what is the way to disable binreloc in the definitions.h file? #ifndef _DEFINITIONS_H #define _DEFINITIONS_H #define SETTINGS_DIR ".vdrift" #define DATA_DIR "./data" #define DEBUG 1 #define VERSION "development-full" #endif // _DEFINITIONS_H where would the code go? cheers Brendan - thelusiv - 01-21-2008 That looks right. When it gets turned on, then the following is added to the definitions.h: Code: #define ENABLE_BINRELOC |