Hi! Forgive me for bothering you with another compiling related question. I never EVER managed to compile a large app on ANY OS, maybe I’ll be able with Audacity… But not yet, because I’m getting “No targets and no makefile” when running make. Here’s the output:
make -C lib-src
make[1]: Entering directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src'
make -C FileDialog
make[2]: Entering directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/FileDialog'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/FileDialog'
ln -sf FileDialog/FileDialog.a FileDialog.a
make -C libogg
make[2]: Entering directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/libogg'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/libogg'
make[1]: *** [libogg-recursive] Error 2
make[1]: Leaving directory `/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src'
make: *** [audacity] Error 2
I (am trying to) follow the basic steps: svn checkout, install the build dependencies, ./configure, make, etc…
Note that before I was even able to run make I combed the internet to see why ./configure wasn’t working. It was saying that a numeric argument was expected. I passed that error by commenting a line in “configure”, as a forum thread I found somewhere suggested.
Try running “apt-get build-dep audacity” again, and check the output carefully to see if there are any dependencies that cannot be installed.
If that all looks OK, try doing the ./configure and make again, after running make distclean.
=== configuring in lib-src/libid3tag (/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/libid3tag)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local/' '--with-wx-config=/usr/bin/wx-config' '--disable-programs' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /media/ARHIVA/ARHIVA: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ftruncate... yes
checking for compress2 in -lz... yes
checking whether to enable profiling... no
checking whether to enable debugging... default
configure: creating ./config.status
config.status: creating Makefile
config.status: creating msvc++/Makefile
config.status: creating libid3tag.list
config.status: creating config.h
config.status: executing depfiles commands
=== configuring in lib-src/libresample (/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/libresample)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local/' '--with-wx-config=/usr/bin/wx-config' '--disable-programs' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking inttypes.h usability... yes
checking inttypes.h presence... yes
checking for inttypes.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
Type 'configure --help' to see options.
Type 'make' to build libresample.
=== configuring in lib-src/sbsms (/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/sbsms)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local/' '--with-wx-config=/usr/bin/wx-config' '--disable-programs' --cache-file=/dev/null --srcdir=.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking how to run the C++ preprocessor... g++ -E
checking for C++ compiler vendor... gnu
checking for lrint... yes
checking for lrintf... yes
gnu XXX
checking whether C++ compiler accepts -msse... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /media/ARHIVA/ARHIVA: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libsbsms.spec
config.status: creating sbsms.pc
config.status: creating src/config.h
config.status: executing libtool commands
config.status: executing depfiles commands
=== configuring in lib-src/libnyquist (/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/libnyquist)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local/' '--with-wx-config=/usr/bin/wx-config' '--disable-programs' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /media/ARHIVA/ARHIVA: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking CFLAGS for strict prototypes... -Wstrict-prototypes
checking wall_flags for maximum warnings... -Wall
checking for a sed that does not truncate output... /bin/sed
checking whether the C++ compiler accepts the -Wall flag... yes
checking whether the C++ preprocessor accepts the -Wall flag... yes
checking for strchr... yes
checking for memmove... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
Run 'configure --help' for an explanation of the possible options,
otherwise run 'make' to build libnyquist.
=== configuring in lib-src/portmixer (/media/ARHIVA/ARHIVA INFO/WORK/AUDACITY/audacity-read-only/lib-src/portmixer)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local/' '--with-wx-config=/usr/bin/wx-config' '--disable-programs' --cache-file=/dev/null --srcdir=.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking whether to compile debug version... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking for pa_unix_oss.h... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking pa_linux_alsa.h usability... yes
checking pa_linux_alsa.h presence... yes
checking for pa_linux_alsa.h... yes
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking portaudio.h usability... yes
checking portaudio.h presence... yes
checking for portaudio.h... yes
configure: ---------------------------------------
configure: Including support for OSS
configure: Including support for ALSA
configure: ---------------------------------------
configure: creating ./config.status
config.status: creating Makefile
Finished configure:
LIBVORBIS: using LOCAL libraries
LIBMAD: using SYSTEM libraries
LIBSNDFILE: using SYSTEM libraries
LIBFLAC: using LOCAL libraries
LIBID3TAG: using LOCAL libraries
LIBSAMPLERATE: disabled
LIBRESAMPLE: using LOCAL libraries
LIBSBSMS: using LOCAL libraries
LIBSOUNDTOUCH: using SYSTEM libraries
LIBNYQUIST: using LOCAL libraries
LIBVAMP: using SYSTEM libraries
LIBEXPAT: using LOCAL libraries
LIBTWOLAME: using SYSTEM libraries
FFMPEG: using SYSTEM libraries
PORTSMF: using SYSTEM libraries
PORTAUDIO: using SYSTEM libraries
LAME: using LOCAL libraries
ladspa: enabled
audiounits: disabled
prefix=/usr/local/
I tried it, then it complained about libflac. I appended --without-libflac, then it complained about libid3tag. I appended --without-libid3tag then it gave me this:
There are several IDEs available for Linux including Codeblocks, Eclipse, Kdevelop and others. However, few of the big boys developing on Linux use any of them but prefer to set up “Linux” as their development environment - the entire Linux system becomes the IDE. Separate IDE “programs” on Linux are a relatively new thing that have been introduced mostly to keep people that are familiar with developing on Windows happy. Consequently none of the IDE programs on Linux are as mature as Microsoft Visual Studio. An IDE on Windows is essential because Windows does not have the tools necessary for software development. “The Linux way” tends to be “one tool for one job” so rather than one monstrous program to do everything on Linux you are more likely to have a “toolkit” containing several tools, each of which does one thing well. The development tools in Linux have been used and refined over decades.
I’m not a C/C++ programmer myself, but as a musician I often see the same confusion over audio software. On Windows (and Mac) the trend is to have one huge program that does MIDI sequencing, effect processing, editing, synthesizing, mastering, score writing… On Linux we have MIDI sequencers, effect racks, audio sequencers, DAWs, audio editors, synthesizers… all as separate programs, but can also be pulled together with Jack Audio System as one incredibly powerful audio production suite.
Wow you’re a musician. I sing in a choir too. I’m seeking to develop my own app that does music recording, note recognition and other stuff and I wanted to have Audacity as a playground.
I know I can use vim, g++ and aaaall that stuff and I actually do, but I never tried for very large projects; but, for example, I am now studying the code. What should I do if I stumble on a variable or a function that I don’t know where is declared? Do I have to take all the #included files and check them one by one, and maybe the files #included in these as well and so on? (I hope I didn’t say a shameful thing)
I use “Scite” as my text editor, mostly because it has syntax highlighting for LISP which is useful when writing Nyquist plug-ins, but it has several other neat features as well, such as “Search in files”. The “Search” feature can not only look for a string in the current document, but can also search all of the files in a specified directory.
The big boys probably use grep, which is immensely powerful but I don’t think my brain is big enough to remember all the command line stuff that Linux can do.
About grep:
The big daddy text editor is Emacs . This also has the ability to search in files. I find Emacs too complicated for my needs, but a lot of programmers use it.
If Emacs is the big daddy, then the big mother is Vim, which is also widely used.
I’m not qualified to say which is better, and this is not the place for a flame war
(This is one of the more civilised discussions comparing Vim and Emacs: c++ - From Visual Studio to Vim or Emacs? - Stack Overflow )
Eclipse is cross-platform and runs natively on Linux.
If you have Linux you may not need a separate IDE, but some people prefer to have one and one thing that Linux has always done is to offer choice.
We are about 180 people working on our current project. It is about 3.5 million lines of C++ code. We work on Linux, Solaris and Windows workstations, but the target is an obscure real-time platform. A well thought out IDE can help keep such a project together.