SFML community forums
Help => Graphics => Topic started by: dkaip 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
-
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.
-
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.
-
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).
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.
-
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 :).
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.
-
I guess they fixed it, my version is pretty old (I think it was the first stable release).
-
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?
-
Is this "extra step" done when building static library from inside CodeBlocks?
No.
-
No all projects build ok... I use the last svn version...
-------------- 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?
-
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.
-
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?
-
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.
Laurent, what is that extra step and why isn't it performed in CodeBlocks?
It is explained in the SFML tutorial for Code::Blocks ;)
-
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
-
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.
||=== 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.
-------------- 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 ...
-------------- 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
-
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.
-
Ok i'll try.
Thank's
Jim
-
I just activate sfml-system and rebuild(ctrl+F11). Ok
Next choosing build>rebuild workspace i have problem. Maybe wrong is the CB svn version. I'll change version to default 8.05 and i'll see if runs ok.
-------------- Clean: Debug DLL_Win32 in sfml-system ---------------
Cleaned "sfml-system - Debug DLL_Win32"
-------------- Clean: Debug DLL_Win32 in sfml-window ---------------
Cleaned "sfml-window - Debug DLL_Win32"
-------------- Clean: Debug DLL_Win32 in sfml-network ---------------
Cleaned "sfml-network - Debug DLL_Win32"
-------------- Clean: Debug DLL_Win32 in sfml-graphics ---------------
Cleaned "sfml-graphics - Debug DLL_Win32"
-------------- Clean: Debug DLL_Win32 in sfml-audio ---------------
Cleaned "sfml-audio - Debug DLL_Win32"
-------------- Build: Debug DLL_Win32 in sfml-system ---------------
Compiling: ..\..\src\SFML\System\Clock.cpp
Compiling: ..\..\src\SFML\System\Lock.cpp
Compiling: ..\..\src\SFML\System\Mutex.cpp
Compiling: ..\..\src\SFML\System\Randomizer.cpp
Compiling: ..\..\src\SFML\System\Sleep.cpp
Compiling: ..\..\src\SFML\System\String.cpp
Compiling: ..\..\src\SFML\System\Thread.cpp
Compiling: ..\..\src\SFML\System\ThreadLocal.cpp
Compiling: ..\..\src\SFML\System\Utf.cpp
Compiling: ..\..\src\SFML\System\Win32\MutexImpl.cpp
Compiling: ..\..\src\SFML\System\Win32\Platform.cpp
Compiling: ..\..\src\SFML\System\Win32\ThreadImpl.cpp
Compiling: ..\..\src\SFML\System\Win32\ThreadLocalImpl.cpp
Linking dynamic library: ..\..\lib\mingw\sfml-system-d.dll
Creating library file: ..\..\lib\mingw\libsfml-system-d.dll.a
Output size is 2.12 MB
-------------- Build: Debug DLL_Win32 in sfml-window ---------------
Compiling: ..\..\src\SFML\Window\Context.cpp
Compiling: ..\..\src\SFML\Window\ContextGL.cpp
Compiling: ..\..\src\SFML\Window\Input.cpp
Compiling: ..\..\src\SFML\Window\VideoMode.cpp
Compiling: ..\..\src\SFML\Window\Win32\ContextWGL.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
Linking dynamic library: ..\..\lib\mingw\sfml-window-d.dll
mingw32-g++.exe: ..\..\lib\mingw\libsfml-system-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 6 seconds)
0 errors, 0 warnings
--------------------------------
I just change to CB 8.05 and all are ok.
First in build>rebuild workspace i had problem.
Second activate sfml-system and compile, ok.
Then build>rebuild workspace and all are ok.
Thank's for help and good day.
Jim
-
This was still the same problem
The name of the generated libraries is wrong, the extension is ".dll.a" instead of ".a".
I found that you can change the default extension in the advanced compiler options.