Ld error compiling on WinXP

7 messages Options
Embed this post
Permalink
Raffaele-3

Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Hallo all! I'm new to this ML... Happy to participate... :)

So...
I'm trying to compile on a Windows XP machine...
I followed the developer handbook (Apart a little correction in
utils.ccp to write the missing declaration of gettimeofday()
function...)

The problem arrives at linking time with this mysterious message:

..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
std::char_traits<char>, std::alloc
tor<char> > const&)]+0x2f): In function
`ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
`_imp___ZNK7QString7toAsciiEv'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [mscore/mscore.exe] Error 1
mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
mingw32-make[1]: *** [all] Error 2
mingw32-make: *** [win32] Error 2

I understand that happens when the linker arrives to
"osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
reason of the error....

Any suggestion?

Thank you...
Raffaele

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
lasconic

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
I have no clue :) But I'm currently writing a shorter tutorial to compile musescore on windows.
It will be available today I think. Btw, I didn't need to change anything in utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
Lasconic

2009/4/4 Raf <[hidden email]>
Hallo all! I'm new to this ML... Happy to participate... :)

So...
I'm trying to compile on a Windows XP machine...
I followed the developer handbook (Apart a little correction in
utils.ccp to write the missing declaration of gettimeofday()
function...)

The problem arrives at linking time with this mysterious message:

..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
std::char_traits<char>, std::alloc
tor<char> > const&)]+0x2f): In function
`ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
`_imp___ZNK7QString7toAsciiEv'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [mscore/mscore.exe] Error 1
mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
mingw32-make[1]: *** [all] Error 2
mingw32-make: *** [win32] Error 2

I understand that happens when the linker arrives to
"osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
reason of the error....

Any suggestion?

Thank you...
Raffaele

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Raffaele-3

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Thank you Lasconic!
The tutorial will be a great help...

For utils.cpp the problem is that the MinGW version coming with Qt
4.4.3 brings a sys/time.h without the gettimeofday() declaration... I
think it's an old version of MinGW...
Btw, I used the 0.9.4 version....

Thank you again... :)
Raffaele




On Sat, Apr 4, 2009 at 12:29 PM, Lasconic <[hidden email]> wrote:

> I have no clue :) But I'm currently writing a shorter tutorial to compile
> musescore on windows.
> It will be available today I think. Btw, I didn't need to change anything in
> utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
> Lasconic
>
> 2009/4/4 Raf <[hidden email]>
>>
>> Hallo all! I'm new to this ML... Happy to participate... :)
>>
>> So...
>> I'm trying to compile on a Windows XP machine...
>> I followed the developer handbook (Apart a little correction in
>> utils.ccp to write the missing declaration of gettimeofday()
>> function...)
>>
>> The problem arrives at linking time with this mysterious message:
>>
>>
>> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
>> std::char_traits<char>, std::alloc
>> tor<char> > const&)]+0x2f): In function
>> `ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
>>
>> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
>> undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
>>
>> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
>> const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
>> include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
>> `_imp___ZNK7QString7toAsciiEv'
>> collect2: ld returned 1 exit status
>> mingw32-make[3]: *** [mscore/mscore.exe] Error 1
>> mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
>> mingw32-make[1]: *** [all] Error 2
>> mingw32-make: *** [win32] Error 2
>>
>> I understand that happens when the linker arrives to
>> "osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
>> reason of the error....
>>
>> Any suggestion?
>>
>> Thank you...
>> Raffaele
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Mscore-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
lasconic

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Ok I added some files in the SVN and a tutorial in the developer handbook : http://www.musescore.org/en/handbook/developers-handbook
to compile the last trunk. I don't know why you want to compile musescore. But if it's for developing new features maybe it's better to use the trunk?
Tell me if my tutorial is not clear.

Lasconic

2009/4/4 Raf <[hidden email]>
Thank you Lasconic!
The tutorial will be a great help...

For utils.cpp the problem is that the MinGW version coming with Qt
4.4.3 brings a sys/time.h without the gettimeofday() declaration... I
think it's an old version of MinGW...
Btw, I used the 0.9.4 version....

Thank you again... :)
Raffaele




On Sat, Apr 4, 2009 at 12:29 PM, Lasconic <[hidden email]> wrote:
> I have no clue :) But I'm currently writing a shorter tutorial to compile
> musescore on windows.
> It will be available today I think. Btw, I didn't need to change anything in
> utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
> Lasconic
>
> 2009/4/4 Raf <[hidden email]>
>>
>> Hallo all! I'm new to this ML... Happy to participate... :)
>>
>> So...
>> I'm trying to compile on a Windows XP machine...
>> I followed the developer handbook (Apart a little correction in
>> utils.ccp to write the missing declaration of gettimeofday()
>> function...)
>>
>> The problem arrives at linking time with this mysterious message:
>>
>>
>> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
>> std::char_traits<char>, std::alloc
>> tor<char> > const&)]+0x2f): In function
>> `ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
>>
>> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
>> undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
>>
>> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
>> const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
>> include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
>> `_imp___ZNK7QString7toAsciiEv'
>> collect2: ld returned 1 exit status
>> mingw32-make[3]: *** [mscore/mscore.exe] Error 1
>> mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
>> mingw32-make[1]: *** [all] Error 2
>> mingw32-make: *** [win32] Error 2
>>
>> I understand that happens when the linker arrives to
>> "osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
>> reason of the error....
>>
>> Any suggestion?
>>
>> Thank you...
>> Raffaele
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Mscore-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Raffaele-3

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Thank you... :)
I will try on Monday and I'll let you know... And I'll describe also
why I want to develop new features for musescore...

Bye,
Raffaele

On Sat, Apr 4, 2009 at 1:53 PM, Lasconic <[hidden email]> wrote:

> Ok I added some files in the SVN and a tutorial in the developer handbook :
> http://www.musescore.org/en/handbook/developers-handbook
> to compile the last trunk. I don't know why you want to compile musescore.
> But if it's for developing new features maybe it's better to use the trunk?
> Tell me if my tutorial is not clear.
>
> Lasconic
>
> 2009/4/4 Raf <[hidden email]>
>>
>> Thank you Lasconic!
>> The tutorial will be a great help...
>>
>> For utils.cpp the problem is that the MinGW version coming with Qt
>> 4.4.3 brings a sys/time.h without the gettimeofday() declaration... I
>> think it's an old version of MinGW...
>> Btw, I used the 0.9.4 version....
>>
>> Thank you again... :)
>> Raffaele
>>
>>
>>
>>
>> On Sat, Apr 4, 2009 at 12:29 PM, Lasconic <[hidden email]> wrote:
>> > I have no clue :) But I'm currently writing a shorter tutorial to
>> > compile
>> > musescore on windows.
>> > It will be available today I think. Btw, I didn't need to change
>> > anything in
>> > utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
>> > Lasconic
>> >
>> > 2009/4/4 Raf <[hidden email]>
>> >>
>> >> Hallo all! I'm new to this ML... Happy to participate... :)
>> >>
>> >> So...
>> >> I'm trying to compile on a Windows XP machine...
>> >> I followed the developer handbook (Apart a little correction in
>> >> utils.ccp to write the missing declaration of gettimeofday()
>> >> function...)
>> >>
>> >> The problem arrives at linking time with this mysterious message:
>> >>
>> >>
>> >>
>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
>> >> std::char_traits<char>, std::alloc
>> >> tor<char> > const&)]+0x2f): In function
>> >> `ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
>> >>
>> >>
>> >> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
>> >> undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
>> >>
>> >>
>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
>> >> const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
>> >> include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
>> >> `_imp___ZNK7QString7toAsciiEv'
>> >> collect2: ld returned 1 exit status
>> >> mingw32-make[3]: *** [mscore/mscore.exe] Error 1
>> >> mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
>> >> mingw32-make[1]: *** [all] Error 2
>> >> mingw32-make: *** [win32] Error 2
>> >>
>> >> I understand that happens when the linker arrives to
>> >> "osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
>> >> reason of the error....
>> >>
>> >> Any suggestion?
>> >>
>> >> Thank you...
>> >> Raffaele
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Mscore-developer mailing list
>> >> [hidden email]
>> >> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Mscore-developer mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/mscore-developer
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>

------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Raffaele-3

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Hi Lasconic and hi all...
Yesterday I spent all day trying to compile Musescore on Windows XP...
But nothing yet...
First issue:
When you download the source, the file
SOURCESDIR\mscore\cmake\mingw32.mingw.cmake begins as follows:

set (CROSS C:/Qt/2009.01/mingw)
set (CROSSQT C:/Qt/2009.01/qt)

set (CMAKE_C_COMPILER     ${CROSS}/bin/i386-mingw32-gcc)
set (CMAKE_CXX_COMPILER   ${CROSS}/bin/i386-mingw32-g++)
set (CMAKE_STRIP          ${CROSS}/bin/i386-mingw32-strip)
set (CMAKE_FIND_ROOT_PATH ${CROSS}/i386-mingw32)

The compiler executables file names are wrong... I did change the rows
as follows:

set (CMAKE_C_COMPILER     ${CROSS}/bin/mingw32-gcc.exe)
set (CMAKE_CXX_COMPILER   ${CROSS}/bin/mingw32-g++.exe)
set (CMAKE_STRIP  ${CROSS}/bin/strip.exe)
set (CMAKE_FIND_ROOT_PATH ${CROSS})

Is it right?

The remaining problems are:
At the beginning of the compilation the compiler mingw32 says:
Qt lib found at C:/Qt/2009.01/qt/lib
Qt QTDESIGNER library not found.
Qt QTSCRIPT library not found.
Qt QTSVG library not found.
Qt QTUITOOLS library not found.
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTNETWORK library not found.
Qt QTCORE library not found.
Disabling ALSA support due to OS X or MINGW build.

Is it normal?

Finally... The compilation process stops at 73% with this:

Linking CXX static library libfluid.a
mingw32-make[3]: Leaving directory `C:/MPAL/source/win32build'
[ 72%] Built target fluid
mingw32-make[3]: Entering directory `C:/MPAL/source/win32build'
[ 72%] Generating ../resfile.o
[ 72%] Generating qrc_mscore.cxx
File not found.
mingw32-make[3]: *** [mscore/qrc_mscore.cxx] Error 1
mingw32-make[3]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
mingw32-make[2]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make[1]: *** [all] Error 2
mingw32-make[1]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make: *** [win32] Error 2

It seems that something is missing in the variables of cmake but... No
idea what...

Any suggestion?

Thank you..
Raffaele



On Sat, Apr 4, 2009 at 2:08 PM, Raf <[hidden email]> wrote:

> Thank you... :)
> I will try on Monday and I'll let you know... And I'll describe also
> why I want to develop new features for musescore...
>
> Bye,
> Raffaele
>
> On Sat, Apr 4, 2009 at 1:53 PM, Lasconic <[hidden email]> wrote:
>> Ok I added some files in the SVN and a tutorial in the developer handbook :
>> http://www.musescore.org/en/handbook/developers-handbook
>> to compile the last trunk. I don't know why you want to compile musescore.
>> But if it's for developing new features maybe it's better to use the trunk?
>> Tell me if my tutorial is not clear.
>>
>> Lasconic
>>
>> 2009/4/4 Raf <[hidden email]>
>>>
>>> Thank you Lasconic!
>>> The tutorial will be a great help...
>>>
>>> For utils.cpp the problem is that the MinGW version coming with Qt
>>> 4.4.3 brings a sys/time.h without the gettimeofday() declaration... I
>>> think it's an old version of MinGW...
>>> Btw, I used the 0.9.4 version....
>>>
>>> Thank you again... :)
>>> Raffaele
>>>
>>>
>>>
>>>
>>> On Sat, Apr 4, 2009 at 12:29 PM, Lasconic <[hidden email]> wrote:
>>> > I have no clue :) But I'm currently writing a shorter tutorial to
>>> > compile
>>> > musescore on windows.
>>> > It will be available today I think. Btw, I didn't need to change
>>> > anything in
>>> > utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
>>> > Lasconic
>>> >
>>> > 2009/4/4 Raf <[hidden email]>
>>> >>
>>> >> Hallo all! I'm new to this ML... Happy to participate... :)
>>> >>
>>> >> So...
>>> >> I'm trying to compile on a Windows XP machine...
>>> >> I followed the developer handbook (Apart a little correction in
>>> >> utils.ccp to write the missing declaration of gettimeofday()
>>> >> function...)
>>> >>
>>> >> The problem arrives at linking time with this mysterious message:
>>> >>
>>> >>
>>> >>
>>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
>>> >> std::char_traits<char>, std::alloc
>>> >> tor<char> > const&)]+0x2f): In function
>>> >> `ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
>>> >>
>>> >>
>>> >> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
>>> >> undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
>>> >>
>>> >>
>>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
>>> >> const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
>>> >> include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
>>> >> `_imp___ZNK7QString7toAsciiEv'
>>> >> collect2: ld returned 1 exit status
>>> >> mingw32-make[3]: *** [mscore/mscore.exe] Error 1
>>> >> mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
>>> >> mingw32-make[1]: *** [all] Error 2
>>> >> mingw32-make: *** [win32] Error 2
>>> >>
>>> >> I understand that happens when the linker arrives to
>>> >> "osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
>>> >> reason of the error....
>>> >>
>>> >> Any suggestion?
>>> >>
>>> >> Thank you...
>>> >> Raffaele
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> _______________________________________________
>>> >> Mscore-developer mailing list
>>> >> [hidden email]
>>> >> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> >
>>> > _______________________________________________
>>> > Mscore-developer mailing list
>>> > [hidden email]
>>> > https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>> >
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Mscore-developer mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
lasconic

Re: Ld error compiling on WinXP

Reply Threaded More More options
Print post
Permalink
Hi,
Sorry for you all day long try. Don't hesitate to post!
I've just commited my mscore\cmake\mingw32.mingw.cmake to trunk (r1736). Give it a try. I forgot to commit it last time. Sorry.
It's quite similar than the one from the previous tutorial I think.
Regarding cmake error, you can use VERBOSE=1 on the command line when you run cmake. I will add this in the tutorial.

Hope it helps. Don't hesitate to ask. And could you tell us what are your plans with musescore? I'm curious :)

Lasconic



2009/4/8 Raf <[hidden email]>
Hi Lasconic and hi all...
Yesterday I spent all day trying to compile Musescore on Windows XP...
But nothing yet...
First issue:
When you download the source, the file
SOURCESDIR\mscore\cmake\mingw32.mingw.cmake begins as follows:

set (CROSS C:/Qt/2009.01/mingw)
set (CROSSQT C:/Qt/2009.01/qt)

set (CMAKE_C_COMPILER     ${CROSS}/bin/i386-mingw32-gcc)
set (CMAKE_CXX_COMPILER   ${CROSS}/bin/i386-mingw32-g++)
set (CMAKE_STRIP          ${CROSS}/bin/i386-mingw32-strip)
set (CMAKE_FIND_ROOT_PATH ${CROSS}/i386-mingw32)

The compiler executables file names are wrong... I did change the rows
as follows:

set (CMAKE_C_COMPILER     ${CROSS}/bin/mingw32-gcc.exe)
set (CMAKE_CXX_COMPILER   ${CROSS}/bin/mingw32-g++.exe)
set (CMAKE_STRIP  ${CROSS}/bin/strip.exe)
set (CMAKE_FIND_ROOT_PATH ${CROSS})

Is it right?

The remaining problems are:
At the beginning of the compilation the compiler mingw32 says:
Qt lib found at C:/Qt/2009.01/qt/lib
Qt QTDESIGNER library not found.
Qt QTSCRIPT library not found.
Qt QTSVG library not found.
Qt QTUITOOLS library not found.
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTNETWORK library not found.
Qt QTCORE library not found.
Disabling ALSA support due to OS X or MINGW build.

Is it normal?

Finally... The compilation process stops at 73% with this:

Linking CXX static library libfluid.a
mingw32-make[3]: Leaving directory `C:/MPAL/source/win32build'
[ 72%] Built target fluid
mingw32-make[3]: Entering directory `C:/MPAL/source/win32build'
[ 72%] Generating ../resfile.o
[ 72%] Generating qrc_mscore.cxx
File not found.
mingw32-make[3]: *** [mscore/qrc_mscore.cxx] Error 1
mingw32-make[3]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
mingw32-make[2]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make[1]: *** [all] Error 2
mingw32-make[1]: Leaving directory `C:/MPAL/source/win32build'
mingw32-make: *** [win32] Error 2

It seems that something is missing in the variables of cmake but... No
idea what...

Any suggestion?

Thank you..
Raffaele



On Sat, Apr 4, 2009 at 2:08 PM, Raf <[hidden email]> wrote:
> Thank you... :)
> I will try on Monday and I'll let you know... And I'll describe also
> why I want to develop new features for musescore...
>
> Bye,
> Raffaele
>
> On Sat, Apr 4, 2009 at 1:53 PM, Lasconic <[hidden email]> wrote:
>> Ok I added some files in the SVN and a tutorial in the developer handbook :
>> http://www.musescore.org/en/handbook/developers-handbook
>> to compile the last trunk. I don't know why you want to compile musescore.
>> But if it's for developing new features maybe it's better to use the trunk?
>> Tell me if my tutorial is not clear.
>>
>> Lasconic
>>
>> 2009/4/4 Raf <[hidden email]>
>>>
>>> Thank you Lasconic!
>>> The tutorial will be a great help...
>>>
>>> For utils.cpp the problem is that the MinGW version coming with Qt
>>> 4.4.3 brings a sys/time.h without the gettimeofday() declaration... I
>>> think it's an old version of MinGW...
>>> Btw, I used the 0.9.4 version....
>>>
>>> Thank you again... :)
>>> Raffaele
>>>
>>>
>>>
>>>
>>> On Sat, Apr 4, 2009 at 12:29 PM, Lasconic <[hidden email]> wrote:
>>> > I have no clue :) But I'm currently writing a shorter tutorial to
>>> > compile
>>> > musescore on windows.
>>> > It will be available today I think. Btw, I didn't need to change
>>> > anything in
>>> > utils.cpp. Do you use the 0.9.4 version or the SVN trunk?
>>> > Lasconic
>>> >
>>> > 2009/4/4 Raf <[hidden email]>
>>> >>
>>> >> Hallo all! I'm new to this ML... Happy to participate... :)
>>> >>
>>> >> So...
>>> >> I'm trying to compile on a Windows XP machine...
>>> >> I followed the developer handbook (Apart a little correction in
>>> >> utils.ccp to write the missing declaration of gettimeofday()
>>> >> function...)
>>> >>
>>> >> The problem arrives at linking time with this mysterious message:
>>> >>
>>> >>
>>> >>
>>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZN7QString13fromStdStringERKSs[QString::fromStdString(std::basic_string<char,
>>> >> std::char_traits<char>, std::alloc
>>> >> tor<char> > const&)]+0x2f): In function
>>> >> `ZSt14__copy_trivialIP18formatting_optionsEPT_PKS2_S5_S3_':
>>> >>
>>> >>
>>> >> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:
>>> >> undefined reference to `_imp___ZN7QString9fromAsciiEPKci'
>>> >>
>>> >>
>>> >> ..\rtf2html\librtf2html.a(rtf2html.obj)(.text$_ZNK7QString11toStdStringEv[QString::toStdString()
>>> >> const]+0x46):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../..
>>> >> include/c++/3.4.2/bits/stl_algobase.h: undefined reference to
>>> >> `_imp___ZNK7QString7toAsciiEv'
>>> >> collect2: ld returned 1 exit status
>>> >> mingw32-make[3]: *** [mscore/mscore.exe] Error 1
>>> >> mingw32-make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
>>> >> mingw32-make[1]: *** [all] Error 2
>>> >> mingw32-make: *** [win32] Error 2
>>> >>
>>> >> I understand that happens when the linker arrives to
>>> >> "osdabzip\libosdabzip.a(unzip.obj)"... But I don't understand the
>>> >> reason of the error....
>>> >>
>>> >> Any suggestion?
>>> >>
>>> >> Thank you...
>>> >> Raffaele
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> _______________________________________________
>>> >> Mscore-developer mailing list
>>> >> [hidden email]
>>> >> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> >
>>> > _______________________________________________
>>> > Mscore-developer mailing list
>>> > [hidden email]
>>> > https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>> >
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Mscore-developer mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer