Csound Csound-dev Csound-tekno Search About

[Cs-dev] CsoundQt bug

Date2013-07-21 19:53
FromMichael Gogins
Subject[Cs-dev] CsoundQt bug
AttachmentsNone  None  
I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.

Regards,
Mike

===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2013-07-21 22:36
FromMichael Gogins
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.

Regards,
Mike

===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


Date2013-07-22 00:24
FromAndres Cabrera
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
Hi Michael,

You shouldn't have to add -DUSE_DOUBLES as this should be automatic and the default (unless you are specifically asking for a floats build). So it might be a bug. Where did you need to specify -DUSE_DOUBLES?

Cheers,
Andrés


On Sun, Jul 21, 2013 at 2:36 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.

Regards,
Mike

===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-07-22 00:56
FromMichael Gogins
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
I used:

To configure Qt:

configure -debug-and-release -opensource -confirm-license -no-opengl -no-openssl -plugin-sql-odbc -nomake tests

To build Qt:

make

To configure CsoundQt, config.user.pri containing:

CSOUND_INTERFACES_INCLUDE_DIR = C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_API_INCLUDE_DIRS = C:\\Users\\new\\csound-csound6-git\\include C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_LIBRARY_DIRS = "C:\\Users\new\\csound-csound6-git"

DEFAULT_LIBSNDFILE_INCLUDE_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\include"

DEFAULT_LIBSNDFILE_LIBRARY_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\bin"

build32: DEFAULT_CSOUND_LIBS = csound32.dll

build64: DEFAULT_CSOUND_LIBS = csound64.dll

LIBSNDFILE_LIB = libsndfile-1.dll


DEFAULT_PYTHON_INCLUDE_DIRS = "C:\\Python27\\include"

DEFAULT_PYTHONQT_SRC_DIRS = "$(PROGRAMFILES)\\PythonQt"

Apply the following patch to qcs.pro. I'm not sure the first differences (-34) are required, if so change the paths for me to paths for you.


index d89cac3..e73189b 100644

--- a/qcs.pro

+++ b/qcs.pro

@@ -34,9 +34,10 @@ csound6: { # Csound6 requires some internal changes

# LIBS += -F/Users/cristina/Library/Frameworks

# LIBS += -framework CsoundLib64

} else {

- CSOUND_INCLUDE_DIR = /home/andres/Documents/src/csound-csound6-git/include

- INCLUDEPATH += /home/andres/Documents/src/csound-csound6-git/interfaces

- CSOUND_LIBRARY_DIR = /home/andres/Documents/src/csound-csound6-git-build/

+ CSOUND_API_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ CSOUND_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ INCLUDEPATH += C:/Users/new/csound-csound6-git/interfaces

+ CSOUND_LIBRARY_DIR = C:/Users/new/csound-csound6-git-build/

}

}

message("Building for Csound 6")

@@ -90,7 +91,7 @@ pythonqt {

}

INCLUDEPATH *= ${CSOUND_API_INCLUDE_DIR}

-#INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

+INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

INCLUDEPATH *= ${LIBSNDFILE_INCLUDE_DIR}

To configure and create the makefile, execute:

qmake qcs.pro

To build CsoundQt, execute:

make CXXFLAGS="-DUSE_QT5 -DCSOUND6 -DUSE_DOUBLE -march=nocona -g -O2"



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 7:24 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
>
> Hi Michael,
>
> You shouldn't have to add -DUSE_DOUBLES as this should be automatic and the default (unless you are specifically asking for a floats build). So it might be a bug. Where did you need to specify -DUSE_DOUBLES?
>
> Cheers,
> Andrés
>
>
> On Sun, Jul 21, 2013 at 2:36 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>
>> Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.
>>
>> Regards,
>> Mike
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>
>>> I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.
>>>
>>> Regards,
>>> Mike
>>>
>>> ===========================
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

Date2013-07-22 01:21
FromAndres Cabrera
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
Thanks Michael,

You are right that the differences in lines 34- are not needed for windows as they will apply only for *nix systems.

But I'll put back your other change, it will still be required if you are linking to the csound sources directly, rather than an installed version.

To make sure things work properly, you should pass the options to qmake rather than CXX_FLAGS:

qmake qcs.pro CONFIG+=csound6

You shouldn't need to add -DUSE_QT5 or -DUSE_DOUBLES as that should be detected and added automatically. Can you post the output of qmake to make sure?

Cheers,
Andrés






On Sun, Jul 21, 2013 at 4:56 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I used:

To configure Qt:

configure -debug-and-release -opensource -confirm-license -no-opengl -no-openssl -plugin-sql-odbc -nomake tests

To build Qt:

make

To configure CsoundQt, config.user.pri containing:

CSOUND_INTERFACES_INCLUDE_DIR = C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_API_INCLUDE_DIRS = C:\\Users\\new\\csound-csound6-git\\include C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_LIBRARY_DIRS = "C:\\Users\new\\csound-csound6-git"

DEFAULT_LIBSNDFILE_INCLUDE_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\include"

DEFAULT_LIBSNDFILE_LIBRARY_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\bin"

build32: DEFAULT_CSOUND_LIBS = csound32.dll

build64: DEFAULT_CSOUND_LIBS = csound64.dll

LIBSNDFILE_LIB = libsndfile-1.dll


DEFAULT_PYTHON_INCLUDE_DIRS = "C:\\Python27\\include"

DEFAULT_PYTHONQT_SRC_DIRS = "$(PROGRAMFILES)\\PythonQt"

Apply the following patch to qcs.pro. I'm not sure the first differences (-34) are required, if so change the paths for me to paths for you.


index d89cac3..e73189b 100644

--- a/qcs.pro

+++ b/qcs.pro

@@ -34,9 +34,10 @@ csound6: { # Csound6 requires some internal changes

# LIBS += -F/Users/cristina/Library/Frameworks

# LIBS += -framework CsoundLib64

} else {

- CSOUND_INCLUDE_DIR = /home/andres/Documents/src/csound-csound6-git/include

- INCLUDEPATH += /home/andres/Documents/src/csound-csound6-git/interfaces

- CSOUND_LIBRARY_DIR = /home/andres/Documents/src/csound-csound6-git-build/

+ CSOUND_API_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ CSOUND_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ INCLUDEPATH += C:/Users/new/csound-csound6-git/interfaces

+ CSOUND_LIBRARY_DIR = C:/Users/new/csound-csound6-git-build/

}

}

message("Building for Csound 6")

@@ -90,7 +91,7 @@ pythonqt {

}

INCLUDEPATH *= ${CSOUND_API_INCLUDE_DIR}

-#INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

+INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

INCLUDEPATH *= ${LIBSNDFILE_INCLUDE_DIR}

To configure and create the makefile, execute:

qmake qcs.pro

To build CsoundQt, execute:

make CXXFLAGS="-DUSE_QT5 -DCSOUND6 -DUSE_DOUBLE -march=nocona -g -O2"




===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 7:24 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
>
> Hi Michael,
>
> You shouldn't have to add -DUSE_DOUBLES as this should be automatic and the default (unless you are specifically asking for a floats build). So it might be a bug. Where did you need to specify -DUSE_DOUBLES?
>
> Cheers,
> Andrés
>
>
> On Sun, Jul 21, 2013 at 2:36 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>
>> Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.
>>
>> Regards,
>> Mike
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>
>>> I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.
>>>
>>> Regards,
>>> Mike
>>>
>>> ===========================
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-07-22 01:22
FromAndres Cabrera
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
BTW, the issue with not printing the last lines in the terminal should now be solved.

Cheers,
Andrés


On Sun, Jul 21, 2013 at 5:21 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Thanks Michael,

You are right that the differences in lines 34- are not needed for windows as they will apply only for *nix systems.

But I'll put back your other change, it will still be required if you are linking to the csound sources directly, rather than an installed version.

To make sure things work properly, you should pass the options to qmake rather than CXX_FLAGS:

qmake qcs.pro CONFIG+=csound6

You shouldn't need to add -DUSE_QT5 or -DUSE_DOUBLES as that should be detected and added automatically. Can you post the output of qmake to make sure?

Cheers,
Andrés






On Sun, Jul 21, 2013 at 4:56 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I used:

To configure Qt:

configure -debug-and-release -opensource -confirm-license -no-opengl -no-openssl -plugin-sql-odbc -nomake tests

To build Qt:

make

To configure CsoundQt, config.user.pri containing:

CSOUND_INTERFACES_INCLUDE_DIR = C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_API_INCLUDE_DIRS = C:\\Users\\new\\csound-csound6-git\\include C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_LIBRARY_DIRS = "C:\\Users\new\\csound-csound6-git"

DEFAULT_LIBSNDFILE_INCLUDE_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\include"

DEFAULT_LIBSNDFILE_LIBRARY_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\bin"

build32: DEFAULT_CSOUND_LIBS = csound32.dll

build64: DEFAULT_CSOUND_LIBS = csound64.dll

LIBSNDFILE_LIB = libsndfile-1.dll


DEFAULT_PYTHON_INCLUDE_DIRS = "C:\\Python27\\include"

DEFAULT_PYTHONQT_SRC_DIRS = "$(PROGRAMFILES)\\PythonQt"

Apply the following patch to qcs.pro. I'm not sure the first differences (-34) are required, if so change the paths for me to paths for you.


index d89cac3..e73189b 100644

--- a/qcs.pro

+++ b/qcs.pro

@@ -34,9 +34,10 @@ csound6: { # Csound6 requires some internal changes

# LIBS += -F/Users/cristina/Library/Frameworks

# LIBS += -framework CsoundLib64

} else {

- CSOUND_INCLUDE_DIR = /home/andres/Documents/src/csound-csound6-git/include

- INCLUDEPATH += /home/andres/Documents/src/csound-csound6-git/interfaces

- CSOUND_LIBRARY_DIR = /home/andres/Documents/src/csound-csound6-git-build/

+ CSOUND_API_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ CSOUND_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ INCLUDEPATH += C:/Users/new/csound-csound6-git/interfaces

+ CSOUND_LIBRARY_DIR = C:/Users/new/csound-csound6-git-build/

}

}

message("Building for Csound 6")

@@ -90,7 +91,7 @@ pythonqt {

}

INCLUDEPATH *= ${CSOUND_API_INCLUDE_DIR}

-#INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

+INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

INCLUDEPATH *= ${LIBSNDFILE_INCLUDE_DIR}

To configure and create the makefile, execute:

qmake qcs.pro

To build CsoundQt, execute:

make CXXFLAGS="-DUSE_QT5 -DCSOUND6 -DUSE_DOUBLE -march=nocona -g -O2"




===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 7:24 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
>
> Hi Michael,
>
> You shouldn't have to add -DUSE_DOUBLES as this should be automatic and the default (unless you are specifically asking for a floats build). So it might be a bug. Where did you need to specify -DUSE_DOUBLES?
>
> Cheers,
> Andrés
>
>
> On Sun, Jul 21, 2013 at 2:36 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>
>> Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.
>>
>> Regards,
>> Mike
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>
>>> I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.
>>>
>>> Regards,
>>> Mike
>>>
>>> ===========================
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2013-07-22 15:34
FromMichael Gogins
SubjectRe: [Cs-dev] CsoundQt bug
AttachmentsNone  None  
I installed the latest Windows Csound 6 with CsoundQt on another computer and I get the same crash as reported above. There is not enough information to diagnose the cause. I will place additional libraries from my Qt build in the Csound bin directory to see if that helps.

The problem may be one of architecture. I could not build Qt for nocona, it is built for i386 with some extensions that the configure script tacked on. I can try changing the extensions explicitly to match nocona.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 8:22 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
BTW, the issue with not printing the last lines in the terminal should now be solved.

Cheers,
Andrés


On Sun, Jul 21, 2013 at 5:21 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Thanks Michael,

You are right that the differences in lines 34- are not needed for windows as they will apply only for *nix systems.

But I'll put back your other change, it will still be required if you are linking to the csound sources directly, rather than an installed version.

To make sure things work properly, you should pass the options to qmake rather than CXX_FLAGS:

qmake qcs.pro CONFIG+=csound6

You shouldn't need to add -DUSE_QT5 or -DUSE_DOUBLES as that should be detected and added automatically. Can you post the output of qmake to make sure?

Cheers,
Andrés






On Sun, Jul 21, 2013 at 4:56 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
I used:

To configure Qt:

configure -debug-and-release -opensource -confirm-license -no-opengl -no-openssl -plugin-sql-odbc -nomake tests

To build Qt:

make

To configure CsoundQt, config.user.pri containing:

CSOUND_INTERFACES_INCLUDE_DIR = C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_API_INCLUDE_DIRS = C:\\Users\\new\\csound-csound6-git\\include C:\\Users\\new\\csound-csound6-git\\interfaces

DEFAULT_CSOUND_LIBRARY_DIRS = "C:\\Users\new\\csound-csound6-git"

DEFAULT_LIBSNDFILE_INCLUDE_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\include"

DEFAULT_LIBSNDFILE_LIBRARY_DIRS = "C:\\mingw32-4.7.2\\msys\\1.0\\opt\\Mega-Nerd\\libsndfile\\bin"

build32: DEFAULT_CSOUND_LIBS = csound32.dll

build64: DEFAULT_CSOUND_LIBS = csound64.dll

LIBSNDFILE_LIB = libsndfile-1.dll


DEFAULT_PYTHON_INCLUDE_DIRS = "C:\\Python27\\include"

DEFAULT_PYTHONQT_SRC_DIRS = "$(PROGRAMFILES)\\PythonQt"

Apply the following patch to qcs.pro. I'm not sure the first differences (-34) are required, if so change the paths for me to paths for you.


index d89cac3..e73189b 100644

--- a/qcs.pro

+++ b/qcs.pro

@@ -34,9 +34,10 @@ csound6: { # Csound6 requires some internal changes

# LIBS += -F/Users/cristina/Library/Frameworks

# LIBS += -framework CsoundLib64

} else {

- CSOUND_INCLUDE_DIR = /home/andres/Documents/src/csound-csound6-git/include

- INCLUDEPATH += /home/andres/Documents/src/csound-csound6-git/interfaces

- CSOUND_LIBRARY_DIR = /home/andres/Documents/src/csound-csound6-git-build/

+ CSOUND_API_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ CSOUND_INCLUDE_DIR = C:/Users/new/csound-csound6-git/include

+ INCLUDEPATH += C:/Users/new/csound-csound6-git/interfaces

+ CSOUND_LIBRARY_DIR = C:/Users/new/csound-csound6-git-build/

}

}

message("Building for Csound 6")

@@ -90,7 +91,7 @@ pythonqt {

}

INCLUDEPATH *= ${CSOUND_API_INCLUDE_DIR}

-#INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

+INCLUDEPATH *= ${CSOUND_INTERFACES_INCLUDE_DIR}

INCLUDEPATH *= ${LIBSNDFILE_INCLUDE_DIR}

To configure and create the makefile, execute:

qmake qcs.pro

To build CsoundQt, execute:

make CXXFLAGS="-DUSE_QT5 -DCSOUND6 -DUSE_DOUBLE -march=nocona -g -O2"




===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jul 21, 2013 at 7:24 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
>
> Hi Michael,
>
> You shouldn't have to add -DUSE_DOUBLES as this should be automatic and the default (unless you are specifically asking for a floats build). So it might be a bug. Where did you need to specify -DUSE_DOUBLES?
>
> Cheers,
> Andrés
>
>
> On Sun, Jul 21, 2013 at 2:36 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>
>> Oops, my big fat mistake. Nothing is wrong, I simply had to add -DUSE_DOUBLE to the make command line. Channels work fine. Maybe some of the other problems people reported also are fixed. I am uploading a new installer now.
>>
>> Regards,
>> Mike
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Sun, Jul 21, 2013 at 2:53 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>
>>> I've found another CsoundQt bug for Csound6 on MinGW/MSys 4.7.2 with Qt 5.1 on Windows 8, a serious one. The control channels always return 0 values.
>>>
>>> Regards,
>>> Mike
>>>
>>> ===========================
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel