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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MaxPain

Pages: [1] 2
1
Audio / Re: Shooting/knocking sound while playing sounds.
« on: August 02, 2022, 02:26:57 pm »
Well, it was just wrong soundbuffer handling i guess.

2
Audio / Shooting/knocking sound while playing sounds. [Solved]
« on: August 02, 2022, 11:57:00 am »
I'm making a synthesizer, that for now generates clean waves of sound when the keys are pressed, but most sounds, especially at high volumes or amplitude, start to make strange shooting sounds. When sounds overlap each other it gets even worse. What should I do? Will it disappear after I make waves complex?

3
General / Re: libgcc_s_dw2.dll is missing
« on: February 27, 2021, 06:46:14 am »
Everything is done.
First thing I create the CMake toolchain for cross compile

# Sample toolchain file for building for Windows

set(CMAKE_SYSTEM_NAME Windows)
#set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
#or 32 bit
set(TOOLCHAIN_PREFIX i686-w64-mingw32)

# cross compilers to use for C, C++
set(CMAKE_C_COMPILER     "/usr/local/Cellar/mingw-w64/8.0.0_3/bin/${TOOLCHAIN_PREFIX}-gcc")
set(CMAKE_CXX_COMPILER   "/usr/local/Cellar/mingw-w64/8.0.0_3/bin/${TOOLCHAIN_PREFIX}-g++")


# modify default behavior of FIND_XXX() commands
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

Then I use CMake to configure SFML source files

cmake ./ -DCMAKE_TOOLCHAIN_FILE=Path/to/toolchain/WindowsTool.cmake
 

Then just make it and compile

/usr/local/Cellar/mingw-w64/8.0.0_3/bin/i686-w64-mingw32-g++ main.cpp -DSFML_STATIC -static -L SFML-2.5.1-2/extlibs/libs-mingw/x86 -L SFML-2.5.1-2/lib -o test.exe -lsfml-audio-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lws2_32 -lopengl32 -lgdi32 -lwinmm -lfreetype -lflac -lvorbisenc -lvorbisfile -lvorbis -logg -lopenal32 -I SFML-2.5.1-2/include -v
 

Thanks eXpl0it3r for help :D

4
General / Re: libgcc_s_dw2.dll is missing
« on: February 23, 2021, 11:51:59 am »
Nope, there is nothing like make or cmake thing at all.

5
General / Re: libgcc_s_dw2.dll is missing
« on: February 23, 2021, 10:02:26 am »
Now I need mingw32-make, where can I find it?

6
General / Re: libgcc_s_dw2.dll is missing
« on: February 23, 2021, 09:49:02 am »
I made the toolchain... And error

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/usr/local/Cellar/mingw-w64/8.0.0_3/bin/i686-w64-mingw32-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Downloads/SFML-2.5.1-new/CMakeFiles/CMakeTmp
   
    Run Build Command(s):/usr/bin/make -f Makefile cmTC_4739f/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_4739f.dir/build.make CMakeFiles/cmTC_4739f.dir/build
    Building C object CMakeFiles/cmTC_4739f.dir/testCCompiler.c.obj
    /usr/local/Cellar/mingw-w64/8.0.0_3/bin/i686-w64-mingw32-gcc    -o CMakeFiles/cmTC_4739f.dir/testCCompiler.c.obj -c /Users/maxroschupkin/Downloads/SFML-2.5.1-new/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_4739f.exe
    /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4739f.dir/link.txt --verbose=1
    /Applications/CMake.app/Contents/bin/cmake -E rm -f CMakeFiles/cmTC_4739f.dir/objects.a
    /usr/bin/ar cr CMakeFiles/cmTC_4739f.dir/objects.a @CMakeFiles/cmTC_4739f.dir/objects1.rsp
    ar: @CMakeFiles/cmTC_4739f.dir/objects1.rsp: No such file or directory
    make[1]: *** [cmTC_4739f.exe] Error 1
    make: *** [cmTC_4739f/fast] Error 2
   
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:45 (project)

Upd: Fixed ;D

7
General / Re: libgcc_s_dw2.dll is missing
« on: February 23, 2021, 07:11:29 am »
Fine, let's s deal with it now  :).

Cmake doesn't see my MinGW as generator even it's bin in path variables. Maybe cmake need special files that are not there.

8
General / Re: libgcc_s_dw2.dll is missing
« on: February 22, 2021, 04:22:50 pm »
How should i do this to avoid getting an error about Unrecognized file format?

Even I try to build self-build SFML version with 64bit compiler it says "undefined reference to SFML thing", I am sick of it. :'(

9
General / Re: libgcc_s_dw2.dll is missing
« on: February 22, 2021, 09:21:27 am »
I am using the only MinGW that I could download for Mac as I know version is 8.0.0_3 and GCC is 10.2.0.
On one of SFML pages I read 32bit version will be able to run on 64bit architecture so I decided to compile 32bit version, I tried to link libraries from SFML source code, but compiler said "unrecognized file format" apparently because it is 64bit then I need 32bit, that is why I downloaded a SFML-32bit for MinGW and now I have these errors.

I hardly will get MinGW version indicated on SFML download page.

10
General / Re: libgcc_s_dw2.dll is missing
« on: February 22, 2021, 05:38:36 am »
Same :-\

Mostly "undefined reference to Unwind_Resume"

11
General / Re: libgcc_s_dw2.dll is missing
« on: February 21, 2021, 06:36:41 am »
Right?

/usr/local/Cellar/mingw-w64/8.0.0_3/bin/i686-w64-mingw32-g++ main.cpp -DSFML_STATIC  -static  -L SFML-2.5.1-win32/lib -o test.exe -lsfml-audio-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lws2_32 -lopengl32 -lgdi32 -lwinmm -lfreetype -lflac -lvorbisenc -lvorbisfile -lvorbis -logg -lopenal32 -I SFML-2.5.1-win32/include -v
 

But it doesn't work.

12
General / Re: libgcc_s_dw2.dll is missing
« on: February 20, 2021, 04:46:23 pm »
Alright, I almost done it

i686-w64-mingw32-g++ main.cpp -DSFML_STATIC  -static -L SFML-2.5.1-win32/lib -o test.exe
 -lws2_32 -lopengl32 -lgdi32 -lwinmm -lfreetype -lflac -lvorbisenc -lvorbisfile -lvorbis -logg -lopenal32 -lsfml-audio-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
 -I SFML-2.5.1-win32/include -v

And I get something like that

/usr/local/Cellar/mingw-w64/8.0.0_3/toolchain-i686/bin/i686-w64-mingw32-ld: SFML-2.5.1-win32/lib/libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.text+0x2d79): undefined reference to `_imp__joyGetPosEx@8'
/usr/local/Cellar/mingw-w64/8.0.0_3/toolchain-i686/bin/i686-w64-mingw32-ld: SFML-2.5.1-win32/lib/libsfml-window-s.a(JoystickImpl.cpp.obj):JoystickImpl.cpp:(.eh_frame+0x83): undefined reference to `__gxx_personality_v0'
/usr/local/Cellar/mingw-w64/8.0.0_3/toolchain-i686/bin/i686-w64-mingw32-ld: SFML-2.5.1-win32/lib/libsfml-window-s.a(Joystick.cpp.obj):Joystick.cpp:(.text+0x192): undefined reference to `_Unwind_Resume'
/usr/local/Cellar/mingw-w64/8.0.0_3/toolchain-i686/bin/i686-w64-mingw32-ld: SFML-2.5.1-win32/lib/libsfml-window-s.a(Joystick.cpp.obj):Joystick.cpp:(.eh_frame+0x11b): undefined reference to `__gxx_personality_v0'

All the libraries are in place

13
General / Re: libgcc_s_dw2.dll is missing
« on: February 16, 2021, 01:15:13 pm »
Alright, I did everything you said, I link every single library and even tried to build it on Windows but it still says
"Undefined reference". What I have to do?

14
General / Re: libgcc_s_dw2.dll is missing
« on: February 14, 2021, 09:42:10 am »
I downloaded source code, built it with BUILD_SHARED_LIBS=FALSE and did this

i686-w64-mingw32-g++ main.cpp -o test.exe -static -I SFML-2.5.1/include -L SFML-2.5.1/lib -L SFML-2.5.1/extlibs/libs-mingw/x86 -lopengl32 -lgdi32 -lwinmm -lfreetype -lflac -lvorbisenc -lvorbisfile -lvorbis -logg -lws2_32 -lsfml-audio-s -lsfml-graphics-s -lsfml-system-s -lsfml-window-s

But it still says undefined reference, and I don't see gdi32, winmm, opengl32 and ws2_32 in extlibs folder.

I realized that it is more convenient to build on Windows, but I want to try because I'm the beginner.

15
General / Re: libgcc_s_dw2.dll is missing
« on: February 13, 2021, 03:44:00 pm »
There is no libgcc_s_dw2 in MinGW bin files, probably because its version for MacOS.

And I did not understand what it means to static build SFML, after all, I'm already doing it.

"PATH"/i686-w64-mingw32-g++ main.cpp   -L "PATH"/SFML-2.5.1-win32/lib -o test.exe -static -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system -I "PATH"/SFML-2.5.1-win32/include
 

The folder is named so because this is the version for Windows32

One more thing: if I use -lsfml-*-s to link it static, it says "Undefined reference to *Some SFML thing*", if I read it correctly, it does not find the code itself.

Pages: [1] 2