Using fluidsynth from the CMD

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Using fluidsynth from the CMD

Layers Incorporation

Hi fluidsynthers

From my understanding, after reading the “Building FluidSynth with CMake” wiki, when downloading with MinGW on windows I will be able to use fluidsynth from the cmd, if this the case I came across a problem when installing after organizing the files as in the guide and adding the bin folder to the PATH (in the Environment Variables) I tried to check if it worked and I ran this command: “pkg-config --list-all” in the cmd, the result was that it didn’t work it raise an error in a Message box: “The application was unable to start correctly (0xc000007b)”. If it helps, I am using windows 10.



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
It seems that you've downloaded the binaries for 32 bit windows,
although you are running 64 bit windows. Or vice versa. In any case,
you must use the correct binaries for your platform.


Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Hi,
I have 64-bit windows, I have checked if this the case and I use the correct binaries for my platform.

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
I can perfectly reproduce your problem when trying to execute the
32bit pkg-config on windows 10 64bit. Please double check whether it
really executes the 64bit binary by executing `where pkg-config` from
cmd.


Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
I have done so:
C:\>where pkg-config
the output was:
C:\freesw\bin\pkg-config.exe
this is where the 64-bit pkg-config I have download from the wiki: https://github.com/FluidSynth/fluidsynth/wiki/BuildingWithCMake#building-with-mingw-on-windows
so I tried something else I downloaded the 32-bit version and ran it, it worked although I have 64-bit windows (I checked it), now there is a new error: 
--   No package 'glib-2.0' found
--   No package 'gthread-2.0' found
both of them are in the folder as in the wiki: 

C:\freesw\
├───bin
├───include
│   └───glib-2.0
│       ├───gio
│       ├───glib
│       └───gobject
├───lib
│   └───glib-2.0
│       └───include
├───manifest
├───pkgconfig
├───share
│   ├───aclocal
thanks for the help

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Ceresa Jean-Jacques

Hello,

 

your c:\freesw tree seems incomplete.

 

>--   No package 'glib-2.0' found


> --   No package 'gthread-2.0' found

 

These package are flluidsynth requiered dependancies. Cmake expect that theses packages are described by .pc files that must be in C:\Freesw\lib\pkgconfig folder

 

Following files are required:

C:\Freesw\lib\pkgconfig\glib-2.0.pc

C:\Freesw\lib\pkgconfig\gthread-2.0.pc

 

jjc

 

> Message du 09/06/19 15:58
> De : "Layers Incorporation" <[hidden email]>
> A : [hidden email]
> Copie à :
> Objet : Re: [fluid-dev] Using fluidsynth from the CMD
>
>
I have done so:
C:\>where pkg-config
the output was:
> C:\freesw\bin\pkg-config.exe
>
this is where the 64-bit pkg-config I have download from the wiki: https://github.com/FluidSynth/fluidsynth/wiki/BuildingWithCMake#building-with-mingw-on-windows
>
so I tried something else I downloaded the 32-bit version and ran it, it worked although I have 64-bit windows (I checked it), now there is a new error: 
--   No package 'glib-2.0' found
> --   No package 'gthread-2.0' found
>
both of them are in the folder as in the wiki: 

>
C:\freesw\
├───bin
├───include
│   └───glib-2.0
│       ├───gio
│       ├───glib
│       └───gobject
├───lib
│   └───glib-2.0
│       └───include
├───manifest
├───pkgconfig
├───share
│   ├───aclocal
thanks for the help


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Hi again,
I know you are probably tired of me, but this error occurred when I ran the "mingw32-make.exe" command from the CMD: 

C:\fluidsynth\build>cmake -G "MinGW Makefiles" ..
-- The C compiler identification is GNU 5.1.0
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether system has ANSI C header files
-- Looking for 8 include files dlfcn.h, ..., float.h
-- Looking for 8 include files dlfcn.h, ..., float.h - not found
-- ANSI C header files - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - not found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - not found
-- Looking for netinet/tcp.h
-- Looking for netinet/tcp.h - not found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - not found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Performing Test _have_inline
-- Performing Test _have_inline - Success
-- Performing Test _have_vla
-- Performing Test _have_vla - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for windows.h
-- Looking for windows.h - found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for dsound.h
-- Looking for dsound.h - found
-- Looking for include files windows.h, mmsystem.h
-- Looking for include files windows.h, mmsystem.h - found
-- Looking for inet_ntop
-- Looking for inet_ntop - not found
-- Found PkgConfig: C:/freesw/bin/pkg-config.exe (found version "0.26")
-- Checking for modules 'glib-2.0>=2.6.5;gthread-2.0>=2.6.5'
--   Found glib-2.0, version 2.26.1
--   Found gthread-2.0, version 2.26.1
-- Checking for module 'sndfile>=1.0.0'
--   No package 'sndfile' found
-- Checking for module 'libpulse-simple>=0.9.8'
--   No package 'libpulse-simple' found
-- Checking for module 'jack'
--   No package 'jack' found
-- Checking for module 'dbus-1>=1.0.0'
--   No package 'dbus-1' found
-- Looking for ladspa.h
-- Looking for ladspa.h - not found
-- Checking for module 'libinstpatch-1.0'
--   No package 'libinstpatch-1.0' found
-- Checking for module 'sdl2'
--   No package 'sdl2' found
-- Could NOT find READLINE (missing: READLINE_INCLUDE_DIR READLINE_LIBRARIES)
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.8.15") found components:  doxygen dot

**************************************************************
Summary:
Build type:            RelWithDebInfo
Install Prefix:        C:/Program Files (x86)/FluidSynth
libsndfile:            no (raw audio file rendering only)
D-Bus:                 no
PulseAudio:            no
JACK:                  no
ALSA:                  no
PortAudio:             no
OSS:                   no
OpenSLES:              no
Oboe:                  no
MidiShare:             no
CoreAudio:             no
CoreMIDI:              no
Windows:               yes
DSound:                yes
WaveOut support:       yes
WinMidi support:       yes
SDL2 support:          no
LADSPA support:        no
LASH support:          no
systemd support:       no
OS/2 DART support:     no
Audio to file driver:  yes
NETWORK Support :      yes
IPV6 Support :         no
Readline:              no
libinstpatch:          no
Samples type=float:    no (using double)
Profiling:             no
OpenMP 4.0:            no
Multi-thread support   yes
Debug:                 no
Trap on FPE (debug):   no
Check FPE (debug):     no
UBSan (debug):         no
**************************************************************


-- Configuring done
-- Generating done
-- Build files have been written to: C:/fluidsynth/build

C:\fluidsynth\build>mingw32-make.exe
Scanning dependencies of target gentables
[  1%] Creating directories for 'gentables'
[  3%] No download step for 'gentables'
[  5%] No patch step for 'gentables'
[  7%] No update step for 'gentables'
[  9%] Performing configure step for 'gentables'
-- The C compiler identification is GNU 5.1.0
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/fluidsynth/build/src/gentables
[ 11%] Performing build step for 'gentables'
Scanning dependencies of target make_tables
[ 25%] Building C object CMakeFiles/make_tables.dir/make_tables.c.obj
[ 50%] Building C object CMakeFiles/make_tables.dir/gen_conv.c.obj
[ 75%] Building C object CMakeFiles/make_tables.dir/gen_rvoice_dsp.c.obj
[100%] Linking C executable make_tables.exe
[100%] Built target make_tables
[ 13%] Performing install step for 'gentables'
[ 15%] Completed 'gentables'
[ 15%] Built target gentables
Scanning dependencies of target libfluidsynth-OBJ
[ 17%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_aufile.c.obj
[ 19%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_dsound.c.obj
[ 21%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_waveout.c.obj
[ 23%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_winmidi.c.obj
[ 25%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_conv.c.obj
[ 26%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_hash.c.obj
[ 28%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_list.c.obj
[ 30%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_ringbuffer.c.obj
[ 32%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_settings.c.obj
[ 34%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/utils/fluid_sys.c.obj
[ 36%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_defsfont.c.obj
[ 38%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sfont.c.obj
[ 40%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_sffile.c.obj
[ 42%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/sfloader/fluid_samplecache.c.obj
[ 44%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_adsr_env.c.obj
[ 46%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_chorus.c.obj
[ 48%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_iir_filter.c.obj
[ 50%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_lfo.c.obj
[ 51%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice.c.obj
[ 53%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_dsp.c.obj
[ 55%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_event.c.obj
[ 57%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rvoice_mixer.c.obj
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c: In function 'fluid_rvoice_buffers_mix':
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c:401:0: warning: ignoring #pragma omp simd [-Wunknown-pragmas]
         #pragma omp simd aligned(dsp_buf,buf:FLUID_DEFAULT_ALIGNMENT)
 ^
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c: In function 'fluid_mixer_buffers_mix':
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c:1070:0: warning: ignoring #pragma omp simd [-Wunknown-pragmas]
         #pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
 ^
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c:1084:0: warning: ignoring #pragma omp simd [-Wunknown-pragmas]
         #pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
 ^
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c:1105:0: warning: ignoring #pragma omp simd [-Wunknown-pragmas]
         #pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
 ^
C:\fluidsynth\src\rvoice\fluid_rvoice_mixer.c:1119:0: warning: ignoring #pragma omp simd [-Wunknown-pragmas]
         #pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
 ^
[ 59%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/rvoice/fluid_rev.c.obj
[ 61%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_chan.c.obj
[ 63%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_event.c.obj
[ 65%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_gen.c.obj
[ 67%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_mod.c.obj
[ 69%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth.c.obj
In file included from C:\fluidsynth\src\synth\fluid_synth.h:31:0,
                 from C:\fluidsynth\src\synth\fluid_synth.c:21:
C:\fluidsynth\src\synth\fluid_synth.c: In function 'fluid_synth_add_ticks':
C:\fluidsynth\src\synth\fluid_synth.c:481:26: warning: pointer targets in passing argument 1 of 'g_atomic_int_exchange_and_add' differ in signedness [-Wpointer-sign]
     fluid_atomic_int_add(&synth->ticks_since_start, val);
                          ^
C:/fluidsynth/src/utils/fluid_sys.h:385:33: note: in definition of macro 'fluid_atomic_int_add'
   g_atomic_int_exchange_and_add(_pi, _add)
                                 ^
In file included from C:/freesw/include/glib-2.0/glib/gthread.h:36:0,
                 from C:/freesw/include/glib-2.0/glib/gasyncqueue.h:34,
                 from C:/freesw/include/glib-2.0/glib.h:34,
                 from C:/fluidsynth/src/utils/fluidsynth_priv.h:32,
                 from C:/fluidsynth/src/utils/fluid_sys.h:42,
                 from C:\fluidsynth\src\synth\fluid_synth.h:31,
                 from C:\fluidsynth\src\synth\fluid_synth.c:21:
C:/freesw/include/glib-2.0/glib/gatomic.h:41:10: note: expected 'volatile gint * {aka volatile int *}' but argument is of type 'fluid_atomic_uint_t * {aka unsigned int *}'
 gint     g_atomic_int_exchange_and_add         (volatile gint G_GNUC_MAY_ALIAS *atomic,
          ^
[ 71%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_synth_monopoly.c.obj
[ 73%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_tuning.c.obj
[ 75%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/synth/fluid_voice.c.obj
[ 76%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi.c.obj
[ 78%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_midi_router.c.obj
[ 80%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seqbind.c.obj
[ 82%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seq.c.obj
[ 84%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_adriver.c.obj
[ 86%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/drivers/fluid_mdriver.c.obj
[ 88%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_cmd.c.obj
[ 90%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_filerenderer.c.obj
[ 92%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_ladspa.c.obj
[ 94%] Building RC object src/CMakeFiles/libfluidsynth-OBJ.dir/VersionResource.rc.obj
[ 94%] Built target libfluidsynth-OBJ
Scanning dependencies of target libfluidsynth
[ 96%] Linking C shared library libfluidsynth-2.dll
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgthread-2.0
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lglib-2.0
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lintl
collect2.exe: error: ld returned 1 exit status
src\CMakeFiles\libfluidsynth.dir\build.make:151: recipe for target 'src/libfluidsynth-2.dll' failed
mingw32-make.exe[2]: *** [src/libfluidsynth-2.dll] Error 1
CMakeFiles\Makefile2:95: recipe for target 'src/CMakeFiles/libfluidsynth.dir/all' failed
mingw32-make.exe[1]: *** [src/CMakeFiles/libfluidsynth.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2

C:\fluidsynth\build>

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
In order to help you further, please execute the following commands.
They will generate a bunch of text files in the command line's current
working directory. Please attach all of them to a mail.

echo %PATH% > path.txt
dir /s C:\freesw > dir_freesw.txt
pkg-config --libs glib-2.0 gthread-2.0 > pkgcfg_glib.txt

Clean your fluidsynth build directory and execute cmake as:

cmake -G "MinGW Makefiles" -DCMAKE_VERBOSE_MAKEFILE=1 .. > cmake.txt
mingw32-make.exe > make.txt


Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Hi 
I have done so, the files are attached.


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

path.txt (964 bytes) Download Attachment
pkgcfg_glib.txt (68 bytes) Download Attachment
dir_freesw.txt (20K) Download Attachment
cmake.txt (4K) Download Attachment
make.txt (41K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Ceresa Jean-Jacques

Hello,

 

1) Your c:/Freesw tree seems still incomplete.

 

Missing libraries files (needed at link time).

D:\Freesw\lib\glib-2.0.lib

D:\Freesw\lib\intl.lib

D:\Freesw\lib\gthread-2.0.lib

 

Missing shared library files (needed at execution time).

D:\Freesw\bin\libglib-2.0-0.dll

D:\Freesw\bin\intl.dll

D:\Freesw\bin\libgthread-2.0-0.dll

 

2)Also, on Windows readline package isn't required, you can tell cmake to omit this package using the right option when invoking cmake

 

cheers.

 

> Message du 09/06/19 18:58
> De : "Layers Incorporation" <[hidden email]>
> A : [hidden email]
> Copie à :
> Objet : Re: [fluid-dev] Using fluidsynth from the CMD
>
>
Hi 
I have done so, the files are attached.

>



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

>
> [ path.txt (0.9 Ko) ]
> [ pkgcfg_glib.txt (0.1 Ko) ]
> [ dir_freesw.txt (20.6 Ko) ]
> [ cmake.txt (4.9 Ko) ]
> [ make.txt (41.2 Ko) ]

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Hi again, 
You were right the files were missing and I added it but now I tried fluidsynth through the CMD 
when I tried to convert from midi to wav save it, it saved it but I can not play it: 
"Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."

this is the command I used:
fluidsynth -ni VintageDreamsWaves-v2.sf2 midi_file.midi -F wav_file.wav -r 44100

and I noticed it wrote a warning:
fluidsynth: warning: Sample 'SineWave': ROM sample ignored

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
> when I tried to convert from midi to wav save it, it saved it but I can not play it:

You need to provide libsndfile during build to be able to render to
any format you like. Otherwise only headerless RAW PCM files are
supported. I've updated the wiki to make that clearer:

https://github.com/FluidSynth/fluidsynth/wiki/BuildingWithCMake#requirements

Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Sorry maybe it just me but I do not understand what to do. 

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
CMake just told you the following:

**************************************************************
Summary:
...
libsndfile:            no (raw audio file rendering only)

Like glib, libsndfile is just another dependency. glib is
mandatory, while libsndfile is optional. To be able to render to any
audio format (wav, flac, ogg), you need to provide libsndfile in
C:\freesw when building fluidsynth, just like you did with glib
previously. Once done cmake will tell you:

**************************************************************
Summary:
...
libsndfile:            yes



Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
Hi, 
So I download the setup form the website: http://www.mega-nerd.com/libsndfile/ and locate the files in the freesw folder
but when I ran the command: "mingw32-make.exe" it wrote:

[ 96%] Linking C shared library libfluidsynth-2.dll
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsndfile
collect2.exe: error: ld returned 1 exit status
src\CMakeFiles\libfluidsynth.dir\build.make:151: recipe for target 'src/libfluidsynth-2.dll' failed
mingw32-make.exe[2]: *** [src/libfluidsynth-2.dll] Error 1
CMakeFiles\Makefile2:95: recipe for target 'src/CMakeFiles/libfluidsynth.dir/all' failed
mingw32-make.exe[1]: *** [src/CMakeFiles/libfluidsynth.dir/all] Error 2
Makefile:150: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2









 

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Tom M.
Oh, I see. This seems to be a bug in the pkgconfig file shipped with
sndfile. Try the following: Open C:\freesw\lib\pkgconfig\sndfile.pc
with a text editor, search for

-lsndfile

and replace it by

-lsndfile-1


Tom

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using fluidsynth from the CMD

Layers Incorporation
In reply to this post by Layers Incorporation
I have searched in the file there is no lsndfile, I attach the file for your convenience

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev

sndfile.pc (446 bytes) Download Attachment