Csound Csound-dev Csound-tekno Search About

[Csnd-dev] CS7 build error: cannot find -lIntl::Intl

Date2023-11-12 20:05
Fromjoachim heintz
Subject[Csnd-dev] CS7 build error: cannot find -lIntl::Intl
hi all -

i get this error from current develop branch:

[ 83%] Linking CXX shared library libcsound64.so
/usr/bin/ld: cannot find -lIntl::Intl
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/csound64.dir/build.make:3862: 
libcsound64.so.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

this is with debian 11 and these tasks from the csound root dir:

cd ../cs7make
cmake ../csound
make -j6

i did this with a clean cs7make dir, and now also with a complete new 
cloned csound dir, but no success.

thanks for any help -
	joachim

Date2023-11-12 23:17
FromStephen Kyne
SubjectRe: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
Tryr `sudo apt install gettext` or else check if it's installed. Might need to update your cmake version.

Or else set USE_GETTEXT 0 for cmake to disable it altogether. It recently changed with https://github.com/csound/csound/pull/1756 this PR.

Stephen



From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of joachim heintz <jh@JOACHIMHEINTZ.DE>
Sent: Sunday 12 November 2023 21:05
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
Subject: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
 
hi all -

i get this error from current develop branch:

[ 83%] Linking CXX shared library libcsound64.so
/usr/bin/ld: cannot find -lIntl::Intl
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
libcsound64.so.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

this is with debian 11 and these tasks from the csound root dir:

cd ../cs7make
cmake ../csound
make -j6

i did this with a clean cs7make dir, and now also with a complete new
cloned csound dir, but no success.

thanks for any help -
        joachim

Date2023-11-13 02:22
FromSteven Yi
SubjectRe: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
I think I remember something about libintl being available on some linux systems and on others the functions are included in glibc. Our older cmake checked if libintl was available or not and did an extra check if it was Linux. I think the assumption was if gettext was found that the system would have what it needed, whether it was libintl or not.  Perhaps we need to revise the change for this.

On Sun, Nov 12, 2023 at 4:17 PM Stephen Kyne <stevek@outlook.ie> wrote:
Tryr `sudo apt install gettext` or else check if it's installed. Might need to update your cmake version.

Or else set USE_GETTEXT 0 for cmake to disable it altogether. It recently changed with https://github.com/csound/csound/pull/1756 this PR.

Stephen



From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of joachim heintz <jh@JOACHIMHEINTZ.DE>
Sent: Sunday 12 November 2023 21:05
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
Subject: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
 
hi all -

i get this error from current develop branch:

[ 83%] Linking CXX shared library libcsound64.so
/usr/bin/ld: cannot find -lIntl::Intl
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
libcsound64.so.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

this is with debian 11 and these tasks from the csound root dir:

cd ../cs7make
cmake ../csound
make -j6

i did this with a clean cs7make dir, and now also with a complete new
cloned csound dir, but no success.

thanks for any help -
        joachim

Date2023-11-13 10:36
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] Re: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
I think there is an option to switch it off.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 13 Nov 2023, at 02:23, Steven Yi <stevenyi@gmail.com> wrote:



*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

I think I remember something about libintl being available on some linux systems and on others the functions are included in glibc. Our older cmake checked if libintl was available or not and did an extra check if it was Linux. I think the assumption was if gettext was found that the system would have what it needed, whether it was libintl or not.  Perhaps we need to revise the change for this.

On Sun, Nov 12, 2023 at 4:17 PM Stephen Kyne <stevek@outlook.ie> wrote:
Tryr `sudo apt install gettext` or else check if it's installed. Might need to update your cmake version.

Or else set USE_GETTEXT 0 for cmake to disable it altogether. It recently changed with https://github.com/csound/csound/pull/1756 this PR.

Stephen



From: Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of joachim heintz <jh@JOACHIMHEINTZ.DE>
Sent: Sunday 12 November 2023 21:05
To: CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
Subject: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
 
hi all -

i get this error from current develop branch:

[ 83%] Linking CXX shared library libcsound64.so
/usr/bin/ld: cannot find -lIntl::Intl
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
libcsound64.so.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
make: *** [Makefile:182: all] Error 2

this is with debian 11 and these tasks from the csound root dir:

cd ../cs7make
cmake ../csound
make -j6

i did this with a clean cs7make dir, and now also with a complete new
cloned csound dir, but no success.

thanks for any help -
        joachim

Date2023-11-13 16:28
Fromjoachim heintz
SubjectRe: [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
thanks for all hints --- i had no idea what it means ...

indeed i have gettext installed.  where is it expected to be found on 
linux?  perhaps it is good to use this occasion to fix the cmake 
settings for linux.

	j


On 13/11/2023 00:17, Stephen Kyne wrote:
> Tryr `sudo apt install gettext` or else check if it's installed. Might 
> need to update your cmake version.
> 
> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It 
> recently changed with https://github.com/csound/csound/pull/1756 
>  this PR.
> 
> Stephen
> 
> 
> 	
> use intl target by bramtayl · Pull Request #1756 · csound/csound 
> 
> cmake comes with a prepackaged Intl find module which creates a handy 
> imported target.
> github.com
> 
> 
> ------------------------------------------------------------------------
> *From:* Csound-developers  on behalf of 
> joachim heintz 
> *Sent:* Sunday 12 November 2023 21:05
> *To:* CSOUND-DEV@LISTSERV.HEANET.IE 
> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
> hi all -
> 
> i get this error from current develop branch:
> 
> [ 83%] Linking CXX shared library libcsound64.so
> /usr/bin/ld: cannot find -lIntl::Intl
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
> libcsound64.so.7.0] Error 1
> make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
> make: *** [Makefile:182: all] Error 2
> 
> this is with debian 11 and these tasks from the csound root dir:
> 
> cd ../cs7make
> cmake ../csound
> make -j6
> 
> i did this with a clean cs7make dir, and now also with a complete new
> cloned csound dir, but no success.
> 
> thanks for any help -
>          joachim

Date2023-11-13 16:39
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
You can turn off internationalisation using

cmake ..  -DUSE_GETTEXT=0

that should allow it to build
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 13 Nov 2023, at 16:28, joachim heintz  wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> thanks for all hints --- i had no idea what it means ...
>
> indeed i have gettext installed.  where is it expected to be found on
> linux?  perhaps it is good to use this occasion to fix the cmake
> settings for linux.
>
>       j
>
>
> On 13/11/2023 00:17, Stephen Kyne wrote:
>> Tryr `sudo apt install gettext` or else check if it's installed. Might
>> need to update your cmake version.
>>
>> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It
>> recently changed with https://github.com/csound/csound/pull/1756
>>  this PR.
>>
>> Stephen
>>
>> 
>>
>> use intl target by bramtayl · Pull Request #1756 · csound/csound
>> 
>> cmake comes with a prepackaged Intl find module which creates a handy
>> imported target.
>> github.com
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Csound-developers  on behalf of
>> joachim heintz 
>> *Sent:* Sunday 12 November 2023 21:05
>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE 
>> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
>> hi all -
>>
>> i get this error from current develop branch:
>>
>> [ 83%] Linking CXX shared library libcsound64.so
>> /usr/bin/ld: cannot find -lIntl::Intl
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>> libcsound64.so.7.0] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
>> make: *** [Makefile:182: all] Error 2
>>
>> this is with debian 11 and these tasks from the csound root dir:
>>
>> cd ../cs7make
>> cmake ../csound
>> make -j6
>>
>> i did this with a clean cs7make dir, and now also with a complete new
>> cloned csound dir, but no success.
>>
>> thanks for any help -
>>         joachim


Date2023-11-13 16:54
Fromjoachim heintz
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
thanks, yes, i will try.
but my question was:
as i do have gettext installed, wouldn't it be better to fix the path in 
the default cmake settings for linux?
is it supposed to be anywhere on linux where it is not?


On 13/11/2023 17:39, Victor Lazzarini wrote:
> You can turn off internationalisation using
> 
> cmake ..  -DUSE_GETTEXT=0
> 
> that should allow it to build
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 13 Nov 2023, at 16:28, joachim heintz  wrote:
>>
>> *Warning*
>>
>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>
>> thanks for all hints --- i had no idea what it means ...
>>
>> indeed i have gettext installed.  where is it expected to be found on
>> linux?  perhaps it is good to use this occasion to fix the cmake
>> settings for linux.
>>
>>        j
>>
>>
>> On 13/11/2023 00:17, Stephen Kyne wrote:
>>> Tryr `sudo apt install gettext` or else check if it's installed. Might
>>> need to update your cmake version.
>>>
>>> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It
>>> recently changed with https://github.com/csound/csound/pull/1756
>>>  this PR.
>>>
>>> Stephen
>>>
>>> 
>>>
>>> use intl target by bramtayl · Pull Request #1756 · csound/csound
>>> 
>>> cmake comes with a prepackaged Intl find module which creates a handy
>>> imported target.
>>> github.com
>>>
>>>
>>> ------------------------------------------------------------------------
>>> *From:* Csound-developers  on behalf of
>>> joachim heintz 
>>> *Sent:* Sunday 12 November 2023 21:05
>>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE 
>>> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
>>> hi all -
>>>
>>> i get this error from current develop branch:
>>>
>>> [ 83%] Linking CXX shared library libcsound64.so
>>> /usr/bin/ld: cannot find -lIntl::Intl
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>>> libcsound64.so.7.0] Error 1
>>> make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
>>> make: *** [Makefile:182: all] Error 2
>>>
>>> this is with debian 11 and these tasks from the csound root dir:
>>>
>>> cd ../cs7make
>>> cmake ../csound
>>> make -j6
>>>
>>> i did this with a clean cs7make dir, and now also with a complete new
>>> cloned csound dir, but no success.
>>>
>>> thanks for any help -
>>>          joachim
> 

Date2023-11-13 17:06
FromSteven Yi
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
The change assumes if you have gettext you also have libintl, but that's not a good assumption for Linux. 


has this:

Intl_IS_BUILT_IN

New in version 3.20.

whether intl is a part of the C library.

which we can use to properly check if libintl is not found if it is a problem or not.

steven

On Mon, Nov 13, 2023 at 11:54 AM joachim heintz <jh@joachimheintz.de> wrote:
thanks, yes, i will try.
but my question was:
as i do have gettext installed, wouldn't it be better to fix the path in
the default cmake settings for linux?
is it supposed to be anywhere on linux where it is not?


On 13/11/2023 17:39, Victor Lazzarini wrote:
> You can turn off internationalisation using
>
> cmake ..  -DUSE_GETTEXT=0
>
> that should allow it to build
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
>
>> On 13 Nov 2023, at 16:28, joachim heintz <jh@JOACHIMHEINTZ.DE> wrote:
>>
>> *Warning*
>>
>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>
>> thanks for all hints --- i had no idea what it means ...
>>
>> indeed i have gettext installed.  where is it expected to be found on
>> linux?  perhaps it is good to use this occasion to fix the cmake
>> settings for linux.
>>
>>        j
>>
>>
>> On 13/11/2023 00:17, Stephen Kyne wrote:
>>> Tryr `sudo apt install gettext` or else check if it's installed. Might
>>> need to update your cmake version.
>>>
>>> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It
>>> recently changed with https://github.com/csound/csound/pull/1756
>>> <https://github.com/csound/csound/pull/1756> this PR.
>>>
>>> Stephen
>>>
>>> <https://github.com/csound/csound/pull/1756>
>>>
>>> use intl target by bramtayl · Pull Request #1756 · csound/csound
>>> <https://github.com/csound/csound/pull/1756>
>>> cmake comes with a prepackaged Intl find module which creates a handy
>>> imported target.
>>> github.com
>>>
>>>
>>> ------------------------------------------------------------------------
>>> *From:* Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE> on behalf of
>>> joachim heintz <jh@JOACHIMHEINTZ.DE>
>>> *Sent:* Sunday 12 November 2023 21:05
>>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE <CSOUND-DEV@LISTSERV.HEANET.IE>
>>> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
>>> hi all -
>>>
>>> i get this error from current develop branch:
>>>
>>> [ 83%] Linking CXX shared library libcsound64.so
>>> /usr/bin/ld: cannot find -lIntl::Intl
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>>> libcsound64.so.7.0] Error 1
>>> make[1]: *** [CMakeFiles/Makefile2:583: CMakeFiles/csound64.dir/all] Error 2
>>> make: *** [Makefile:182: all] Error 2
>>>
>>> this is with debian 11 and these tasks from the csound root dir:
>>>
>>> cd ../cs7make
>>> cmake ../csound
>>> make -j6
>>>
>>> i did this with a clean cs7make dir, and now also with a complete new
>>> cloned csound dir, but no success.
>>>
>>> thanks for any help -
>>>          joachim
>

Date2023-11-13 17:38
Fromjoachim heintz
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
that would be great.
for now i am using the option which victor mentioned and could 
successfully build cs7 =)

cheers -
	j


On 13/11/2023 18:06, Steven Yi wrote:
> The change assumes if you have gettext you also have libintl, but that's 
> not a good assumption for Linux.
> 
> I did a search and found:
> 
> https://cmake.org/cmake/help/latest/module/FindIntl.html 
> 
> 
> has this:
> 
> Intl_IS_BUILT_IN
> 
>     New in version 3.20.
> 
>     whether |intl| is a part of the C library.
> 
> which we can use to properly check if libintl is not found if it is a 
> problem or not.
> 
> steven
> 
> On Mon, Nov 13, 2023 at 11:54 AM joachim heintz  > wrote:
> 
>     thanks, yes, i will try.
>     but my question was:
>     as i do have gettext installed, wouldn't it be better to fix the
>     path in
>     the default cmake settings for linux?
>     is it supposed to be anywhere on linux where it is not?
> 
> 
>     On 13/11/2023 17:39, Victor Lazzarini wrote:
>      > You can turn off internationalisation using
>      >
>      > cmake ..  -DUSE_GETTEXT=0
>      >
>      > that should allow it to build
>      > ========================
>      > Prof. Victor Lazzarini
>      > Maynooth University
>      > Ireland
>      >
>      >> On 13 Nov 2023, at 16:28, joachim heintz      > wrote:
>      >>
>      >> *Warning*
>      >>
>      >> This email originated from outside of Maynooth University's Mail
>     System. Do not reply, click links or open attachments unless you
>     recognise the sender and know the content is safe.
>      >>
>      >> thanks for all hints --- i had no idea what it means ...
>      >>
>      >> indeed i have gettext installed.  where is it expected to be
>     found on
>      >> linux?  perhaps it is good to use this occasion to fix the cmake
>      >> settings for linux.
>      >>
>      >>        j
>      >>
>      >>
>      >> On 13/11/2023 00:17, Stephen Kyne wrote:
>      >>> Tryr `sudo apt install gettext` or else check if it's
>     installed. Might
>      >>> need to update your cmake version.
>      >>>
>      >>> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It
>      >>> recently changed with
>     https://github.com/csound/csound/pull/1756
>     
>      >>>      > this PR.
>      >>>
>      >>> Stephen
>      >>>
>      >>>      >
>      >>>
>      >>> use intl target by bramtayl · Pull Request #1756 · csound/csound
>      >>>      >
>      >>> cmake comes with a prepackaged Intl find module which creates a
>     handy
>      >>> imported target.
>      >>> github.com 
>      >>>
>      >>>
>      >>>
>     ------------------------------------------------------------------------
>      >>> *From:* Csound-developers      > on behalf of
>      >>> joachim heintz >
>      >>> *Sent:* Sunday 12 November 2023 21:05
>      >>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE
>     
>     >
>      >>> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
>      >>> hi all -
>      >>>
>      >>> i get this error from current develop branch:
>      >>>
>      >>> [ 83%] Linking CXX shared library libcsound64.so
>      >>> /usr/bin/ld: cannot find -lIntl::Intl
>      >>> collect2: error: ld returned 1 exit status
>      >>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>      >>> libcsound64.so.7.0] Error 1
>      >>> make[1]: *** [CMakeFiles/Makefile2:583:
>     CMakeFiles/csound64.dir/all] Error 2
>      >>> make: *** [Makefile:182: all] Error 2
>      >>>
>      >>> this is with debian 11 and these tasks from the csound root dir:
>      >>>
>      >>> cd ../cs7make
>      >>> cmake ../csound
>      >>> make -j6
>      >>>
>      >>> i did this with a clean cs7make dir, and now also with a
>     complete new
>      >>> cloned csound dir, but no success.
>      >>>
>      >>> thanks for any help -
>      >>>          joachim
>      >
> 

Date2023-11-15 04:46
FromSteven Yi
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
I took at a look and the namespaced libraries for Intl::Intl wasn't introduced to FindIntl until CMake 3.20. However, our current minimum CMake version required is 3.5 in our main CMakeLists.txt. I suspect Joachim you have an earlier version of CMake than 3.20? I think we'll need to either bump up the required CMake version to 3.20 or roll back changes using the namespaced library in our CMake file. 

Sidenote: suggest we also make a docker image with Debian 11 (and other Linux versions) that builds Csound so that we can check our builds are working on older LInux versions.

On Mon, Nov 13, 2023 at 12:39 PM joachim heintz <jh@joachimheintz.de> wrote:
that would be great.
for now i am using the option which victor mentioned and could
successfully build cs7 =)

cheers -
        j


On 13/11/2023 18:06, Steven Yi wrote:
> The change assumes if you have gettext you also have libintl, but that's
> not a good assumption for Linux.
>
> I did a search and found:
>
> https://cmake.org/cmake/help/latest/module/FindIntl.html
> <https://cmake.org/cmake/help/latest/module/FindIntl.html>
>
> has this:
>
> Intl_IS_BUILT_IN<https://cmake.org/cmake/help/latest/module/FindIntl.html#variable:Intl_IS_BUILT_IN>
>
>     New in version 3.20.
>
>     whether |intl| is a part of the C library.
>
> which we can use to properly check if libintl is not found if it is a
> problem or not.
>
> steven
>
> On Mon, Nov 13, 2023 at 11:54 AM joachim heintz <jh@joachimheintz.de
> <mailto:jh@joachimheintz.de>> wrote:
>
>     thanks, yes, i will try.
>     but my question was:
>     as i do have gettext installed, wouldn't it be better to fix the
>     path in
>     the default cmake settings for linux?
>     is it supposed to be anywhere on linux where it is not?
>
>
>     On 13/11/2023 17:39, Victor Lazzarini wrote:
>      > You can turn off internationalisation using
>      >
>      > cmake ..  -DUSE_GETTEXT=0
>      >
>      > that should allow it to build
>      > ========================
>      > Prof. Victor Lazzarini
>      > Maynooth University
>      > Ireland
>      >
>      >> On 13 Nov 2023, at 16:28, joachim heintz <jh@JOACHIMHEINTZ.DE
>     <mailto:jh@JOACHIMHEINTZ.DE>> wrote:
>      >>
>      >> *Warning*
>      >>
>      >> This email originated from outside of Maynooth University's Mail
>     System. Do not reply, click links or open attachments unless you
>     recognise the sender and know the content is safe.
>      >>
>      >> thanks for all hints --- i had no idea what it means ...
>      >>
>      >> indeed i have gettext installed.  where is it expected to be
>     found on
>      >> linux?  perhaps it is good to use this occasion to fix the cmake
>      >> settings for linux.
>      >>
>      >>        j
>      >>
>      >>
>      >> On 13/11/2023 00:17, Stephen Kyne wrote:
>      >>> Tryr `sudo apt install gettext` or else check if it's
>     installed. Might
>      >>> need to update your cmake version.
>      >>>
>      >>> Or else set USE_GETTEXT 0 for cmake to disable it altogether. It
>      >>> recently changed with
>     https://github.com/csound/csound/pull/1756
>     <https://github.com/csound/csound/pull/1756>
>      >>> <https://github.com/csound/csound/pull/1756
>     <https://github.com/csound/csound/pull/1756>> this PR.
>      >>>
>      >>> Stephen
>      >>>
>      >>> <https://github.com/csound/csound/pull/1756
>     <https://github.com/csound/csound/pull/1756>>
>      >>>
>      >>> use intl target by bramtayl · Pull Request #1756 · csound/csound
>      >>> <https://github.com/csound/csound/pull/1756
>     <https://github.com/csound/csound/pull/1756>>
>      >>> cmake comes with a prepackaged Intl find module which creates a
>     handy
>      >>> imported target.
>      >>> github.com <http://github.com>
>      >>>
>      >>>
>      >>>
>     ------------------------------------------------------------------------
>      >>> *From:* Csound-developers <CSOUND-DEV@LISTSERV.HEANET.IE
>     <mailto:CSOUND-DEV@LISTSERV.HEANET.IE>> on behalf of
>      >>> joachim heintz <jh@JOACHIMHEINTZ.DE <mailto:jh@JOACHIMHEINTZ.DE>>
>      >>> *Sent:* Sunday 12 November 2023 21:05
>      >>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE
>     <mailto:CSOUND-DEV@LISTSERV.HEANET.IE>
>     <CSOUND-DEV@LISTSERV.HEANET.IE <mailto:CSOUND-DEV@LISTSERV.HEANET.IE>>
>      >>> *Subject:* [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
>      >>> hi all -
>      >>>
>      >>> i get this error from current develop branch:
>      >>>
>      >>> [ 83%] Linking CXX shared library libcsound64.so
>      >>> /usr/bin/ld: cannot find -lIntl::Intl
>      >>> collect2: error: ld returned 1 exit status
>      >>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>      >>> libcsound64.so.7.0] Error 1
>      >>> make[1]: *** [CMakeFiles/Makefile2:583:
>     CMakeFiles/csound64.dir/all] Error 2
>      >>> make: *** [Makefile:182: all] Error 2
>      >>>
>      >>> this is with debian 11 and these tasks from the csound root dir:
>      >>>
>      >>> cd ../cs7make
>      >>> cmake ../csound
>      >>> make -j6
>      >>>
>      >>> i did this with a clean cs7make dir, and now also with a
>     complete new
>      >>> cloned csound dir, but no success.
>      >>>
>      >>> thanks for any help -
>      >>>          joachim
>      >
>

Date2023-11-15 09:20
Fromjoachim heintz
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] CS7 build error: cannot find -lIntl::Intl
yes i have 3.18 as i update it from the debian repo.


On 15/11/2023 05:46, Steven Yi wrote:
> I took at a look and the namespaced libraries for Intl::Intl wasn't 
> introduced to FindIntl until CMake 3.20. However, our current minimum 
> CMake version required is 3.5 in our main CMakeLists.txt. I suspect 
> Joachim you have an earlier version of CMake than 3.20? I think we'll 
> need to either bump up the required CMake version to 3.20 or roll back 
> changes using the namespaced library in our CMake file.
> 
> Sidenote: suggest we also make a docker image with Debian 11 (and other 
> Linux versions) that builds Csound so that we can check our builds are 
> working on older LInux versions.
> 
> On Mon, Nov 13, 2023 at 12:39 PM joachim heintz  > wrote:
> 
>     that would be great.
>     for now i am using the option which victor mentioned and could
>     successfully build cs7 =)
> 
>     cheers -
>              j
> 
> 
>     On 13/11/2023 18:06, Steven Yi wrote:
>      > The change assumes if you have gettext you also have libintl, but
>     that's
>      > not a good assumption for Linux.
>      >
>      > I did a search and found:
>      >
>      > https://cmake.org/cmake/help/latest/module/FindIntl.html
>     
>      >      >
>      >
>      > has this:
>      >
>      >
>     Intl_IS_BUILT_IN>
>      >
>      >     New in version 3.20.
>      >
>      >     whether |intl| is a part of the C library.
>      >
>      > which we can use to properly check if libintl is not found if it
>     is a
>      > problem or not.
>      >
>      > steven
>      >
>      > On Mon, Nov 13, 2023 at 11:54 AM joachim heintz
>     
>      > >> wrote:
>      >
>      >     thanks, yes, i will try.
>      >     but my question was:
>      >     as i do have gettext installed, wouldn't it be better to fix the
>      >     path in
>      >     the default cmake settings for linux?
>      >     is it supposed to be anywhere on linux where it is not?
>      >
>      >
>      >     On 13/11/2023 17:39, Victor Lazzarini wrote:
>      >      > You can turn off internationalisation using
>      >      >
>      >      > cmake ..  -DUSE_GETTEXT=0
>      >      >
>      >      > that should allow it to build
>      >      > ========================
>      >      > Prof. Victor Lazzarini
>      >      > Maynooth University
>      >      > Ireland
>      >      >
>      >      >> On 13 Nov 2023, at 16:28, joachim heintz
>     
>      >     >> wrote:
>      >      >>
>      >      >> *Warning*
>      >      >>
>      >      >> This email originated from outside of Maynooth
>     University's Mail
>      >     System. Do not reply, click links or open attachments unless you
>      >     recognise the sender and know the content is safe.
>      >      >>
>      >      >> thanks for all hints --- i had no idea what it means ...
>      >      >>
>      >      >> indeed i have gettext installed.  where is it expected to be
>      >     found on
>      >      >> linux?  perhaps it is good to use this occasion to fix
>     the cmake
>      >      >> settings for linux.
>      >      >>
>      >      >>        j
>      >      >>
>      >      >>
>      >      >> On 13/11/2023 00:17, Stephen Kyne wrote:
>      >      >>> Tryr `sudo apt install gettext` or else check if it's
>      >     installed. Might
>      >      >>> need to update your cmake version.
>      >      >>>
>      >      >>> Or else set USE_GETTEXT 0 for cmake to disable it
>     altogether. It
>      >      >>> recently changed with
>      > https://github.com/csound/csound/pull/1756
>     
>      >          >
>      >      >>>      
>      >          >> this PR.
>      >      >>>
>      >      >>> Stephen
>      >      >>>
>      >      >>>      
>      >          >>
>      >      >>>
>      >      >>> use intl target by bramtayl · Pull Request #1756 ·
>     csound/csound
>      >      >>>      
>      >          >>
>      >      >>> cmake comes with a prepackaged Intl find module which
>     creates a
>      >     handy
>      >      >>> imported target.
>      >      >>> github.com       >
>      >      >>>
>      >      >>>
>      >      >>>
>      >   
>       ------------------------------------------------------------------------
>      >      >>> *From:* Csound-developers      
>      >          >> on behalf of
>      >      >>> joachim heintz            >>
>      >      >>> *Sent:* Sunday 12 November 2023 21:05
>      >      >>> *To:* CSOUND-DEV@LISTSERV.HEANET.IE
>     
>      >          >
>      >          
>          >>
>      >      >>> *Subject:* [Csnd-dev] CS7 build error: cannot find
>     -lIntl::Intl
>      >      >>> hi all -
>      >      >>>
>      >      >>> i get this error from current develop branch:
>      >      >>>
>      >      >>> [ 83%] Linking CXX shared library libcsound64.so
>      >      >>> /usr/bin/ld: cannot find -lIntl::Intl
>      >      >>> collect2: error: ld returned 1 exit status
>      >      >>> make[2]: *** [CMakeFiles/csound64.dir/build.make:3862:
>      >      >>> libcsound64.so.7.0] Error 1
>      >      >>> make[1]: *** [CMakeFiles/Makefile2:583:
>      >     CMakeFiles/csound64.dir/all] Error 2
>      >      >>> make: *** [Makefile:182: all] Error 2
>      >      >>>
>      >      >>> this is with debian 11 and these tasks from the csound
>     root dir:
>      >      >>>
>      >      >>> cd ../cs7make
>      >      >>> cmake ../csound
>      >      >>> make -j6
>      >      >>>
>      >      >>> i did this with a clean cs7make dir, and now also with a
>      >     complete new
>      >      >>> cloned csound dir, but no success.
>      >      >>>
>      >      >>> thanks for any help -
>      >      >>>          joachim
>      >      >
>      >
>