Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] fltk on Windows....

Date2014-10-29 14:23
FromSteven Yi
SubjectRe: [Cs-dev] fltk on Windows....
AttachmentsNone  None  
For libraries and headers, I think it's preferable to install them into a location that CMake will find it, rather than setting them yourself in the cache. Normally that means installing the library after building to /usr/local. However, you can add additional paths for CMake to search.  If you look at the Cusom.cmake.ex file, you'll see things like:

if(WIN32)

    list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 

            "c:/work/libsndfile-1_0_17")

    list(APPEND CMAKE_SYSTEM_LIBRARY_PATH

            "c:/work/libsndfile-1_0_17")


    list(APPEND CMAKE_SYSTEM_LIBRARY_PATH

        "c:/Python25/libs")

    list(APPEND CMAKE_SYSTEM_INCLUDE_PATH

        "c:/Python25/include")


endif()

If you copy that to Custom.cmake, then you can add your own paths. So a couple of options here:

1. You can still try doing a "make install".  That probably only works if you're within an msys shell. (I'm not certain what the convention is for the standard cmd prompt if you use MinGW's make.)

2. You can create a folder where you'll manually add all of your libs and headers.  Then you can add that folder to your paths. This is handy if you want to isolate the dependencies you build from the rest of your system.  For the mingw cross-compile scripts for compiling the windows binaries from Linux, that was the approach I took with the dependency builder scripts.

3. You can individually add each folder of each dependency you build to the CMake paths.

Hope that helps!

steven


On Wed Oct 29 2014 at 10:16:26 AM Rory Walsh <rorywalsh@ear.ie> wrote:
Yes, my point is I have no idea what else I need to tell cmake so that
it finds it. I've added valid paths to all the fltk stuff. Anyhow,
your cmake cache should help sort it out.

On 29 October 2014 14:10, Michael Gogins <michael.gogins@gmail.com> wrote:
> It returns false because FLTK is not found. We just tell CMake where it is.
> Not the same thing.
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Wed, Oct 29, 2014 at 9:58 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Thanks Mike, that would help. I'm just curious as to why FLTK_FOUND
>> keeps returning false.
>>
>> On 29 October 2014 13:54, Michael Gogins <michael.gogins@gmail.com> wrote:
>> > OK, sorry about that. I just kept looking at the CMake error messages
>> > and
>> > filling in missing variables. If you like, when I get home this evening
>> > I
>> > will send you my CMake cache.
>> >
>> > Regards,
>> > Mike
>> >
>> >
>> > -----------------------------------------------------
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> > On Wed, Oct 29, 2014 at 8:41 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>
>> >> Yup. I don't see anything in there relating to how to set up cmake so
>> >> that it sees fltk?
>> >>
>> >> On 29 October 2014 12:34, Michael Gogins <michael.gogins@gmail.com>
>> >> wrote:
>> >> > Did you read my "how to build on Windows" document?
>> >> >
>> >> > Regards,
>> >> > Mike
>> >> >
>> >> >
>> >> > -----------------------------------------------------
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> > On Wed, Oct 29, 2014 at 8:18 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >> >>
>> >> >> I'm having a go at a full Windows build at the moment, but once
>> >> >> again
>> >> >> have come up a cropper with fltk. It builds fine for me, but I can't
>> >> >> get cmake to see it. Can anyone confirm what values I should have
>> >> >> for
>> >> >> these entries to CMake:
>> >> >>
>> >> >> FLTK_INCLUDE_DIR= ..........this is the FL directory contained in
>> >> >> the
>> >> >> main fltk dir?
>> >> >> FLTK_DIR=.........the main fltk directory?
>> >> >> FLTK_BASE_LIBRARY=.......lib/libfltk.a?
>> >> >> FLTK_CONFIG_SCRIPT= no idea what or where this is?
>> >> >>
>> >> >> I have the above set apart from the fltk_config_script but cmake
>> >> >> still
>> >> >> tells me that FLTK is disabled because FLTK_FOUND=false. Any ideas?
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-10-29 14:27
FromMichael Gogins
SubjectRe: [Cs-dev] fltk on Windows....
AttachmentsNone  None  
The use of Custom.cmake is never explained, therefore I have not been able to use it.

An example of Custom.cmake or explanation of how to use it would be much appreciated.

As you suggest, I have increasingly relied on installing to /usr/local. But there is not always a working install target or script on Windows, so this is a bit flaky.

Regards,
Mike


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

On Wed, Oct 29, 2014 at 10:23 AM, Steven Yi <stevenyi@gmail.com> wrote:
For libraries and headers, I think it's preferable to install them into a location that CMake will find it, rather than setting them yourself in the cache. Normally that means installing the library after building to /usr/local. However, you can add additional paths for CMake to search.  If you look at the Cusom.cmake.ex file, you'll see things like:

if(WIN32)

    list(APPEND CMAKE_SYSTEM_INCLUDE_PATH 

            "c:/work/libsndfile-1_0_17")

    list(APPEND CMAKE_SYSTEM_LIBRARY_PATH

            "c:/work/libsndfile-1_0_17")


    list(APPEND CMAKE_SYSTEM_LIBRARY_PATH

        "c:/Python25/libs")

    list(APPEND CMAKE_SYSTEM_INCLUDE_PATH

        "c:/Python25/include")


endif()

If you copy that to Custom.cmake, then you can add your own paths. So a couple of options here:

1. You can still try doing a "make install".  That probably only works if you're within an msys shell. (I'm not certain what the convention is for the standard cmd prompt if you use MinGW's make.)

2. You can create a folder where you'll manually add all of your libs and headers.  Then you can add that folder to your paths. This is handy if you want to isolate the dependencies you build from the rest of your system.  For the mingw cross-compile scripts for compiling the windows binaries from Linux, that was the approach I took with the dependency builder scripts.

3. You can individually add each folder of each dependency you build to the CMake paths.

Hope that helps!

steven


On Wed Oct 29 2014 at 10:16:26 AM Rory Walsh <rorywalsh@ear.ie> wrote:
Yes, my point is I have no idea what else I need to tell cmake so that
it finds it. I've added valid paths to all the fltk stuff. Anyhow,
your cmake cache should help sort it out.

On 29 October 2014 14:10, Michael Gogins <michael.gogins@gmail.com> wrote:
> It returns false because FLTK is not found. We just tell CMake where it is.
> Not the same thing.
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Wed, Oct 29, 2014 at 9:58 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Thanks Mike, that would help. I'm just curious as to why FLTK_FOUND
>> keeps returning false.
>>
>> On 29 October 2014 13:54, Michael Gogins <michael.gogins@gmail.com> wrote:
>> > OK, sorry about that. I just kept looking at the CMake error messages
>> > and
>> > filling in missing variables. If you like, when I get home this evening
>> > I
>> > will send you my CMake cache.
>> >
>> > Regards,
>> > Mike
>> >
>> >
>> > -----------------------------------------------------
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> > On Wed, Oct 29, 2014 at 8:41 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>
>> >> Yup. I don't see anything in there relating to how to set up cmake so
>> >> that it sees fltk?
>> >>
>> >> On 29 October 2014 12:34, Michael Gogins <michael.gogins@gmail.com>
>> >> wrote:
>> >> > Did you read my "how to build on Windows" document?
>> >> >
>> >> > Regards,
>> >> > Mike
>> >> >
>> >> >
>> >> > -----------------------------------------------------
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> > On Wed, Oct 29, 2014 at 8:18 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >> >>
>> >> >> I'm having a go at a full Windows build at the moment, but once
>> >> >> again
>> >> >> have come up a cropper with fltk. It builds fine for me, but I can't
>> >> >> get cmake to see it. Can anyone confirm what values I should have
>> >> >> for
>> >> >> these entries to CMake:
>> >> >>
>> >> >> FLTK_INCLUDE_DIR= ..........this is the FL directory contained in
>> >> >> the
>> >> >> main fltk dir?
>> >> >> FLTK_DIR=.........the main fltk directory?
>> >> >> FLTK_BASE_LIBRARY=.......lib/libfltk.a?
>> >> >> FLTK_CONFIG_SCRIPT= no idea what or where this is?
>> >> >>
>> >> >> I have the above set apart from the fltk_config_script but cmake
>> >> >> still
>> >> >> tells me that FLTK is disabled because FLTK_FOUND=false. Any ideas?
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

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

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel