Hi,
I started to convert my externals to the flext buildsystem and ran into a problem with fluid.
The sources have this layout:
TOPDIR=/cvs/.../footils/fluid cpp source: TOPDIR/fluid/main.cpp package.txt: TOPDIR/package.txt
package.txt: NAME=fluid~ SRCS=fluid/main.cpp LIBS=-lfluidsynth
Now I run into an error while compiling because not all directories get auto-created:
$ flext-build.sh pd gcc build make -f /usr/lib/flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc BUILDPATH=/usr/lib/flext/buildsys/ PKGINFO=package.txt BUILDCLASS=ext TARGETMODE=release TARGETTYPE=single _build_ make[1]: Entering directory `/home/freak/big/audio/pd/cvs-new/externals/footils/fluid' g++ -c -ffast-math -DNDEBUG -O3 -march=athlon -pthread -fPIC -DFLEXT_SYS=2 -I../../../pd/src -I/usr/include/flext fluid/main.cpp -o pd-linux/release-single/fluid/main.opp Assembler messages: FATAL: can't create pd-linux/release-single/fluid/main.opp: No such file or directory make[1]: *** [pd-linux/release-single/fluid/main.opp] Error 1 make[1]: Leaving directory `/home/freak/big/audio/pd/cvs-new/externals/footils/fluid' make: *** [build-release-single] Error 2
The directories "pd-linux/release-single/" get created automatically, hoever not the final one, "pd-linux/release-single/fluid/".
Now what should I do: Create the full directory-tree for all build files? Or is there a way to tell the buildsys to create the directories itself as needed?
Ciao
Hi Frank, there are two things to note
1) the source subfolder has to be specified with SRCDIR=fluid 2) package.txt is considered to be fully platform-independent which means that LIBS=-lfluidsynth is not allowed (meaningless under Windows)... see the py/pyext package.txt and build subfolder how to manage library dependencies.
best greetings, Thomas
Frank Barknecht schrieb:
Hi,
I started to convert my externals to the flext buildsystem and ran into a problem with fluid.
The sources have this layout:
TOPDIR=/cvs/.../footils/fluid cpp source: TOPDIR/fluid/main.cpp package.txt: TOPDIR/package.txt
package.txt: NAME=fluid~ SRCS=fluid/main.cpp LIBS=-lfluidsynth
Hallo, Thomas Grill hat gesagt: // Thomas Grill wrote:
there are two things to note
- the source subfolder has to be specified with SRCDIR=fluid
Ah, thanks, I somehow missed this.
- package.txt is considered to be fully platform-independent which
means that LIBS=-lfluidsynth is not allowed (meaningless under Windows)... see the py/pyext package.txt and build subfolder how to manage library dependencies.
Urgh, makefiles. ;-) Thanks for pointing me at this, I'll try my best now.
Ciao