project-navigation
Personal tools

Author Topic: (log) Actually got new build system to (partially) work on Windows 7  (Read 35672 times)

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
OK, this is what I've found is necessary to build with the new MSYS thing on Windows, and it looks like I actually got "game.dll" to compile but not most of the other stuff.

1 - Download the custom C::B package from UFO:AI site.

2 - Unpack it and add the MinGW/bin folder to the Windows PATH

3 - Go in to MinGW/bin and COPY the "gcc.exe" (not re-name!) file to "cc.exe"

4 - Run the MSYS shell from the batch file in the C::B package under MinGW

5 - Change directory inside the shell to where your downloaded Git copy of the game is

6 - Run "configure"

7 - Run "make"

8 - Watch happily as some stuff compiles and other stuff bombs out (until things are fixed).


As you can see in the log, I also ran "make ufo2map" because when testall failed, it stopped there and I wanted to see if I could make other parts compile.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #1 on: October 02, 2010, 11:18:32 pm »
First please move this here

.) Than use the attached bash script to build a MinGW environment (ver 0.3.0)
.) move ufoai source under c:\wherever\UFOAIwin32BUILDenv\mingw
.) run the bat
.) move to /mingw
.) ./configure LDFLAGS="-static-libgcc -static-libstdc++"
.) sed 's/#undef HAVE_THEORA_THEORA_H/#define HAVE_THEORA_THEORA_H/g' config.h >config.h.tmp && mv config.h.tmp config.h
.) sed 's/#undef HAVE_XVID_H/#define HAVE_XVID_H/g' config.h >config.h.tmp && mv config.h.tmp config.h
.) sed 's/#undef HAVE_VORBIS_CODEC_H/#define HAVE_VORBIS_CODEC_H/g' config.h >config.h.tmp && mv config.h.tmp config.h
.) make
.) ....

btw. to link statically use
.) ./configure LDFLAGS="-static"
but not on radiant, even ufo.exe will not link successfully because of some missing libs
(not the libs are missing, the command line miss some libs)


I'm able to build ufo.exe + tools even radiant (yes under MinGW)
Static linking need a fix
and the undef bug in configure need to be fixed too
under C::B you can use (other linker options) ... to build ufo.exe using static libs
I'm sure some libs can be removed
Code: [Select]
-static
--start-group -lopengl32 -lSDL_mixer -lSDLmain -lSDL -lSDL_image  -lSDL_ttf -lpthread -lcurl -lpng14 -ltiff -lfreetype -ljpeg -lflac -ltheora -lvorbis -logg -lvorbisfile -lxvidcore -lsmpeg -lintl -lws2_32 -ldxguid -liconv -lz -lwinmm  --end-group




The new MinGW is bigger than the old one
because of tons of dll's (I hate it to search for dll's)
I've modified libxml to use libxml2.dll instead of libxml2-2.dll (radiant related*)
I've modified gettext, more specific libintl to use intl.dll instead of libintl-8.dll (radiant related*)
I'm using libjpeg-turbo instead of the old libjpeg6 ( because its maintained [libjpeg8 isn't compatible] )
Python support
Git support
recompiled all libs needed for ufoai+tools using --enable-static --enable-shared (exclusive radiant libs)


*
gtk and glib do have a lot of dependencies
and those old dlls request for libxml2.dll.. forced me to manipulate the lib (only pointing to the right direction *.la, *.dll.a files)
to reduce the dll's under contrib\radiant
radiant need the new libglib-2.0-0.dll because of malloc0

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #2 on: October 02, 2010, 11:26:03 pm »
the commandline does not miss any libs on my static build that is produced each night with our build bot at http://ufoai.ninex.info/snapshots - so maybe one of your libs is not build statically?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #3 on: October 02, 2010, 11:27:18 pm »
btw. also radiant links statically now - though the version that was last produced by the night build has problems with from gtkglext widget - still searching for it. would be nice if someone else could test it, too - maybe it's only my machine.

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #4 on: October 03, 2010, 12:58:21 am »
@ Muton & Mattn:

Some of what you have discussed in this thread I am familiar with and understand, some I don't, but regardless, just let me know when fixes/updates are committed to the master (for this issue) and I will happily try again (and post another log), until the system fully works.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #5 on: October 03, 2010, 06:54:32 am »
there is nothing wrong with the build in master, you just don't have the pkg-config files for SDL in lib/pkg-config/sdl.pc

a new mingw package would be needed that also contain these files

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #6 on: October 03, 2010, 04:42:54 pm »
> so maybe one of your libs is not build statically?

They are, using C::B result in a working ufo.exe
I've used the last svn sources, btw.
The git source compile ufo.exe without any problem (if i copy gcc.exe to cc.exe [/bin/sh: cc: command not found])
but shared.
A static build instead .... (missing libs like dxguid)
$ pkg-config.exe --libs --static sdl
-mwindows -LD:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib -lmingw32 -lSDLmain -lSDL -liconv -lm -luser32 -lgdi32 -lwinmm -ldxguid
Code: [Select]
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libintl.a(dcigettext.o):dcigettext.c:(.text+0x716): undefined reference to `libiconv'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libintl.a(dcigettext.o):dcigettext.c:(.text+0x8fb): undefined reference to `libiconv_open'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libintl.a(dcigettext.o):dcigettext.c:(.text+0x96e): undefined reference to `libiconv_open'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libintl.a(relocatable.o):relocatable.c:(.text+0x4f): undefined reference to `libiconv_set_relocation_prefix'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x178): undefined reference to `timeSetEvent@20'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_systimer.o):SDL_systimer.c:(.text+0x1c6): undefined reference to `timeKillEvent@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x152): undefined reference to `IID_IDirectDrawSurface3'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0xfe9): undefined reference to `IID_IDirectDraw2'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x2025): undefined reference to `IID_IDirectDrawSurface3'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x2c6e): undefined reference to `IID_IDirectDrawSurface3'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x3ba1): undefined reference to `IID_IDirectDrawGammaControl'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.text+0x3df3): undefined reference to `IID_IDirectDrawGammaControl'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x0): undefined reference to `GUID_Key'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x10): undefined reference to `GUID_Key'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x20): undefined reference to `GUID_Key'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x30): undefined reference to `GUID_Key'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x40): undefined reference to `GUID_Key'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x50): more undefined references to `GUID_Key' follow
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1000): undefined reference to `GUID_XAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1010): undefined reference to `GUID_YAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1020): undefined reference to `GUID_ZAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1080): undefined reference to `GUID_XAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1090): undefined reference to `GUID_YAxis'

:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x10a0): undefined reference to `GUID_ZAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1140): undefined reference to `GUID_XAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1150): undefined reference to `GUID_YAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1160): undefined reference to `GUID_ZAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1170): undefined reference to `GUID_RxAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1180): undefined reference to `GUID_RyAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x1190): undefined reference to `GUID_RzAxis'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11a0): undefined reference to `GUID_Slider'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11b0): undefined reference to `GUID_Slider'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11c0): undefined reference to `GUID_POV'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11d0): undefined reference to `GUID_POV'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11e0): undefined reference to `GUID_POV'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5video.o):SDL_dx5video.c:(.data+0x11f0): undefined reference to `GUID_POV'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x2b3): undefined reference to `joyGetNumDevs@0'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x2e2): undefined reference to `joyGetPosEx@8'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x30f): undefined reference to `joyGetDevCapsA@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_mmjoystick.o):SDL_mmjoystick.c:(.text+0x759): undefined reference to `joyGetPosEx@8'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x1cf): undefined reference to `waveOutGetErrorTextA@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x2a2): undefined reference to `waveOutWrite@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x380): undefined reference to `waveOutClose@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x3dc): undefined reference to `waveOutUnprepareHeader@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x5cf): undefined reference to `waveOutOpen@24'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dibaudio.o):SDL_dibaudio.c:(.text+0x768): undefined reference to `waveOutPrepareHeader@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5yuv.o):SDL_dx5yuv.c:(.text+0xcd): undefined reference to `IID_IDirectDrawSurface3'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.text+0x234): undefined reference to `IID_IDirectInputDevice2A'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.data+0x4): undefined reference to `GUID_SysKeyboard'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_dx5events.o):SDL_dx5events.c:(.data+0x1c): undefined reference to `GUID_SysMouse'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x163): undefined reference to `mciSendCommandA@16'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL.a(SDL_syscdrom.o):SDL_syscdrom.c:(.text+0x18c): undefined reference to `mciGetErrorStringA@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x12): undefined reference to `jpeg_calc_output_dimensions'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x1c): undefined reference to `jpeg_CreateDecompress'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x26): undefined reference to `jpeg_destroy_decompress'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x30): undefined reference to `jpeg_finish_decompress'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x3a): undefined reference to `jpeg_read_header'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x44): undefined reference to `jpeg_read_scanlines'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x4e): undefined reference to `jpeg_resync_to_restart'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_jpg.o):IMG_jpg.c:(.text+0x58): undefined reference to `jpeg_start_decompress'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x20): undefined reference to `png_create_read_struct'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x2a): undefined reference to `png_destroy_read_struct'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x34): undefined reference to `png_get_IHDR'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x48): undefined reference to `png_get_tRNS'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x52): undefined reference to `png_get_valid'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x5c): undefined reference to `png_read_image'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x66): undefined reference to `png_read_info'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x70): undefined reference to `png_read_update_info'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x7a): undefined reference to `png_set_expand'

:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x84): undefined reference to `png_set_gray_to_rgb'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0x98): undefined reference to `png_set_read_fn'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_png.o):IMG_png.c:(.text+0xa2): undefined reference to `png_set_strip_16'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_tif.o):IMG_tif.c:(.text+0x12): undefined reference to `TIFFClientOpen'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_tif.o):IMG_tif.c:(.text+0x1c): undefined reference to `TIFFClose'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_tif.o):IMG_tif.c:(.text+0x26): undefined reference to `TIFFGetField'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_tif.o):IMG_tif.c:(.text+0x30): undefined reference to `TIFFReadRGBAImage'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_image.a(IMG_tif.o):IMG_tif.c:(.text+0x3a): undefined reference to `TIFFSetErrorHandler'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x16): undefined reference to `SMPEG_actualSpec'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x20): undefined reference to `SMPEG_delete'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x2a): undefined reference to `SMPEG_enableaudio'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x34): undefined reference to `SMPEG_enablevideo'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x3e): undefined reference to `SMPEG_new'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x48): undefined reference to `SMPEG_new_rwops'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x52): undefined reference to `SMPEG_play'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x5c): undefined reference to `SMPEG_playAudio'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x66): undefined reference to `SMPEG_rewind'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x70): undefined reference to `SMPEG_setvolume'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x7a): undefined reference to `SMPEG_skip'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x84): undefined reference to `SMPEG_status'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_mp3.o):dynamic_mp3.c:(.text+0x8e): undefined reference to `SMPEG_stop'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x3c): undefined reference to `midiOutUnprepareHeader@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0xf0): undefined reference to `midiOutPrepareHeader@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x122): undefined reference to `midiStreamOut@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x41e): undefined reference to `midiStreamOpen@24'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x43c): undefined reference to `midiStreamClose@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x5bb): undefined reference to `midiStreamStop@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x5cb): undefined reference to `midiStreamClose@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x646): undefined reference to `midiStreamOpen@24'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x6ad): undefined reference to `midiStreamProperty@12'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x6cb): undefined reference to `midiStreamRestart@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x6ef): undefined reference to `midiStreamStop@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x6ff): undefined reference to `midiStreamClose@4'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(native_midi_win32.o):native_midi_win32.c:(.text+0x789): undefined reference to `midiOutSetVolume@8'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x53): undefined reference to `ov_clear'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x5d): undefined reference to `ov_info'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x67): undefined reference to `ov_open_callbacks'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x71): undefined reference to `ov_pcm_total'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x7b): undefined reference to `ov_read'
D:/temp/TMP_CO~2/UFOAIW~1/MinGW/lib\libSDL_mixer.a(dynamic_ogg.o):dynamic_ogg.c:(.text+0x85): undefined reference to `ov_time_seek'

> btw. also radiant links statically now - though the version that was last produced by the night build has problems with from gtkglext widget

I'm using the last sources now to compile radiant using static libs from mingw-cross-env-2.15
Its not working
fist gtk+ libs aren't found
modified mingw32.mk (libs)
GTK_CFLAGS               ?= $(call PKG_CFLAGS,gtk-win32-2.0) $(call PKG_CFLAGS,libxml2)
GTK_LIBS                 ?= $(call PKG_LIBS,gtk-win32-2.0) $(call PKG_LIBS,libxml2)
XML2_CFLAGS              ?= $(call PKG_CFLAGS,libxml2)
XML2_LIBS                ?= $(call PKG_LIBS,libxml2)
OPENAL_CFLAGS            ?= $(call PKG_CFLAGS,openal32)
OPENAL_LIBS              ?= $(call PKG_LIBS,openal32)

Its unbelievable slow to compile radiant under MinGW
its at least 5 times slower than on C::B
and i receive tons of linker errors
Not even shared is possible -> linker errors


There is one problem with libgio
Windows 2000 support
wspiapi.h is not used even if its there (configure)
So your radiant build wont work on w2k
I've been btw unable to simly build ufo.exe on mingw to support w2k


I give up  >:(
i stay on C::B
its faster
easier to use
i can add or remove libs without taking care about pkg-config
and the output (errors) is useful (-Wall seams to have no effect)

Ufo and tools are static
radiant (this crappy tool) is dynamic and w2k compatible
and thats it

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #7 on: October 03, 2010, 07:47:19 pm »
export CC=gcc
or add this to config.mk (create that file)
Code: [Select]
CC=gcc

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #8 on: October 06, 2010, 07:53:35 pm »
i've checked in a c::b project file that works with the makefiles in the background - just make sure your sdl-config is returning the correct path for sdl-config --cflags - in the c::b package we offer for download it points to dave's home dir - which will of course fail for everyone else. If you get a SDL_opengl.h not found error, this is due to the wrong path in sdl-config

> i've checked in a c::b project file that works with the makefiles in the background

 ??? ??? ???
I'm using cbp files

ufo.rc
1 RT_MANIFEST DISCARDABLE "build/projects/ufo.exe.manifest"
101 ICON DISCARDABLE "build/projects/ufo.ico"
112 ICON DISCARDABLE "build/projects/ufoded.ico"
radiant.rc
101 ICON DISCARDABLE "build/projects/radiant.ico"
windres error

You trashed
#ifndef CROSSBUILD
1 RT_MANIFEST DISCARDABLE "ufo.exe.manifest"
101 ICON DISCARDABLE "ufo.ico"
112 ICON DISCARDABLE "ufo_ded.ico"
#else
1 RT_MANIFEST DISCARDABLE "build/projects/ufo.exe.manifest"
101 ICON DISCARDABLE "build/projects/ufo.ico"
112 ICON DISCARDABLE "build/projects/ufo_ded.ico"
#endif

ufomodel
linker error
.objs\ufomodel\src\client\renderer\r_model_md2.o:r_model_md2.c:(.text+0x55f): undefined reference to `R_UseActorSkin'
.objs\ufomodel\src\client\renderer\r_model_md2.o:r_model_md2.c:(.text+0x5cc): undefined reference to `R_LoadActorSkinsFromModel'

I had to add
   client/renderer/r_model.c
   client/renderer/r_model_alias.c


That make me think you dropped C::B

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #9 on: October 06, 2010, 09:14:13 pm »
That make me think you dropped C::B
C::B will not be dropped before the last dev has moved away from it. At least I am requesting this.

I've been trying eclipse for a week or so and was very pleased about what I saw. Looks like eclipse is equivalent or slightly better in every aspect and clearly superior in a few important features, namely the call-, callee-, include- and type-trees I've been missing so much in CB. I'm pretty sure I will immediately ditch CB once eclipse runs smoothly on my machine.

atm I'm using eclipse for analysis and CB for compling, so I have the same prob with *.rc as you.

@Mattn:
Is there any reason why we shouldn't put the CROSSBUILD stuff back in for a while ?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #10 on: October 07, 2010, 04:41:08 pm »
@Mattn:
Is there any reason why we shouldn't put the CROSSBUILD stuff back in for a while ?

because it should get fixed, not hacked (i'm working on all this stuff).

did you try the new c::b project file already? (it's in the root of the ufoai checkout dir named ufo.cbp) the new one is just using the makefiles for compilation. (you have to fix your sdl-config to make this work)
« Last Edit: October 07, 2010, 04:54:28 pm by Mattn »

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #11 on: October 07, 2010, 09:17:58 pm »
because it should get fixed, not hacked (i'm working on all this stuff).
Sounds good. But I meant *until* it is fixed ;)

did you try the new c::b project file already? (it's in the root of the ufoai checkout dir named ufo.cbp) the new one is just using the makefiles for compilation. (you have to fix your sdl-config to make this work)
I just did. After the usual slow start (which feel like a minute) it compiles nicely until the linker gives me those 2 million 'undef ref to ogg*' errors.

But I forgot to fix sdl_config ! So I looked into it and found that the prefix doesn't point to dave but instead is set correctly.
Maybe that is the reason for my local problems with ogg. Outdated codeblock.zip ? As far as I can tell the one I use is from September or October. *2009* !!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #12 on: October 07, 2010, 10:04:15 pm »
this only happens for ufo (client)? or also for other modules (e.g. testall)?

i've added ogg to ufo and testall now - please retry with latest master

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #13 on: October 07, 2010, 11:00:09 pm »
this only happens for ufo (client)? or also for other modules (e.g. testall)?
I started C::B with the \ufoai\ufo.cbp you mentioned above. That only compiles game and ufo.
Which testall.cbp do you want me to use ?

i've added ogg to ufo and testall now - please retry with latest master
I did. Some more warnings (casts and strdup), but NO linker errors :) Still terribly slow, though.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: (log) Actually got new build system to (partially) work on Windows 7
« Reply #14 on: October 07, 2010, 11:22:43 pm »
btw this time I did a rebuild, which does not clean and build game.dll. Intended or bug ?