Author Topic: Build SDL_gfx using CodeBlocks  (Read 6059 times)

Offline krofz

  • Single posting newcomer
  • *
  • Posts: 3
Build SDL_gfx using CodeBlocks
« on: November 06, 2013, 07:56:26 am »
Hello,

i am trying to build SDL_gfx-2.0.25 with CodeBlocks version 12. From importing MS Visual Studio Project and then try to build, but i get some error messages:

Code
||=== SDL_gfx, Debug Win32 ===|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\mmintrin.h|32|error: #error "MMX instruction set not enabled"|

//and many from SDL_imageFilter.c

what should i do? Is it MMX = SSE? because when i searching MMX it's always change into SSE.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Build SDL_gfx using CodeBlocks
« Reply #1 on: November 06, 2013, 09:51:41 pm »
Well this isn't codeblocks related but you need to specify your -march option of choice if your using mingw to compile SDL.

http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html

Offline krofz

  • Single posting newcomer
  • *
  • Posts: 3
Re: Build SDL_gfx using CodeBlocks
« Reply #2 on: November 07, 2013, 05:19:27 am »
Well this isn't codeblocks related but you need to specify your -march option of choice if your using mingw to compile SDL.

http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
sorry for the wrong place.

And thanks for the link , i will report if succeed :D

Offline krofz

  • Single posting newcomer
  • *
  • Posts: 3
Re: Build SDL_gfx using CodeBlocks
« Reply #3 on: November 07, 2013, 06:01:14 am »
----- SOLVED -----

Thanks ouch!

it's work ;D
Code

-------------- Build: Release Win32 in SDL_gfx (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -march=native  -DWIN32 -D_DEBUG -D_WINDOWS -D_USRDLL -DDLL_EXPORT -W -O2    -I"C:\Program Files\CodeBlocks\SDL\include"  -c "C:\Documents and Settings\Night\My Documents\Downloads\SDL_gfx-2.0.25\SDL_framerate.c" -o "Release Win32\SDL_framerate.o"
mingw32-gcc.exe -march=native  -DWIN32 -D_DEBUG -D_WINDOWS -D_USRDLL -DDLL_EXPORT -W -O2    -I"C:\Program Files\CodeBlocks\SDL\include"  -c "C:\Documents and Settings\Night\My Documents\Downloads\SDL_gfx-2.0.25\SDL_gfxBlitFunc.c" -o "Release Win32\SDL_gfxBlitFunc.o"
mingw32-gcc.exe -march=native  -DWIN32 -D_DEBUG -D_WINDOWS -D_USRDLL -DDLL_EXPORT -W -O2    -I"C:\Program Files\CodeBlocks\SDL\include"  -c "C:\Documents and Settings\Night\My Documents\Downloads\SDL_gfx-2.0.25\SDL_gfxPrimitives.c" -o "Release Win32\SDL_gfxPrimitives.o"
mingw32-gcc.exe -march=native  -DWIN32 -D_DEBUG -D_WINDOWS -D_USRDLL -DDLL_EXPORT -W -O2    -I"C:\Program Files\CodeBlocks\SDL\include"  -c "C:\Documents and Settings\Night\My Documents\Downloads\SDL_gfx-2.0.25\SDL_imageFilter.c" -o "Release Win32\SDL_imageFilter.o"
mingw32-gcc.exe -march=native  -DWIN32 -D_DEBUG -D_WINDOWS -D_USRDLL -DDLL_EXPORT -W -O2    -I"C:\Program Files\CodeBlocks\SDL\include"  -c "C:\Documents and Settings\Night\My Documents\Downloads\SDL_gfx-2.0.25\SDL_rotozoom.c" -o "Release Win32\SDL_rotozoom.o"
mingw32-g++.exe -shared -Wl,--output-def=libSDL_gfx_VS2008.def -Wl,--out-implib=libSDL_gfx_VS2008.a -Wl,--dll -L"C:\Program Files\CodeBlocks\SDL\lib"  "Release Win32\SDL_framerate.o" "Release Win32\SDL_gfxBlitFunc.o" "Release Win32\SDL_gfxPrimitives.o" "Release Win32\SDL_imageFilter.o" "Release Win32\SDL_rotozoom.o"   -o SDL_gfx_VS2008.dll  -lSDL
Creating library file: libSDL_gfx_VS2008.a
Output size is 101.97 KB
« Last Edit: November 07, 2013, 06:04:53 am by krofz »