[flext] Fwd: Ubuntu 12.04 Flext install issues

Thomas Grill gr at grrrr.org
Fri Nov 1 23:54:23 CET 2013


Hi Jonathan, please always reply to the list.

> It's got that fatal error with g_canvas.h, which I believe is located in
the pd-extended folder, which is pointed to in the config-lnx-pd-gcc.txt
file.

Have you looked whether it's really there? I remember that pd-extendedn did
not include this file (and other files) in the past. You might have to
download pd-vanilla and compile your external using the source code
provided there.

gr~~~


---------- Forwarded message ----------
From: jonathan pivar <jonathanpivar at gmail.com>
Date: 2013/11/1
Subject: Re: [flext] Ubuntu 12.04 Flext install issues
To: Thomas Grill <gr at grrrr.org>


Hi Thomas,

Thank you for the prompt reply! I think I understand the process of what's
supposed to happen to build correctly, however, I'm sadly still stuck a bit.

I tried again by removing everything, then checking out flext with svn.
 Then, I did this:

 U   flext
Checked out revision 3785.
jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals$
cd /home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext
jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals/flext$
bash build.sh pd gcc
-------------------------------------------------------------------------
A default system configuration file has been created.
Please edit ./buildsys/config-lnx-pd-gcc.txt
to match your platform, then start again.
-------------------------------------------------------------------------
make: *** [buildsys/config-lnx-pd-gcc.txt] Error 1
jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals/flext$
bash build.sh pd gcc
-------------------------------------------------------------------------
A default package configuration file has been created.
Please edit config.txt, then start again.
-------------------------------------------------------------------------
make: *** [config.txt] Error 1
jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals/flext$
bash build.sh pd gcc
make -f ./buildsys/gnumake-sub.mak  PLATFORM=lnx RTSYS=pd COMPILER=gcc
BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext
USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc TARGETMODE=release
TARGETTYPE=single _build_
make[1]: Entering directory
`/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
mkdir -p pd-linux/release-single
mkdir -p pd-linux/release-single/
g++ -c  -msse -mfpmath=sse -ffast-math -DFLEXT_USE_CMEM -O3 -march=pentium4
  -pthread -fPIC -fvisibility-inlines-hidden -DFLEXT_USE_SIMD -DNDEBUG
-DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I/usr/include/pdextended//src
-I/usr/include/pdextended//include -I/usr/include/pdextended//include/pd
-I/home/jonathanpivar/Documents/STK/stk-4.4.4/include
-I/home/jonathanpivar/Documents/SndObj-2.6.7/include/SndObj
source/flbase.cpp -o pd-linux/release-single/flbase.opp
source/flbase.cpp:32:22: fatal error: g_canvas.h: No such file or directory
compilation terminated.
make[1]: *** [pd-linux/release-single/flbase.opp] Error 1
make[1]: Leaving directory
`/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
make: *** [build-release-single] Error 2
jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals/flext$
sudo bash build.sh pd gcc install
[sudo] password for jonathanpivar:
make -f ./buildsys/gnumake-sub.mak  PLATFORM=lnx RTSYS=pd COMPILER=gcc
BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext
USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc TARGETMODE=release
TARGETTYPE=single _install_
make[1]: Entering directory
`/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
install pd-linux/release-single/libflext-pd_s.a.0.5.2 /usr/local/lib
install: cannot stat `pd-linux/release-single/libflext-pd_s.a.0.5.2': No
such file or directory
make[1]: *** [_install_] Error 1
make[1]: Leaving directory
`/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
make: *** [install-release-single] Error 2
jonathanpivar at UbuntuStudioLaptop
:~/Documents/PureDataLibraries/PD-Externals/flext$

It's got that fatal error with g_canvas.h, which I believe is located in
the pd-extended folder, which is pointed to in the config-lnx-pd-gcc.txt
file.

# where is the PD source package?
# (this should point to the main folder, which has a "src" (PD Vanilla) or
"include" (PD extended) subfolder)
PDPATH=/usr/include/pdextended/

###############################################################

# prefix for flext installation
# headers are in $(FLEXTPREFIX)/include/flext
# libraries are in $(FLEXTPREFIX)/lib
# build system is in $(FLEXTPREFIX)/lib/flext

FLEXTPREFIX=/usr/local

###############################################################

# where should the external be built?
OUTPATH=pd-linux

# where should the external be installed?
INSTPATH=/usr/local/lib/pd/extra

###############################################################

# STK (synthesis tool kit) support
# http://ccrma.stanford.edu/software/stk

# where to find the STK header files (e.g. stk.h)
STK_INC=/home/jonathanpivar/Documents/STK/stk-4.4.4/include

# where to find the STK library (normally libstk.a)
# (comment out STK_LIB if you don't use STK)
#STK_LIB=/home/jonathanpivar/Documents/STK/stk-4.4.4/src/libstick.a

###############################################################

# SndObj support
# http://music.nuim.ie//musictec/SndObj

# where to find the SndObj header files (e.g. sndobj.h)
SNDOBJ_INC=/home/jonathanpivar/Documents/SndObj-2.6.7/include/SndObj

# where to find the SndObj library (normally libsndobj.a)
# (comment out STK_LIB if you don't use SndObj)
#SNDOBJ_LIB=/home/jonathanpivar/Documents/SndObj-2.6.7/lib/libsndobj.so

###############################################################

# make flags (e.g. use multiprocessor)
#MFLAGS=-j 2

# user defined compiler flags
# (check if they match your system!)
UFLAGS=-msse -mfpmath=sse -ffast-math
# don't overload new and delete operators
UFLAGS+=-DFLEXT_USE_CMEM

# user defined optimization flags
# (check if they match your system!)
OFLAGS=-O3
# optimizations for Pentium 4
OFLAGS+=-march=pentium4

Is there another config file that I'm missing? I went here after it was
displayed:

A default package configuration file has been created.
Please edit config.txt, then start again.

but, nothing seemed to need tweeking?

I'm just not seeing what I'm missing.  Please excuse my ignorance.  Help is
greatly appreciated!

Thanks,

Jonathan


On Thu, Oct 31, 2013 at 1:24 PM, Thomas Grill <gr at grrrr.org> wrote:

> Hi Jonathan,
> if i interpret the cited console output correctly, you haven't built flext
> using
> bash build.sh pd gcc
> before trying to install it.
> This is different for the flext build system than for autoconf based build
> processes.
> gr~~~
>
>
> 2013/10/31 jonathan pivar <jonathanpivar at gmail.com>
>
>> Hi Everybody,
>>
>> This is my first post, please bear with me.  I'm just learning c/c++, so
>> I'm a bit at a loss.
>>
>> I'm having issues installing.  I thought that I had installed correctly
>> and went on to install py, but when I used the py object, it froze pd.  So,
>> I deleted everything I'd done and tried again...
>>
>> I've tried to install based upon the instructions contained in the
>> build.txt file.  I modified the config-lnx-pd-gcc.txt to point to the pd
>> header files, the stk files and sndobj files, as requested. My files were
>> in different locations:
>>
>> # where is the PD source package?
>> # (this should point to the main folder, which has a "src" (PD Vanilla)
>> or "include" (PD extended) subfolder)
>> PDPATH=/usr/include/pdextended/m_pd.h
>>
>> ###############################################################
>>
>> # prefix for flext installation
>> # headers are in $(FLEXTPREFIX)/include/flext
>> # libraries are in $(FLEXTPREFIX)/lib
>> # build system is in $(FLEXTPREFIX)/lib/flext
>>
>> FLEXTPREFIX=/usr/local
>>
>> ###############################################################
>>
>> # where should the external be built?
>> OUTPATH=pd-linux
>>
>> # where should the external be installed?
>> INSTPATH=/usr/local/lib/pd/extra
>>
>> ###############################################################
>>
>> # STK (synthesis tool kit) support
>> # http://ccrma.stanford.edu/software/stk
>>
>> # where to find the STK header files (e.g. stk.h)
>> STK_INC=/home/jonathanpivar/Documents/STK/stk-4.4.4/include
>>
>> # where to find the STK library (normally libstk.a)
>> # (comment out STK_LIB if you don't use STK)
>> #STK_LIB=/home/jonathanpivar/Documents/STK/stk-4.4.4/src/libstick.a
>>
>> ###############################################################
>>
>> # SndObj support
>> # http://music.nuim.ie//musictec/SndObj
>>
>> # where to find the SndObj header files (e.g. sndobj.h)
>> SNDOBJ_INC=/home/jonathanpivar/Documents/SndObj-2.6.7/include/SndObj
>>
>> # where to find the SndObj library (normally libsndobj.a)
>> # (comment out STK_LIB if you don't use SndObj)
>> #SNDOBJ_LIB=/home/jonathanpivar/Documents/SndObj-2.6.7/lib/libsndobj.so
>>
>> ###############################################################
>>
>> # make flags (e.g. use multiprocessor)
>> #MFLAGS=-j 2
>>
>> # user defined compiler flags
>> # (check if they match your system!)
>> UFLAGS=-msse -mfpmath=sse -ffast-math
>> # don't overload new and delete operators
>> UFLAGS+=-DFLEXT_USE_CMEM
>>
>> # user defined optimization flags
>> # (check if they match your system!)
>> OFLAGS=-O3
>> # optimizations for Pentium 4
>> OFLAGS+=-march=pentium4
>>
>> And, when I try compiling:
>>
>> jonathanpivar at UbuntuStudioLaptop:~/Documents/PureDataLibraries/PD-Externals/flext$
>> sudo bash build.sh pd gcc install
>> make -f ./buildsys/gnumake-sub.mak  PLATFORM=lnx RTSYS=pd COMPILER=gcc
>> BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext
>> USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc TARGETMODE=release
>> TARGETTYPE=single _install_
>> make[1]: Entering directory
>> `/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
>> install pd-linux/release-single/libflext-pd_s.a.0.5.2 /usr/local/lib
>> install: cannot stat `pd-linux/release-single/libflext-pd_s.a.0.5.2': No
>> such file or directory
>> make[1]: *** [_install_] Error 1
>> make[1]: Leaving directory
>> `/home/jonathanpivar/Documents/PureDataLibraries/PD-Externals/flext'
>> make: *** [install-release-single] Error 2
>> jonathanpivar at UbuntuStudioLaptop
>> :~/Documents/PureDataLibraries/PD-Externals/flext$
>>
>> I've gotten as far as I can with the documentation, so I'm here.  Thanks
>> in advance!  Hopefully, it's something trivial.
>>
>> Jonathan
>>
>> _______________________________________________
>> http://grrrr.org/ext/flext
>>
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>>
>
>
>
> --
> Thomas Grill
> http://grrrr.org
>




-- 
Thomas Grill
http://grrrr.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20131101/6ddb1ad7/attachment.htm>


More information about the flext mailing list