Csound Csound-dev Csound-tekno Search About

[Cs-dev] Cannot build -- windows visible on linx

Date2013-09-03 15:11
Fromjpff@cs.bath.ac.uk
Subject[Cs-dev] Cannot build -- windows visible on linx
/usr/bin/gcc  -fPIC  -ftree-vectorize -ffast-math -mfpmath=sse -msse2
-fomit-frame-pointer -Wall -W -Wno-missing-field-initializers
-Wno-unused-parameter -O3 -mtune=core2 -DJPFF -ftree-vectorize -ffast-math
-fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -g   -shared
-Wl,-soname,libosc.so -o ../libosc.so CMakeFiles/osc.dir/OSC.c.o
/usr/local/lib64/liblo.so -lpthread -lwsock32 -lws2_32
-Wl,-rpath,/usr/local/lib64
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lwsock32
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lws2_32
collect2: error: ld returned 1 exit status



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-09-03 15:21
FromMichael Gogins
SubjectRe: [Cs-dev] Cannot build -- windows visible on linx
AttachmentsNone  None  
Sorry, that was my mistake.

The following change to Opcodes/CMakeLists.txt should have been made only for Windows:

@@ -125,7 +125,7 @@
 check_deps(BUILD_OSC_OPCODES OSC_HEADER LIBLO_LIBRARY)
 if(BUILD_OSC_OPCODES)
     make_plugin(osc OSC.c)
-    target_link_libraries(osc ${LIBLO_LIBRARY} pthread)
+    target_link_libraries(osc ${LIBLO_LIBRARY} pthread wsock32 ws2_32)
     add_dependency_to_framework(osc ${LIBLO_LIBRARY})
 endif()


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


On Tue, Sep 3, 2013 at 10:11 AM, <jpff@cs.bath.ac.uk> wrote:
/usr/bin/gcc  -fPIC  -ftree-vectorize -ffast-math -mfpmath=sse -msse2
-fomit-frame-pointer -Wall -W -Wno-missing-field-initializers
-Wno-unused-parameter -O3 -mtune=core2 -DJPFF -ftree-vectorize -ffast-math
-fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -g   -shared
-Wl,-soname,libosc.so -o ../libosc.so CMakeFiles/osc.dir/OSC.c.o
/usr/local/lib64/liblo.so -lpthread -lwsock32 -lws2_32
-Wl,-rpath,/usr/local/lib64
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lwsock32
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lws2_32
collect2: error: ld returned 1 exit status



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel