1
Coding / Compiling ufo2map.cbp with Code::Blocks, trunk 112079
« on: September 28, 2007, 12:34:58 pm »
Based on the answers given in this bug report, it seems like you are planning to abandon the Dev-C++'s file format (.dev), and you're going to focus mainly on Code::Blocks.
I've tried using Code::Blocks, but I'm having a problem compiling ufo2map. The build messages I get:
The build log:
Now, I've done everything posted here in the wiki, and the only thing I had a problem with was installing the SDL Library - the Dev-C++ DevPaks updater/installer under Code:Blocks can't download and install either libsdl version 1.2.11 or SDL version 1.2.11. For Dev-C++ itself, the only working SDL library version 1.2.11 I was able to download is in a ZIP file, and while Dev-C++'s package manager does allow me to manually install this library using the ZIP format, the Dev-C++ DevPaks updater/installer under Code:Blocks doesn't allow such a manual installation. In that wiki page, you did write this:
At least for now, I can still use Dev-C++ to compile ufo2map.dev to get the ufo2map.exe file.
Win XP SP2
UFO: AI 2.2 trunk 12079
I've tried using Code::Blocks, but I'm having a problem compiling ufo2map. The build messages I get:
Code: [Select]
:: === ufo2map, windows ===
C:\development\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\crt2.o:crt1.c:(.text+0x16a):: undefined reference to `__cpu_features_init'
:: === Build finished: 1 errors, 0 warnings ===
The build log:
Code: [Select]
-------------- Build: windows in ufo2map ---------------
Compiling: ..\..\src\common\ioapi.c
Compiling: ..\..\src\common\unzip.c
Compiling: ..\..\src\shared\byte.c
Compiling: ..\..\src\shared\shared.c
Compiling: ..\..\src\tools\ufo2map\brushbsp.c
Compiling: ..\..\src\tools\ufo2map\common\bspfile.c
Compiling: ..\..\src\tools\ufo2map\common\cmdlib.c
Compiling: ..\..\src\tools\ufo2map\common\imagelib.c
Compiling: ..\..\src\tools\ufo2map\common\mathlib.c
Compiling: ..\..\src\tools\ufo2map\common\polylib.c
Compiling: ..\..\src\tools\ufo2map\common\scriplib.c
Compiling: ..\..\src\tools\ufo2map\common\trace.c
Compiling: ..\..\src\tools\ufo2map\csg.c
Compiling: ..\..\src\tools\ufo2map\faces.c
Compiling: ..\..\src\tools\ufo2map\levels.c
Compiling: ..\..\src\tools\ufo2map\lightmap.c
Compiling: ..\..\src\tools\ufo2map\map.c
Compiling: ..\..\src\tools\ufo2map\patches.c
Compiling: ..\..\src\tools\ufo2map\portals.c
Compiling: ..\..\src\tools\ufo2map\qbsp3.c
Compiling: ..\..\src\tools\ufo2map\qrad3.c
Compiling: ..\..\src\tools\ufo2map\routing.c
Compiling: ..\..\src\tools\ufo2map\textures.c
Compiling: ..\..\src\tools\ufo2map\tree.c
Compiling: ..\..\src\tools\ufo2map\ufo2map.c
Compiling: ..\..\src\tools\ufo2map\writebsp.c
Linking console executable: ..\..\ufo2map.exe
C:/development/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o:crt1.c:(.text+0x16a): undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 8 seconds)
1 errors, 0 warnings
Now, I've done everything posted here in the wiki, and the only thing I had a problem with was installing the SDL Library - the Dev-C++ DevPaks updater/installer under Code:Blocks can't download and install either libsdl version 1.2.11 or SDL version 1.2.11. For Dev-C++ itself, the only working SDL library version 1.2.11 I was able to download is in a ZIP file, and while Dev-C++'s package manager does allow me to manually install this library using the ZIP format, the Dev-C++ DevPaks updater/installer under Code:Blocks doesn't allow such a manual installation. In that wiki page, you did write this:
Quote
Extract them to some directory on your harddisk and add these paths to the Code::Blocks linker and include directories.I did just that - I've extracted the SDL-1.2.11.zip file and added the \SDL-1.2.11 directory and the \SDL-1.2.11\include directory to the Search directories under Compiler, Linker and Resource compiler (I added them to all tabs, just in case). I don't think this is related to the problem, but I thought I should mention it anyway.
At least for now, I can still use Dev-C++ to compile ufo2map.dev to get the ufo2map.exe file.
Win XP SP2
UFO: AI 2.2 trunk 12079