#1 2016-06-18 12:47:07

ifran
Member

Build and Compile source code CodeBlocks

I have problem build project source files
I used CodeBlocks -Windows 7
open project file tesseract .cbp(src folder)
I have build messages

||=== Build: client32 in tesseract (compiler: GNU GCC Compiler) ===|
..\include\SDL_platform.h|121|fatal error: winapifamily.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 9 second(s)) ===|

..\include/SDL_platform.h:121:26: fatal error: winapifamily.h: No such file or directory

What is wrong ?

Offline

#2 2016-06-18 21:45:33

chasester
Member

Re: Build and Compile source code CodeBlocks

Seems like a common error for the sdl version that cube is built with. Look here.

Either download sdl 2.0.4 or (easier) just download the fixed version of platform.h on the forum, and simply include it over the platform.h file in the "src/include/SDL_platform.h"

chasester

Last edited by chasester (2016-06-18 21:45:56)

Offline

#3 2016-06-19 08:41:19

ifran
Member

Re: Build and Compile source code CodeBlocks

it's works
thank you for your help

ifran

Offline

#4 2016-06-19 21:03:32

chasester
Member

Re: Build and Compile source code CodeBlocks

your welcome btw next time just read the error :)

.\include/SDL_platform.h:121:26: fatal error: winapifamily.h: No such file or directory

then just google it :)
chasester

Offline

Board footer