Opened 12 years ago

Closed 12 years ago

#382 closed Bug Report (fixed)

Ingen: strange build fail on OSX

Reported by: zorglub421@… Owned by:
Priority: blocker Component: Ingen
Keywords: ingen build osx Cc:

Description

Hello Ingen team,

I'm trying to compile ingen on OSX, having compiled librdf by hand (raptor, rasqal, redland under /opt/librdf) and get stalled on this error of waf configure:

philou@bookpro:~/src/audio-dsp-math/ingen-svn$ PKG_CONFIG_PATH="/opt/librdf/lib/pkgconfig:$PKG_CONFIG_PATH" ./waf configure --prefix=/opt/ingen Checking for program gcc : ok /usr/bin/gcc Checking for program cpp : ok /usr/bin/cpp Checking for program ar : ok /usr/bin/ar Checking for program ranlib : ok /usr/bin/ranlib Checking for gcc : ok Checking for program g++ : ok /usr/bin/g++ Checking for g++ : ok Checking for redland >= 1.0.6 : Variable 'top_build_prefix' not defined in '/opt/librdf/lib/pkgconfig/redland.pc'

error: the configuration failed (see '/Users/philou/src/audio-dsp-math/ingen-svn/build/config.log')

the content of redland.pc is:

-

prefix=/opt/librdf exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include

plugindir=${libdir}/redland

swig=${prefix}/share/redland/Redland.i

Name: Redland RDF API Library Description: Redland RDF API and triple store library Requires: raptor >= 1.4.17, rasqal >= 0.9.16, rasqal <= 0.9.99 Version: 1.0.9 Libs: -L${libdir} -lrdf Libs.private: -L/opt/local/lib/db45 -ldb-4.5 ${top_build_prefix}libltdl/libltdlc.la Cflags: -I${includedir}

-

what is this 'top_build_prefix' pkgconf variable?

Regards

Change History (6)

comment:1 Changed 12 years ago by zorglub421@…

Hello again, I've fixed the redland.pc issue and now, on OSX, face the exact same waf error as on ubuntu.

Checking for program gcc : ok /usr/bin/gcc Checking for program cpp : ok /usr/bin/cpp Checking for program ar : ok /usr/bin/ar Checking for program ranlib : ok /usr/bin/ranlib Checking for gcc : ok Checking for program g++ : ok /usr/bin/g++ Checking for g++ : ok Checking for redland >= 1.0.6 : ok Checking for jack >= 0.107.0 : ok

Global configuration Install prefix : /opt/ingen Debuggable build : False Strict compiler flags : False Build documentation : False

SLV2 Configuration Jack clients : True Unit tests : False

Checking for glibmm-2.4 >= 2.14.0 : ok Checking for gthread-2.0 >= 2.14.0 : ok

Checking for libgvc >= 2.8 : fail Checking for libgnomecanvasmm-2.6 >= 2.6.0 : ok Checking for header boost/shared_ptr.hpp : ok Checking for header boost/weak_ptr.hpp : ok Traceback (most recent call last):

File "./waf", line 148, in <module>

Scripting.prepare(t, cwd, VERSION, wafdir)

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Scripting.py", line 97, in prepare

prepare_impl(t,cwd,ver,wafdir)

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Scripting.py", line 90, in prepare_impl

main()

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Scripting.py", line 125, in main

fun(ctx)

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Scripting.py", line 163, in configure

conf.sub_config([])

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Configure.py", line 99, in sub_config

self.recurse(k,name='configure')

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Utils.py", line 390, in recurse

f(self)

File "<string>", line 48, in configure File "<string>", line 37, in sub_config_and_use File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Configure.py", line 99, in sub_config

self.recurse(k,name='configure')

File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Utils.py", line 390, in recurse

f(self)

File "<string>", line 43, in configure File "/Users/philou/src/audio-dsp-math/ingen-svn/.waf-1.5.6-372ed0a3b8b521cebd3292e2fc45ec1c/wafadmin/Tools/config_c.py", line 362, in define

raise TypeError?('define %r -> %r must be a string or an int'%(define,value))

TypeError?: define 'HAVE_AGRAPH' -> () must be a string or an int philou@bookpro:~/src/audio-dsp-math/ingen-svn$

comment:2 Changed 12 years ago by zorglub421@…

Oh, there's probably something wrong in the waf detection of gv; I fixed the waf configure problem by using this:

PKG_CONFIG_PATH="/opt/graphviz/lib/pkgconfig/:/opt/librdf/lib/pkgconfig:/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH" CXXFLAGS="-I /opt/boost/include/boost-1_37" ./waf configure --prefix=/opt/ingen

(specifying the graphviz pkgconfig path), waf configure now does'nt chokes anymore, but compilation fails:

[ 36/224] cxx: raul/tests/quantize_test.cpp -> build/default/raul/tests/quantize_test_9.o [ 37/224] cxx: raul/tests/smf_test.cpp -> build/default/raul/tests/smf_test_10.o [ 38/224] cxx: raul/tests/table_test.cpp -> build/default/raul/tests/table_test_11.o [ 39/224] cxx: flowcanvas/src/Canvas.cpp -> build/default/flowcanvas/src/Canvas_2.o ../flowcanvas/src/Canvas.cpp:32:26: error: graphviz/gvc.h: No such file or directory [ 40/224] cxx: flowcanvas/src/Connectable.cpp -> build/default/flowcanvas/src/Connectable_2.o ../flowcanvas/src/Canvas.cpp:1205: error: ‘Agnode_t’ was not declared in this scope ../flowcanvas/src/Canvas.cpp:1205: error: template argument 2 is invalid ../flowcanvas/src/Canvas.cpp:1205: error: template argument 4 is invalid ../flowcanvas/src/Canvas.cpp:1216: error: ISO C++ forbids declaration of ‘GVC_t’ with no type ../flowcanvas/src/Canvas.cpp:1216: error: expected ‘;’ before ‘*’ token ../flowcanvas/src/Canvas.cpp:1217: error: ISO C++ forbids declaration of ‘Agraph_t’ with no type

regards.

comment:3 in reply to:  2 Changed 12 years ago by zorglub421@…

editing flowcanvas/src/Canvas.cpp and changing the #include line 32 from:

#include <graphviz/gvc.h>

to:

#include <gvc.h>

solved the issue.

comment:4 Changed 12 years ago by zorglub421@…

Resolution: duplicate
Status: newclosed

One last thing: Patchage.cpp fail to compile when ALSA is not used.

There's a missing #ifdef HAVE_ALSA at line 347 (svn of 2009-06-08)

After this fix, I run in the same issue as ticket #327; OSX linking fail for a missing "LV2::get_lv2_descriptors()" symbol.

comment:5 Changed 12 years ago by David Robillard

Resolution: duplicate
Status: closedreopened

comment:6 Changed 12 years ago by David Robillard

Resolution: fixed
Status: reopenedclosed

Fixed in r2101 and r2102.

Note: See TracTickets for help on using tickets.