Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: compilling SFML2 with CodeBlocks  (Read 7341 times)

0 Members and 1 Guest are viewing this topic.

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
compilling SFML2 with CodeBlocks
« on: February 18, 2010, 09:42:40 am »
Working in XP in a new installation of codeblocks, i am trying to compille SFML2.
Opening SFML workspace, and compilling, compiller says... and nothing ...

Linking console executable: ..\..\bin\ftp-d.exe
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-network-s-d.a: No such file or directory
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-system-s-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

What i have wrong?
Thank's
Jim

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #1 on: February 18, 2010, 11:20:35 am »
It looks like you're compiling the FTP sample only. You must either "rebuild workspace" or build the SFML libraries one by one. Don't forget to choose the build target that you want (debug/release static/DLL).

You can also use the batch-build, especially if you intend to use the static libraries. It builds all the libraries in all the configurations, and performs the extra step required for static libraries, in one simple click.
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: compilling SFML2 with CodeBlocks
« Reply #2 on: February 18, 2010, 01:18:14 pm »
Quote from: "dkaip"
Working in XP in a new installation of codeblocks, i am trying to compille SFML2.
Opening SFML workspace, and compilling, compiller says... and nothing ...

Linking console executable: ..\..\bin\ftp-d.exe
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-network-s-d.a: No such file or directory
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-system-s-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

What i have wrong?
Thank's
Jim


I had same issue. Problem is that active project is set to one of samples in SFML2 workspace. So if you will choose to rebuild workspace it will start from activated project and continue to build projects from this one. To successfully build SFML2 workspace in CodeBlocks set project "sfml-system" as active and then rebuild workspace. Keep in mind, that every project has its own set of build targets, and if you set build target for sfml-system as (for example) "Release DLL_Win32" that doesn't mean that all projects will have same build target. So you need to manually change each project build target.

// edit
Notice, that most of examples (if not all examples) are linking static SFML libraries, so you will need these to successfully compile examples.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #3 on: February 18, 2010, 01:25:56 pm »
Quote
So if you will choose to rebuild workspace it will start from activated project and continue to build projects from this one

I never noticed this behaviour, "rebuild workspace" always rebuild every project that has the current build target (samples and SFML libraries don't have the same set of targets).

Quote
Keep in mind, that every project has its own set of build targets, and if you set build target for sfml-system as (for example) "Release DLL_Win32" that doesn't mean that all projects will have same build target. So you need to manually change each project build target.

Changing it from the dropdown list in the toolbar doesn't really work (at least with the version that I use), but doing it from the menu changes the current target for everything.
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #4 on: February 18, 2010, 01:57:19 pm »
Quote from: "Laurent"
Quote
So if you will choose to rebuild workspace it will start from activated project and continue to build projects from this one

I never noticed this behaviour, "rebuild workspace" always rebuild every project that has the current build target (samples and SFML libraries don't have the same set of targets).

You are right. It makes sense :).

Quote from: "Laurent"

Quote
Keep in mind, that every project has its own set of build targets, and if you set build target for sfml-system as (for example) "Release DLL_Win32" that doesn't mean that all projects will have same build target. So you need to manually change each project build target.

Changing it from the dropdown list in the toolbar doesn't really work (at least with the version that I use), but doing it from the menu changes the current target for everything.

Hmmm... if I choose from dropdown list some target and rebuild workspace all projects will be rebuild with this target. Same for menu.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #5 on: February 18, 2010, 02:02:00 pm »
I guess they fixed it, my version is pretty old (I think it was the first stable release).
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #6 on: February 18, 2010, 02:20:09 pm »
Anyway if you just open SFML2 workspace sfml-main is active, so rebuilding workspace will rebuild all samples.

About that batch build. You mentioned about some "extra step". Is this "extra step" done when building static library from inside CodeBlocks?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #7 on: February 18, 2010, 02:29:37 pm »
Quote
Is this "extra step" done when building static library from inside CodeBlocks?

No.
Laurent Gomila - SFML developer

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #8 on: February 18, 2010, 02:37:34 pm »
No all projects build ok... I use the last svn version...

Quote



-------------- Build: Debug DLL_Win32 in sfml-system ---------------

Compiling: ..\..\src\SFML\System\Lock.cpp
Compiling: ..\..\src\SFML\System\Randomizer.cpp
Compiling: ..\..\src\SFML\System\Sleep.cpp
Compiling: ..\..\src\SFML\System\Unicode.cpp
Compiling: ..\..\src\SFML\System\Win32\Mutex.cpp
Compiling: ..\..\src\SFML\System\Win32\Platform.cpp
Compiling: ..\..\src\SFML\System\Win32\Thread.cpp
Compiling: ..\..\src\SFML\System\Clock.cpp
Linking dynamic library: ..\..\lib\mingw\sfml-system-d.dll
Creating library file: ..\..\lib\mingw\libsfml-system-d.a
Output size is 1.67 MB

-------------- Build: Debug DLL_Win32 in sfml-window ---------------

Compiling: ..\..\src\SFML\Window\Input.cpp
Compiling: ..\..\src\SFML\Window\VideoMode.cpp
Compiling: ..\..\src\SFML\Window\Win32\Joystick.cpp
Compiling: ..\..\src\SFML\Window\Win32\VideoModeSupport.cpp
Compiling: ..\..\src\SFML\Window\Win32\WindowImplWin32.cpp
Compiling: ..\..\src\SFML\Window\Window.cpp
Compiling: ..\..\src\SFML\Window\WindowImpl.cpp
Compiling: ..\..\src\SFML\Window\Context.cpp
Linking dynamic library: ..\..\lib\mingw\sfml-window-d.dll
Creating library file: ..\..\lib\mingw\libsfml-window-d.a
Output size is 2.60 MB

-------------- Build: Debug DLL_Win32 in sfml-network ---------------

Compiling: ..\..\src\SFML\Network\Http.cpp
Compiling: ..\..\src\SFML\Network\IPAddress.cpp
Compiling: ..\..\src\SFML\Network\Packet.cpp
Compiling: ..\..\src\SFML\Network\SelectorBase.cpp
Compiling: ..\..\src\SFML\Network\SocketTCP.cpp
Compiling: ..\..\src\SFML\Network\SocketUDP.cpp
Compiling: ..\..\src\SFML\Network\Win32\SocketHelper.cpp
Compiling: ..\..\src\SFML\Network\Ftp.cpp
Linking dynamic library: ..\..\lib\mingw\sfml-network-d.dll
Creating library file: ..\..\lib\mingw\libsfml-network-d.a
Output size is 2.16 MB

-------------- Build: Debug DLL_Win32 in sfml-graphics ---------------

Compiling: ..\..\src\SFML\Graphics\Color.cpp
Compiling: ..\..\src\SFML\Graphics\Drawable.cpp
Compiling: ..\..\src\SFML\Graphics\Font.cpp
Compiling: ..\..\src\SFML\Graphics\FontLoader.cpp
Compiling: ..\..\src\SFML\Graphics\GLEW\glew.c
Compiling: ..\..\src\SFML\Graphics\GraphicsContext.cpp
Compiling: ..\..\src\SFML\Graphics\Image.cpp
Compiling: ..\..\src\SFML\Graphics\ImageLoader.cpp
Compiling: ..\..\src\SFML\Graphics\Matrix3.cpp
Compiling: ..\..\src\SFML\Graphics\PostFX.cpp
Compiling: ..\..\src\SFML\Graphics\RenderTarget.cpp
Compiling: ..\..\src\SFML\Graphics\RenderWindow.cpp
Compiling: ..\..\src\SFML\Graphics\SOIL\SOIL.c
Compiling: ..\..\src\SFML\Graphics\SOIL\image_DXT.c
Compiling: ..\..\src\SFML\Graphics\SOIL\stb_image_aug.c
C:\SFML-1.5\src\SFML\Graphics\SOIL\stb_image_aug.c: In function `hdr_gettoken':
C:\SFML-1.5\src\SFML\Graphics\SOIL\stb_image_aug.c:3102: warning: unused variable `s'
Compiling: ..\..\src\SFML\Graphics\Shape.cpp
Compiling: ..\..\src\SFML\Graphics\Sprite.cpp
Compiling: ..\..\src\SFML\Graphics\String.cpp
Compiling: ..\..\src\SFML\Graphics\View.cpp
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcapimin.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcapistd.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jccoefct.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jccolor.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcdctmgr.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jchuff.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcinit.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcmainct.c
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c: In function `start_pass_main':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c:71: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c: In function `process_data_simple_main':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c:117: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c: In function `jinit_c_main_controller':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c:247: warning: 'main' is usually a function
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcmarker.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcmaster.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcomapi.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcparam.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcphuff.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcprepct.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jcsample.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jctrans.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdapimin.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdapistd.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdatadst.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdatasrc.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdcoefct.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdcolor.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jddctmgr.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdhuff.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdinput.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdmainct.c
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `alloc_funny_pointers':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:162: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `make_funny_pointers':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:203: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `set_wraparound_pointers':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:243: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `set_bottom_pointers':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:272: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `start_pass_main':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:309: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `process_data_simple_main':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:349: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `process_data_context_main':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:389: warning: 'main' is usually a function
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c: In function `jinit_d_main_controller':
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c:478: warning: 'main' is usually a function
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdmarker.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdmaster.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdmerge.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdphuff.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdpostct.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdsample.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jdtrans.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jerror.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jfdctflt.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jfdctfst.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jfdctint.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jidctflt.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jidctfst.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jidctint.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jidctred.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jmemmgr.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jmemnobs.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jquant1.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jquant2.c
Compiling: ..\..\src\SFML\Graphics\libjpeg\jutils.c
Compiling: ..\..\src\SFML\Graphics\libpng\png.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngerror.c
Compiling: ..\..\src\SFML\Graphics\libpng\pnggccrd.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngget.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngmem.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngpread.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngread.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngrio.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngrtran.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngrutil.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngset.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngtrans.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngvcrd.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngwio.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngwrite.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngwtran.c
Compiling: ..\..\src\SFML\Graphics\libpng\pngwutil.c
Compiling: ..\..\src\SFML\Graphics\zlib\adler32.c
Compiling: ..\..\src\SFML\Graphics\zlib\compress.c
Compiling: ..\..\src\SFML\Graphics\zlib\crc32.c
Compiling: ..\..\src\SFML\Graphics\zlib\deflate.c
Compiling: ..\..\src\SFML\Graphics\zlib\inffast.c
Compiling: ..\..\src\SFML\Graphics\zlib\inflate.c
Compiling: ..\..\src\SFML\Graphics\zlib\inftrees.c
Compiling: ..\..\src\SFML\Graphics\zlib\trees.c
Compiling: ..\..\src\SFML\Graphics\zlib\uncompr.c
Compiling: ..\..\src\SFML\Graphics\zlib\zutil.c
Linking dynamic library: ..\..\lib\mingw\sfml-graphics-d.dll
Creating library file: ..\..\lib\mingw\libsfml-graphics-d.a
Output size is 4.77 MB

-------------- Build: Debug DLL_Win32 in sfml-audio ---------------

Compiling: ..\..\src\SFML\Audio\AudioDevice.cpp
Compiling: ..\..\src\SFML\Audio\AudioResource.cpp
Compiling: ..\..\src\SFML\Audio\Listener.cpp
Compiling: ..\..\src\SFML\Audio\Music.cpp
Compiling: ..\..\src\SFML\Audio\Sound.cpp
Compiling: ..\..\src\SFML\Audio\SoundBuffer.cpp
Compiling: ..\..\src\SFML\Audio\SoundBufferRecorder.cpp
Compiling: ..\..\src\SFML\Audio\SoundFile.cpp
Compiling: ..\..\src\SFML\Audio\SoundFileDefault.cpp
Compiling: ..\..\src\SFML\Audio\SoundFileOgg.cpp
Compiling: ..\..\src\SFML\Audio\SoundRecorder.cpp
Compiling: ..\..\src\SFML\Audio\SoundStream.cpp
Compiling: ..\..\src\SFML\Audio\stb_vorbis\stb_vorbis.c
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `get8_packet_raw':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1148: warning: suggest explicit braces to avoid ambiguous `else'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `codebook_decode_deinterleave_repeat_2':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1545: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `decode_residue':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1775: warning: unused variable `len'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1769: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1782: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1786: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1804: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1815: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1824: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1831: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1864: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1867: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1906: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1909: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1924: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1973: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `dct_iv_slow':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:2029: warning: unused variable `n2'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `imdct_step3_inner_s_loop_ld654':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:2280: warning: unused variable `k_off'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `inverse_mdct':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:2326: warning: unused variable `n3_4'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `vorbis_decode_packet_rest':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:2872: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:2964: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:3004: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:3028: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:3048: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:3051: warning: statement with no effect
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: In function `vorbis_find_page':
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:4154: warning: suggest explicit braces to avoid ambiguous `else'
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c: At top level:
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1202: warning: 'get_bits_signed' defined but not used
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:1293: warning: 'codebook_decode_scalar' defined but not used
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c:4770: warning: 'channel_selector' defined but not used
Linking dynamic library: ..\..\lib\mingw\sfml-audio-d.dll
Creating library file: ..\..\lib\mingw\libsfml-audio-d.a
Output size is 2.19 MB
Process terminated with status 0 (0 minutes, 35 seconds)
0 errors, 41 warnings
 





What next?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #9 on: February 18, 2010, 02:42:52 pm »
The name of the generated libraries is wrong, the extension is ".dll.a" instead of ".a".

I think that you can change the default extension in the linker options; in the meantime I'll see if I can force it in the projects settings.
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #10 on: February 18, 2010, 02:52:23 pm »
Quote from: "Laurent"
The name of the generated libraries is wrong, the extension is ".dll.a" instead of ".a".

I think that you can change the default extension in the linker options; in the meantime I'll see if I can force it in the projects settings.

Strange. All build configurations works on my CodeBlocks 8.02 build at Feb 27 2008 - and this is latest build of C::B.

Laurent, what is that extra step and why isn't it performed in CodeBlocks?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #11 on: February 18, 2010, 03:12:20 pm »
Quote
Strange. All build configurations works on my CodeBlocks 8.02 build at Feb 27 2008 - and this is latest build of C::B.

I use this version too.

Quote
Laurent, what is that extra step and why isn't it performed in CodeBlocks?

It is explained in the SFML tutorial for Code::Blocks ;)
Laurent Gomila - SFML developer

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #12 on: February 18, 2010, 04:49:56 pm »
I just uninstall CB, and install v8.05, the stable one. Everything are ok.
Nightly builds from http://forums.codeblocks.org/index.php/topic,11875.0.html have problem, or need other configuration.
Thank's
Jim

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
compilling SFML2 with CodeBlocks
« Reply #13 on: February 19, 2010, 10:05:50 am »
I just have make thse things after anistall wxwidgets, CB and SFML
1) Install CB ver 8.05
2) Install wxwidgets 2.8.10 and compilling against minGW comes with CB
3) Put libraries at right places
4) Make a wxwidgets project for test, and all are ok.
5) Open SFML.workspace in ver1.5 and all are ok.

Quote
||=== sfml-graphics, Debug DLL_Win32 ===|
C:\SFML-1.5\src\SFML\Graphics\SOIL\stb_image_aug.c||In function `hdr_gettoken':|
C:\SFML-1.5\src\SFML\Graphics\SOIL\stb_image_aug.c|3102|warning: unused variable `s'|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c||In function `start_pass_main':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c|71|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c||In function `process_data_simple_main':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c|117|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c||In function `jinit_c_main_controller':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jcmainct.c|247|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `alloc_funny_pointers':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|162|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `make_funny_pointers':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|203|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `set_wraparound_pointers':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|243|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `set_bottom_pointers':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|272|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `start_pass_main':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|309|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `process_data_simple_main':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|349|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `process_data_context_main':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|389|warning: 'main' is usually a function|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c||In function `jinit_d_main_controller':|
C:\SFML-1.5\src\SFML\Graphics\libjpeg\jdmainct.c|478|warning: 'main' is usually a function|
||=== sfml-audio, Debug DLL_Win32 ===|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `get8_packet_raw':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1148|warning: suggest explicit braces to avoid ambiguous `else'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `codebook_decode_deinterleave_repeat_2':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1545|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `decode_residue':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1775|warning: unused variable `len'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1769|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1782|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1786|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1804|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1815|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1824|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1831|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1864|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1867|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1906|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1909|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1924|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1973|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `dct_iv_slow':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|2029|warning: unused variable `n2'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `imdct_step3_inner_s_loop_ld654':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|2280|warning: unused variable `k_off'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `inverse_mdct':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|2326|warning: unused variable `n3_4'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `vorbis_decode_packet_rest':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|2872|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|2964|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|3004|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|3028|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|3048|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|3051|warning: statement with no effect|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c||In function `vorbis_find_page':|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|4154|warning: suggest explicit braces to avoid ambiguous `else'|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1202|warning: 'get_bits_signed' defined but not used|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|1293|warning: 'codebook_decode_scalar' defined but not used|
C:\SFML-1.5\src\SFML\Audio\stb_vorbis\stb_vorbis.c|4770|warning: 'channel_selector' defined but not used|
||=== Build finished: 0 errors, 41 warnings ===|



6) Trying compile sfml2(SFML.workspace) i have problem. That i am doing to see how sfml2 gives characters after \xFF on demand.


Quote

-------------- Build: Debug_Win32 in sfml-main ---------------

Compiling: ..\..\src\SFML\Main\SFML_Main.cpp
Linking static library: ..\..\lib\mingw\libsfml-main-d.a
ar.exe: creating ..\..\lib\mingw\libsfml-main-d.a
Output size is 695.38 KB

-------------- Build: Debug_Win32 in ftp ---------------

Compiling: ..\..\ftp\Ftp.cpp
Linking console executable: ..\..\bin\ftp-d.exe
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-network-s-d.a: No such file or directory
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-system-s-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
 


---------------------------------------------------------------------------------
I just update CB in nigthly build, svn ver 6088, compile SFML1.5 workspace, all are ok.
But in SFML2, compiller says ...


Quote
-------------- Clean: Debug_Win32 in sfml-main ---------------

Cleaned "sfml-main - Debug_Win32"

-------------- Clean: Debug_Win32 in ftp ---------------

Cleaned "ftp - Debug_Win32"

-------------- Clean: Debug_Win32 in opengl ---------------

Cleaned "opengl - Debug_Win32"

-------------- Clean: Debug_Win32 in pong ---------------

Cleaned "pong - Debug_Win32"

-------------- Clean: Debug_Win32 in qt ---------------

Cleaned "qt - Debug_Win32"

-------------- Clean: Debug_Win32 in wxwidgets ---------------

Cleaned "wxwidgets - Debug_Win32"

-------------- Clean: Debug_Win32 in shader ---------------

Cleaned "shader - Debug_Win32"

-------------- Clean: Debug_Win32 in sockets ---------------

Cleaned "sockets - Debug_Win32"

-------------- Clean: Debug_Win32 in sound ---------------

Cleaned "sound - Debug_Win32"

-------------- Clean: Debug_Win32 in sound-capture ---------------

Cleaned "sound-capture - Debug_Win32"

-------------- Clean: Debug_Win32 in voip ---------------

Cleaned "voip - Debug_Win32"

-------------- Clean: Debug_Win32 in win32 ---------------

Cleaned "win32 - Debug_Win32"

-------------- Clean: Debug_Win32 in window ---------------

Cleaned "window - Debug_Win32"

-------------- Build: Debug_Win32 in sfml-main ---------------

Compiling: ..\..\src\SFML\Main\SFML_Main.cpp
Linking static library: ..\..\lib\mingw\libsfml-main-d.a
ar.exe: creating ..\..\lib\mingw\libsfml-main-d.a
Output size is 695.38 KB

-------------- Build: Debug_Win32 in ftp ---------------

Compiling: ..\..\ftp\Ftp.cpp
Linking console executable: ..\..\bin\ftp-d.exe
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-network-s-d.a: No such file or directory
mingw32-g++.exe: ..\..\..\lib\mingw\libsfml-system-s-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
compilling SFML2 with CodeBlocks
« Reply #14 on: February 19, 2010, 10:16:15 am »
Quote
Trying compile sfml2(SFML.workspace) i have problem

This is because the active project is either sfml-main or a sample, and those don't have the same build targets as SFML libraries; so they are not built.

You must activate (double-click) a SFML library (it doesn't matter which one), then select the build target you that you want to use, and then rebuild everything.
Laurent Gomila - SFML developer