ty armour | 23 Jan 22:51 2016

Tutorials suggestion

I am simply looking for tutorials. I want to develop mingw so that it works so I can compile and use synaptic underneath it.

I do want mingw to have access to hardware directly so that applications like jackd and alsa can work.

So any and everything mingw related, post tutorials on it please, and then it will become more and more useful.

Thanks for your time
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
kwikius | 23 Jan 16:14 2016
Picon

unzip error: zipfile probably corrupt (segmentation violation)


// Mingw32/msys version of Unzip unzips the file ok from the command 
line but not when called from in an app using "system(xx)" command
// Here is a program that demonstrates the problem

// Zip was originally downloaded from here..

//http://downloads.sourceforge.net/project/freertos/FreeRTOS/V8.2.3/\
FreeRTOSV8.2.3.zip
(// N.B. This behaviour also shows up with other large zip files)

#include <cstdlib>

// The app Works fine with GNUWin32 version of unzip
//const char* cmd = "C:/Gnuwin32/bin/unzip.exe \ 
C:/cpp/temp/FreeRTOSV8.2.3.zip -d C:/cpp/air_lib";

// but with Mingw/Msys version, during/after unzipping I get
// error:  zipfile probably corrupt (segmentation violation)
const char* cmd = "C:/MinGW/msys/1.0/bin/unzip.exe \ 
C:/cpp/temp/FreeRTOSV8.2.3.zip -d C:/cpp/air_lib";

int main()
{
    system (cmd);
}

---------- version info -----------
$ uname -a
MINGW32_NT-6.2 ANDYPC2 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

_mingw.h

#define __MINGW32_VERSION           3021000L
#define __MINGW32_MAJOR_VERSION           3
#define __MINGW32_MINOR_VERSION          21
#define __MINGW32_PATCHLEVEL              0

$ ld -v
GNU ld (GNU Binutils) 2.25.1

$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-
wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 -
-build=m
ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --
enable-lto
--enable-libssp --disable-multilib --enable-
languages=c,c++,fortran,objc,obj-c++
,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry --
enable-l
ibstdcxx-debug --enable-version-specific-runtime-libs --with-
gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-
src/bld --
with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes -
-enable-
libgomp --enable-threads --with-libiconv-prefix=/mingw32 --with-libintl-
prefix=/
mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
Thread model: win32
gcc version 4.8.1 (GCC)

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Patrik Wallander | 21 Jan 13:03 2016
Picon

Build FLTK 1.3.3 for crosscompile

Hi again,
It's solved! I had'nt install the mingw32 compiler.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Patrik Wallander | 21 Jan 09:32 2016
Picon

Build FLTK 1.3.3 for crosscompile

Hi!
I want to build a windows-executable on a Linux. The program I want to build uses the FLTK library.
When I try to configure FLTK with mingw64-configure I get the following fault.

ls: kan inte komma åt /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*: Filen eller katalogen finns inte
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-w64-mingw32
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... no
configure: error: in `/home/patrik/Hämtningar/fltk-1.3.3':
configure: error: C compiler cannot create executables
See `config.log' for more details

In english, ls can't reach "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/*"

I'm thankful for any help. 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

waterlan | 8 Jan 23:34 2016
Picon
Picon

[ANNOUNCEMENT] Updated: mingw32-libunistring 0.9.6-1

Hi,

The mingw32-libunistring package has been upgraded to version 0.9.6-1.

Changes:

http://git.savannah.gnu.org/cgit/libunistring.git/tree/NEWS

Note that the run-time library version went from version 0 to 2.

regards,

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

waterlan | 8 Jan 23:28 2016
Picon
Picon

[ANNOUNCEMENT] Updated: mingw32-ncurses 6.0-2

Hi,

Updated package: mingw32-ncurses 6.0-2.

The package is now split in three parts:

mingw32-libncurses : development and run-time libraries.
mingw32-ncurses    : documentation and programs
mingw32-terminfo   : terminal capability database

ncurses is listed in the Mingw Contributed Libraries section.

regards,

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Pedro Sousa | 8 Jan 11:15 2016
Picon

GCC 5.3 on mingw

Dear All,

I know mingw is an voluntary driven project, and we must respect the time each developer has to give to the project.
But I have today installed mingw and checked the gcc version is 4.8.1 and checked the current stable version in gcc site is 5.3

As so is there any plan to upgrade gcc in mingw?

Best regards,
Pedro Sousa
------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
Greg Jung | 5 Jan 07:02 2016
Picon

I need a compatible stat64

I'm building a program that uses a subroutine with a lot of file access,
several months back - compiling using mingw-w64 - I switched the use
of stat() to that of stat64() in order to get a 64-bit file size.  This works fine
in mingw-w64, cygwin, and linux but I find now it is invalid in this 
mingw.  Can someone suggest a viable workaround? 


#ifndef _MSC_VER
# include <libgen.h>
# include <sys/types.h>
#endif
#include <sys/fcntl.h>
#include <sys/stat.h>
#ifndef _MSC_VER
# include <unistd.h> 
#endif
...
#ifdef __CYGWIN__
#define stat64 stat
#define lstat64 lstat
// for religious reasons, CYGWIN doesn't do lstat64
#endif
...
#ifdef _WIN32
//
#ifdef _MSC_VER // MSVC uses 64bit internally
#   define stat64 stat
#   define lstat64(x,y) stat(x,y) 
#else
#    define lstat64(x,y) stat64(x,y)
#endif

...
struct stat64 statStruct;
F:/gdl/src/file.cpp:400:22: error: aggregate 'FindInDir(const DString&, const DString&)::stat64 statStruct' has incomplete type and cannot be defined
     struct stat64    statStruct;
                      ^
F:/gdl/src/file.cpp:258:37: error: invalid use of incomplete type 'struct FindInDir(const DString&, const DString&)::stat64'

I tried a simple #define stat64 __stat64 in sys/stat.h but that doesn't fly.

Thanks,
Greg
------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe
waterlan | 4 Jan 22:02 2016
Picon
Picon

[ANNOUNCEMENT] New: mingw32-ncurses 6.0

Hi,

A new package is available: mingw32-ncurses 6.0.

You can install it with mingw-get.
In the gui it is listed in the Mingw Contributed section.

Both narrow and wide (Unicode) text is supported.

ncurses 6.0 improved a lot for Windows since 5.9, but there are still
issues (which are not in PDCurses).
* To make it work in Console (also known as Console2) you have to set
   the NCURSES_CONSOLE2 environment variable.
* It doesn't work at all in ConsoleZ.
* You may see tremble in the screen while it is redrawing.

Advantage over PDCurses:
* support for Unicode combining characters.

regards,

--

-- 
Erwin Waterlander
http://waterlan.home.xs4all.nl/

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Steve A | 3 Jan 12:43 2016
Picon

Re: CreateFileA issue

Our problem was the CreateFileA share permissions, which had
previously worked fine as NULL, now need to be "FILE_SHARE_READ |
FILE_SHARE_WRITE". (Using either one of these alone does not work).
thanks again, Steven

On Sun, Jan 3, 2016 at 9:26 AM, Steve A <stevenaaus@...> wrote:
> Sorry mate - maybe we have opened it already.
> Will check it out and get back to you.
>
>
> On Sun, Jan 3, 2016 at 8:46 AM, Steve A <stevenaaus@...> wrote:
>> The same error result is given if i replace the
>> FILE_FLAG_SEQUENTIAL_SCAN with FILE_ATTRIBUTE_NORMAL
>>
>> And also if i replace the share flag with FILE_SHARE_READ or
>> FILE_SHARE_WRITE  while using FILE_ATTRIBUTE_NORMAL
>>
>> ... Sorry - it's a bit hard for me to make simple program/case.
>>
>>
>> On Sun, Jan 3, 2016 at 7:47 AM, Steve A <stevenaaus@...> wrote:
>>> ERROR_SHARING_VIOLATION 32 (0x20)
>>> "The process cannot access the file because it is being used by
>>> another process."
>>>
>>> But i'm doubtful our program has opened it at all at this stage.
>>> Especially since it works fine on Fed14.
>>>
>>> thanks
>>>
>>>
>>>
>>> On Sat, Jan 2, 2016 at 11:28 PM, Eli Zaretskii <eliz@...> wrote:
>>>>> Date: Sat, 2 Jan 2016 23:18:17 +1000
>>>>> From: Steve A <stevenaaus@...>
>>>>>
>>>>> If i can figure out how to see GetLastError()
>>>>> i will let you know, but stdout is missing of course
>>>>> and our custom wish does not have a "console".
>>>>
>>>> Open a file and write the error to it.
>>>>
>>>>> I think i should be able to, but I am more a wish programmer than C.
>>>>> (The CreateFileA code in question is contributed.)
>>>>> At the moment CreateFileA just returns INVALID_HANDLE_VALUE
>>>>
>>>> Can you show the shortest C program using this call that exhibits the
>>>> problem?

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

Steve A | 2 Jan 07:48 2016
Picon

CreateFileA issue

Hi,
We cross compile our project for win32 and win64.
But we have a bug on some platforms - well most.
We do a fast file open and read inited with CreateFileA
FILE_FLAG_SEQUENTIAL_SCAN.
It works great compiled on our old fed14 system.
File reads about 4 or 5 times faster than otherwise.

m_file = CreateFileA(
                                        filename,
                                        GENERIC_READ,
                                        0,
                                        0,
                                        OPEN_EXISTING,
                                        FILE_FLAG_SEQUENTIAL_SCAN |
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_TEMPORARY,
                                        0);

but CreateFileA is failing for us at runtime when compiled on many
other systems. eg mint17 64 bit (and mint15 32 bit) for win32,
and also my mate's system for win64. We can sucessfully open files
conventionally on these systems though.

  mint17 64 bit:
binutils-mingw-w64-i686  2.23.52.20130620-1ubuntu1+3build1
g++-mingw-w64-i686   4.8.2-10ubuntu2+12
gcc-mingw-w64-base  4.8.2-10ubuntu2+12
gcc-mingw-w64-i686   4.8.2-10ubuntu2+12
mingw-w64-common     3.1.0-1
mingw-w64-i686-dev     3.1.0-1

  But it works when compiled on fed14 amd64 (for win32)
mingw32-pthreads-2.8.0-10.fc13.noarch
mingw32-runtime-3.15.2-5.fc13.noarch
mingw32-w32api-3.14-1.fc14.noarch
mingetty-1.08-4.fc12.x86_64
mingw32-filesystem-64-2.fc14.noarch
mingw32-gcc-4.5.0-1.fc14.x86_64
mingw32-binutils-2.20.1-2.fc14.x86_64
mingw32-cpp-4.5.0-1.fc14.x86_64
mingw32-gcc-c++-4.5.0-1.fc14.x86_64

I've done header comparisons for CreateFileA and the flags
but am stumped where the problem may be.

Any ideas ?
thanks, Steven

scidvspc.sf.net , Makefile.mingwx, src/win_mmap.h

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe


Gmane