| Looks like that particular dll has to do with winsock. Iäll see if I
can disable the building of any opcodes that use them. I fear Mike is
right. Once I start removing one Iäll need to remove another and so
on. It's worth a shot however.
On 28 August 2014 22:46, Rory Walsh wrote:
> Thanks Steven I didn't notice that. I'll try tomorrow.
>
> On 28 Aug 2014 19:29, "Steven Yi" wrote:
>>
>> It looks like ws2_32.dll is what has the dependency on
>> pthreadGCE2.dll, no? It's in the list of required dll's in
>> csound/CMakeLists.txt. Maybe try removing that and seeing what
>> happens? (I'll assume a compile failure but could give it a try.)
>>
>> On Thu, Aug 28, 2014 at 1:13 PM, Rory Walsh wrote:
>> > I'm sure. Attached is a screenshot. Also attached are my cmake files
>> > too in case perhaps you can spot something wrong there? I'm stumped.
>> > Oddly enough it looks for pthreadGCE2.dll whether I link to pthread.a
>> > or pthreadGCE2.a.
>> >
>> > On 28 August 2014 17:39, Steven Yi wrote:
>> >> Are you positive the libcsound that csound.exe is linking to is the
>> >> one you just built and not another on the system? (You should be able
>> >> to toggle full path in dep walker)
>> >>
>> >> On Thu, Aug 28, 2014 at 11:26 AM, Rory Walsh wrote:
>> >>> That got rid of the gcc dep, but Csound is still trying to find a
>> >>> pthread library on startup. I don't get it. I'm specifically passing
>> >>> pthread's .a files to cmake settings. I've tried each of the .a files
>> >>> contained in the pthread lib dir, but each time I launch Csound in dep
>> >>> walker it complains that PTHREADGCE2.DLL cannot be found. Arrghhhh.
>> >>>
>> >>> On 28 August 2014 16:15, Rory Walsh wrote:
>> >>>> Thanks, I'll try that now.
>> >>>>
>> >>>> On 28 August 2014 16:12, Steven Yi wrote:
>> >>>>> Yes, I recently added static-libgcc to the csound~ windows build.
>> >>>>> Maybe it is something we should maybe look at doing for the entire
>> >>>>> windows build. I have this in
>> >>>>> csound/frontends/max_csound_tilde/CMakLists.txt:
>> >>>>>
>> >>>>> set_target_properties(${MAX_OUTPUT_LIB}
>> >>>>> PROPERTIES LINK_FLAGS "-static-libstdc++ -static-libgcc")
>> >>>>>
>> >>>>> You can add something similar in the main CMakeLists.txt for the
>> >>>>> CSOUND_LIB target. You could also try something like:
>> >>>>>
>> >>>>> set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
>> >>>>> -static-libstdc++ -static-libgcc")
>> >>>>>
>> >>>>> On Thu, Aug 28, 2014 at 10:02 AM, Rory Walsh
>> >>>>> wrote:
>> >>>>>> So it turns out that csound64.dll calls LIBGCC_S_DW2-1.DLL which
>> >>>>>> then
>> >>>>>> calls libwinpthread. I use the compile time flag '-static-libgcc'
>> >>>>>> to
>> >>>>>> statically link to libgcc? Any ideas how I do this in cmake?
>> >>>>>>
>> >>>>>> On 28 August 2014 15:09, Steven Yi wrote:
>> >>>>>>> I'd check that you don't have a libcsound64.dll somewhere in your
>> >>>>>>> PATH
>> >>>>>>> that the csound.exe you just built is linking to instead of the
>> >>>>>>> one
>> >>>>>>> you built. Use dependency walker to see exactly what library
>> >>>>>>> you're
>> >>>>>>> linking to.
>> >>>>>>>
>> >>>>>>> On Thu, Aug 28, 2014 at 9:04 AM, Rory Walsh
>> >>>>>>> wrote:
>> >>>>>>>> Hi Steven. These were the first things I tried. Everything
>> >>>>>>>> continues
>> >>>>>>>> to build Ok, but when I run Csound from the command line I keep
>> >>>>>>>> getting 'error, libwinpthread-1.dll cannot be found'. My
>> >>>>>>>> CMakeList.txt
>> >>>>>>>> bits look like this:
>> >>>>>>>>
>> >>>>>>>> find_library(PTHREAD_LIBRARY pthread.a)
>> >>>>>>>>
>> >>>>>>>> if(NOT PTHREAD_LIBRARY AND WIN32)
>> >>>>>>>> find_library(PTHREAD_LIBRARY pthread.a)
>> >>>>>>>> endif()
>> >>>>>>>>
>> >>>>>>>> if(NOT PTHREAD_LIBRARY AND NOT EMSCRIPTEN)
>> >>>>>>>> message(FATAL_ERROR "Csound requires the pthread library")
>> >>>>>>>> endif()
>> >>>>>>>>
>> >>>>>>>> set(CMAKE_REQUIRED_INCLUDES pthread.h)
>> >>>>>>>> set(CMAKE_REQUIRED_LIBRARIES pthread.a)
>> >>>>>>>>
>> >>>>>>>> And the cache file looks like this:
>> >>>>>>>>
>> >>>>>>>> //Path to a library.
>> >>>>>>>>
>> >>>>>>>> PTHREAD_LIBRARY:FILEPATH=C:/Users/RoryWalsh/Documents/SourceCode/pthreads/Pre-built/lib/libpthread.a
>> >>>>>>>>
>> >>>>>>>> Any further ideas?
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> On 28 August 2014 14:33, Steven Yi wrote:
>> >>>>>>>>> You can try a couple of things:
>> >>>>>>>>>
>> >>>>>>>>> 1. Modify your CMakeCache.txt or use cmake-gui to edit the value
>> >>>>>>>>> for
>> >>>>>>>>> PTHREAD_LIBRARY. Have it point to a .a instead of whatever DLL
>> >>>>>>>>> it
>> >>>>>>>>> finds.
>> >>>>>>>>>
>> >>>>>>>>> 2. If that doesn't work, you can modify csound's top-level
>> >>>>>>>>> CMakeCache.txt and look for the lines:
>> >>>>>>>>>
>> >>>>>>>>> find_library(PTHREAD_LIBRARY pthread)
>> >>>>>>>>>
>> >>>>>>>>> if(NOT PTHREAD_LIBRARY AND WIN32)
>> >>>>>>>>> find_library(PTHREAD_LIBRARY pthreadGC2)
>> >>>>>>>>> endif()
>> >>>>>>>>>
>> >>>>>>>>> and change that to something like:
>> >>>>>>>>>
>> >>>>>>>>> find_library(PTHREAD_LIBRARY pthread.a)
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> On Thu, Aug 28, 2014 at 8:23 AM, Rory Walsh
>> >>>>>>>>> wrote:
>> >>>>>>>>>> I was mistaken. It's there in the bin directory. So back to the
>> >>>>>>>>>> first
>> >>>>>>>>>> question, can I statically link Csound to pthread?
>> >>>>>>>>>>
>> >>>>>>>>>> On 28 August 2014 13:34, Rory Walsh wrote:
>> >>>>>>>>>>> I just took a look at Mike's latest Windows installer and he
>> >>>>>>>>>>> doesn't
>> >>>>>>>>>>> include libpthread, so I might take a go at linking against
>> >>>>>>>>>>> his build
>> >>>>>>>>>>> and see how it goes.
>> >>>>>>>>>>>
>> >>>>>>>>>>> On 28 August 2014 12:04, Rory Walsh wrote:
>> >>>>>>>>>>>> Myself and Oeyvind have been trying to track down an issue he
>> >>>>>>>>>>>> and some
>> >>>>>>>>>>>> other users are having with Cabbage on some versions of
>> >>>>>>>>>>>> Windows/Ableton Live. For me and lots of users everything
>> >>>>>>>>>>>> works fine,
>> >>>>>>>>>>>> but for some users the Cabbage plugins are not seen at all.
>> >>>>>>>>>>>> Note the
>> >>>>>>>>>>>> similarity here to issues arising with the csound~. Anyhow,
>> >>>>>>>>>>>> we created
>> >>>>>>>>>>>> a bare bones mingw plugin(no Csound) and found we had the
>> >>>>>>>>>>>> same
>> >>>>>>>>>>>> problems, UNTIL I started to linking statically to the
>> >>>>>>>>>>>> pthread library
>> >>>>>>>>>>>> (perhaps Windows/Live is somehow flagging the pthread dll as
>> >>>>>>>>>>>> malicious?). As soon as I start linking to Csound however the
>> >>>>>>>>>>>> problem
>> >>>>>>>>>>>> returns because, as far as I can tell, Csound is dynamically
>> >>>>>>>>>>>> linked to
>> >>>>>>>>>>>> this library. Is there a way to set up cmake so that on
>> >>>>>>>>>>>> Windows Csound
>> >>>>>>>>>>>> links statically with this library? I've no experience
>> >>>>>>>>>>>> whatsoever at
>> >>>>>>>>>>>> tweaking cmake build settings. Don't even know where to
>> >>>>>>>>>>>> start, but
>> >>>>>>>>>>>> would love to see if this resolves the problem.
>> >>>>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>>> ------------------------------------------------------------------------------
>> >>>>>>>>>> Slashdot TV.
>> >>>>>>>>>> Video for Nerds. Stuff that matters.
>> >>>>>>>>>> http://tv.slashdot.org/
>> >>>>>>>>>> _______________________________________________
>> >>>>>>>>>> Csound-devel mailing list
>> >>>>>>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> ------------------------------------------------------------------------------
>> >>>>>>>>> Slashdot TV.
>> >>>>>>>>> Video for Nerds. Stuff that matters.
>> >>>>>>>>> http://tv.slashdot.org/
>> >>>>>>>>> _______________________________________________
>> >>>>>>>>> Csound-devel mailing list
>> >>>>>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> ------------------------------------------------------------------------------
>> >>>>>>>> Slashdot TV.
>> >>>>>>>> Video for Nerds. Stuff that matters.
>> >>>>>>>> http://tv.slashdot.org/
>> >>>>>>>> _______________________________________________
>> >>>>>>>> Csound-devel mailing list
>> >>>>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> ------------------------------------------------------------------------------
>> >>>>>>> Slashdot TV.
>> >>>>>>> Video for Nerds. Stuff that matters.
>> >>>>>>> http://tv.slashdot.org/
>> >>>>>>> _______________________________________________
>> >>>>>>> Csound-devel mailing list
>> >>>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>>
>> >>>>>>
>> >>>>>> ------------------------------------------------------------------------------
>> >>>>>> Slashdot TV.
>> >>>>>> Video for Nerds. Stuff that matters.
>> >>>>>> http://tv.slashdot.org/
>> >>>>>> _______________________________________________
>> >>>>>> Csound-devel mailing list
>> >>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Slashdot TV.
>> >>>>> Video for Nerds. Stuff that matters.
>> >>>>> http://tv.slashdot.org/
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Slashdot TV.
>> >>> Video for Nerds. Stuff that matters.
>> >>> http://tv.slashdot.org/
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Slashdot TV.
>> >> Video for Nerds. Stuff that matters.
>> >> http://tv.slashdot.org/
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Slashdot TV.
>> > Video for Nerds. Stuff that matters.
>> > http://tv.slashdot.org/
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds. Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/c |