Discussion:
[Audacity-devel] All modules broken?
Steve the Fiddle
2016-09-29 11:53:37 UTC
Permalink
We've recently had a couple of questions regarding modules, so I tried
building mod-script-pipe and mod-nyqbench, but it seems that modules
have been left behind since 2.1.2 and I can't get either of them to
build.

Given past discussions, I would have thought that we would definitely
want to use modules in the future (?)

This goes way beyond what I'm able to tackle.

Steve

------------------------------------------------------------------------------
Paul Licameli
2016-09-29 13:19:04 UTC
Permalink
I made these changes to Makefile. Only the first should be needed for you.

*--- a/lib-src/mod-script-pipe/Makefile*

*+++ b/lib-src/mod-script-pipe/Makefile*

@@ -20,6 +20,7 @@ MOD = mod-script-pipe.so

#
-----------------------------------------------------------------------------

# NOTE: Set any custom flags you may need

#

+CXXFLAGS += -std=c++11

CXXFLAGS += -Wall -O9

CXXFLAGS += -DCC_HASVISIBILITY # Normally provided by configure

CXXFLAGS += -DBUILDING_SCRIPT_PIPE

@@ -40,7 +41,8 @@ LDFLAGS += ${shell echo @LIBS@ | ../../config.status
--file=- }

SYS = $(shell uname -s)



ifeq ($(SYS),Darwin)

- CXXFLAGS += -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4

+ CXXFLAGS += -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6

+ CXXFLAGS += -I/Developer/SDKs/MacOSX10.6.sdk/usr/include

LDFLAGS += $(CXXFLAGS) -dynamiclib -undefined suppress

else

CXXFLAGS += -fPIC

But that still is not enough to make a build on Mac. I get the error
message:

/bin/sh: ../../config.status: No such file or directory

/bin/sh: ../../config.status: No such file or directory

/bin/sh: ../../config.status: No such file or directory

/bin/sh: ../../config.status: No such file or directory

/bin/sh: ../../config.status: No such file or directory

c++ -std=c++11 -Wall -O9 -DCC_HASVISIBILITY -DBUILDING_SCRIPT_PIPE
-D__WXDEBUG__ -D__WXGTK__ -DAUDACITY_DLL_API= -I../../include -I../../src
-I../../lib-src/portaudio-v19/include -arch i386 -arch ppc -isysroot
/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6
-I/Developer/SDKs/MacOSX10.6.sdk/usr/include -c -o PipeServer.o
PipeServer.cpp

*error: *unable to create target: 'No available targets are compatible with
this triple, see -version for the available targets.'

1 error generated.

make: *** [PipeServer.o] Error 1


Is Leland available to help us?


PRL

Loading...