<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Le 24/04/2014 15:52, IOhannes m zmölnig a écrit :<br>
<span style="white-space: pre;">><br>
><br>
><br>
> well, this basically means that the windowing code as found
in<br>
> src/Base/GemWinCreateMac.cpp has reached it's end of life,
even when<br>
> doing a legacy i386-only build.<br>
><br>
> it's probably time to entirely remove the old legacy
windowing code, and<br>
> switch to the new one found in src/Output.<br>
><br>
> i *guess* the easiest way to do so (for you, right now), is
to simply:<br>
> - remove the line containing GemWinCreateMac.cpp from
src/Base/Makefile.am<br>
> - remove the line containing gemwin.cpp from
src/Control/Makefile.am<br>
><br>
> - add Gem's abstractions (containing gemwin.pd and the like)
to your<br>
> search-path<br>
></span><br>
I tried that.<br>
<br>
--<br>
first comment (as seen by m.grimm)<br>
this error:<br>
<br>
videoBase.cpp:426:3: error: use of undeclared identifier 'select'<br>
select(0,0,0,0,&sleep);<br>
<br>
can be corrected by modifying the beginning of the file<br>
<br>
#ifdef HAVE_SYS_SELECT_H<br>
# include <sys/select.h><br>
#endif<br>
<br>
it works by adding<br>
<br>
# include <sys/select.h><br>
<br>
outside of the test but i don't understand it because in my config.h
i have<br>
#define HAVE_SYS_SELECT_H 1<br>
<br>
------------------------------------------------------------------<br>
<br>
second comment<br>
even if i configure with "--without-ftgl"<br>
I have errors on text related objects, for example:<br>
TextBaseFTGL.cpp:57:3: error: member initializer 'm_font' does not
name a non-static data member or base class<br>
m_font(NULL), m_fontname(NULL)<br>
^~~~~~~~~~~~<br>
TextBaseFTGL.cpp:57:17: error: initializer 'm_fontname' does not
name a non-static data member or base class; did you mean the member
'm_fontSize'?<br>
m_font(NULL), m_fontname(NULL)<br>
^~~~~~~~~~<br>
m_fontSize<br>
./TextBase.h:166:10: note: 'm_fontSize' declared here<br>
float m_fontSize;<br>
^<br>
TextBaseFTGL.cpp:57:28: warning: implicit conversion of NULL
constant to 'float' [-Wnull-conversion]<br>
m_font(NULL), m_fontname(NULL)<br>
~^~~~<br>
0.0<br>
TextBaseFTGL.cpp:57:17: error: multiple initializations given for
non-static member 'm_fontSize'<br>
m_font(NULL), m_fontname(NULL)<br>
^~~~~~~~~~~~~~~~<br>
TextBaseFTGL.cpp:53:26: note: previous initialization is here<br>
m_dist(1), m_valid(0), m_fontSize(20), m_fontDepth(20),
m_precision(3.f),<br>
^~~~~~~~~~~~~~<br>
TextBaseFTGL.cpp:71:18: error: out-of-line definition of
'startRendering' does not match any declaration in 'TextBase'<br>
void TextBase :: startRendering(void) {<br>
^~~~~~~~~~~~~~<br>
TextBaseFTGL.cpp:72:12: error: use of undeclared identifier 'm_font'<br>
if(NULL==m_font) {<br>
^<br>
TextBaseFTGL.cpp:73:8: error: use of undeclared identifier
'm_fontname'<br>
if(m_fontname)<br>
^<br>
TextBaseFTGL.cpp:74:20: error: use of undeclared identifier
'm_fontname'<br>
fontNameMess(m_fontname->s_name);<br>
^<br>
TextBaseFTGL.cpp:83:18: error: out-of-line definition of
'renderLine' does not match any declaration in 'TextBase'<br>
void TextBase :: renderLine(const char*line, float dist) {<br>
^~~~~~~~~~<br>
TextBaseFTGL.cpp:85:3: error: use of undeclared identifier 'm_font'<br>
m_font->BBox(line, x1, y1, z1, x2, y2, z2); // FTGL<br>
^<br>
TextBaseFTGL.cpp:94:3: error: use of undeclared identifier 'm_font'<br>
m_font->Render(line);<br>
^<br>
TextBaseFTGL.cpp:98:18: error: out-of-line definition of
'renderLine' does not match any declaration in 'TextBase'<br>
void TextBase :: renderLine(const wchar_t*line, float dist) {<br>
^~~~~~~~~~<br>
TextBaseFTGL.cpp:100:3: error: use of undeclared identifier 'm_font'<br>
m_font->BBox(line, x1, y1, z1, x2, y2, z2); // FTGL<br>
^<br>
TextBaseFTGL.cpp:109:3: error: use of undeclared identifier 'm_font'<br>
m_font->Render(line);<br>
^<br>
TextBaseFTGL.cpp:116:29: error: use of undeclared identifier
'm_font'<br>
if (m_theText.empty() || !m_font)return;<br>
^<br>
TextBaseFTGL.cpp:171:6: error: use of undeclared identifier 'm_font'<br>
if(m_font)delete m_font; m_font=NULL;<br>
^<br>
TextBaseFTGL.cpp:171:20: error: use of undeclared identifier
'm_font'<br>
if(m_font)delete m_font; m_font=NULL;<br>
^<br>
TextBaseFTGL.cpp:171:28: error: use of undeclared identifier
'm_font'<br>
if(m_font)delete m_font; m_font=NULL;<br>
^<br>
TextBaseFTGL.cpp:172:3: error: use of undeclared identifier 'm_font'<br>
m_font=makeFont(bufptr);<br>
^<br>
TextBaseFTGL.cpp:172:10: error: use of undeclared identifier
'makeFont'<br>
m_font=makeFont(bufptr);<br>
^<br>
fatal error: too many errors emitted, stopping now [-ferror-limit=]<br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src
-DGEM_INTERNAL -DGLEW_BUILD -DPD
-I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g
-O2 -Os -ffast-math -mmmx -fpascal-strings -MT
libBase_la-TextBaseNone.lo -MD -MP -MF
.deps/libBase_la-TextBaseNone.Tpo -c TextBaseNone.cpp -o
libBase_la-TextBaseNone.o >/dev/null 2>&1<br>
1 warning and 20 errors generated.<br>
make[3]: *** [libBase_la-TextBaseFTGL.lo] Error 1<br>
make[3]: *** Waiting for unfinished jobs....<br>
or:<br>
<br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src
-DGEM_INTERNAL -DGLEW_BUILD -DPD
-I/Applications/Pd-extended.app/Contents/Resources/src -arch i386 -g
-O2 -Os -ffast-math -mmmx -fpascal-strings -MT libGeos_la-text2d.lo
-MD -MP -MF .deps/libGeos_la-text2d.Tpo -c text2d.cpp -fno-common
-DPIC -o .libs/libGeos_la-text2d.o<br>
text2d.cpp:143:16: error: out-of-line definition of 'render' does
not match any declaration in 'text2d'<br>
void text2d :: render(GemState*){}<br>
^~~~~~<br>
1 error generated.<br>
<br>
------------------------------------------------------------------<br>
<br>
third:<br>
if i try make -k to get through the text errors, i have a few errors
in imageQT and filmDarwin<br>
<br>
/bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD
-I/Applications/Pd-extended.app/Contents/Resources/src -arch i386
-framework QuickTime -g -O2 -Os -ffast-math -mmmx -fpascal-strings
-MT gem_imageQT_la-imageQT.lo -MD -MP -MF
.deps/gem_imageQT_la-imageQT.Tpo -c -o gem_imageQT_la-imageQT.lo
`test -f 'imageQT.cpp' || echo './'`imageQT.cpp<br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src
-DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch
i386 -framework QuickTime -g -O2 -Os -ffast-math -mmmx
-fpascal-strings -MT gem_imageQT_la-imageQT.lo -MD -MP -MF
.deps/gem_imageQT_la-imageQT.Tpo -c imageQT.cpp -fno-common -DPIC
-o .libs/gem_imageQT_la-imageQT.o<br>
[...]<br>
imageQT.cpp:267:5: error: no member named 'OffsetRect' in the global
namespace<br>
::OffsetRect(&r, -r.left, -r.top);<br>
~~^<br>
imageQT.cpp:323:5: error: no type named 'DisposeGWorld' in the
global namespace<br>
::DisposeGWorld(gw); //dispose the offscreen<br>
~~^<br>
<br>
with a few more in filmDarwin, filmQT and videoDarwin:<br>
<br>
filmDarwin.cpp:188:42: error: use of undeclared identifier
'GetGWorldDevice'<br>
::SetMovieGWorld(m_movie, m_srcGWorld,
GetGWorldDevice(m_srcGWorld));<br>
^<br>
filmDarwin.cpp:206:5: error: no member named 'GetGWorld' in the
global namespace<br>
::GetGWorld(&savedPort, &savedDevice);<br>
~~^<br>
filmDarwin.cpp:207:5: error: no member named 'SetGWorld' in the
global namespace<br>
::SetGWorld(m_srcGWorld, NULL);<br>
~~^<br>
filmDarwin.cpp:208:5: warning: 'GetMovieBox' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]<br>
::GetMovieBox(m_movie, &m_srcRect);<br>
^<br>
/System/Library/Frameworks/QuickTime.framework/Headers/Movies.h:2550:1:
note: 'GetMovieBox' declared here<br>
GetMovieBox(<br>
^<br>
filmDarwin.cpp:210:16: error: no member named 'GetGWorldPixMap' in
the global namespace<br>
m_pixMap = ::GetGWorldPixMap(m_srcGWorld);<br>
~~^<br>
<br>
------------------------------------------------------------------<br>
<br>
finally in the output folder i have more or less the same errors
than before, but this time in gemmacwindow.cpp:<br>
<br>
libtool: link: g++ -Wl,-undefined -Wl,dynamic_lookup -o
.libs/gemglutwindow.pd_darwin -bundle
.libs/gemglutwindow_la-gemglutwindow.o -lstdc++ -framework
QuickTime -framework Carbon -framework Cocoa -framework AGL
-L/Applications/Pd-extended.app/Contents/Resources/bin -L../..
-framework GLUT -framework OpenGL -ldl -lz -lm -arch i386 -O2 -Os
-mmmx -arch i386 -framework QuickTime -framework Carbon -framework
Cocoa -framework AGL -framework GLUT -framework OpenGL<br>
libtool: link: ( cd ".libs" && rm -f "gemglutwindow.la"
&& ln -s "../gemglutwindow.la" "gemglutwindow.la" )<br>
/bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD
-I/Applications/Pd-extended.app/Contents/Resources/src -arch i386
-g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT
gemmacwindow_la-gemmacwindow.lo -MD -MP -MF
.deps/gemmacwindow_la-gemmacwindow.Tpo -c -o
gemmacwindow_la-gemmacwindow.lo `test -f 'gemmacwindow.cpp' || echo
'./'`gemmacwindow.cpp<br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src
-DPD -I/Applications/Pd-extended.app/Contents/Resources/src -arch
i386 -g -O2 -Os -ffast-math -mmmx -fpascal-strings -MT
gemmacwindow_la-gemmacwindow.lo -MD -MP -MF
.deps/gemmacwindow_la-gemmacwindow.Tpo -c gemmacwindow.cpp
-fno-common -DPIC -o .libs/gemmacwindow_la-gemmacwindow.o<br>
[...]<br>
gemmacwindow.cpp:269:3: error: use of undeclared identifier
'GetPort'; did you mean 'CFRunLoopSourceContext1::getPort'?<br>
GetPort (&cgrafSave);<br>
^~~~~~~<br>
CFRunLoopSourceContext1::getPort<br>
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h:105:19:
note: 'CFRunLoopSourceContext1::getPort' declared here<br>
mach_port_t (*getPort)(void *info);<br>
^<br>
gemmacwindow.cpp:269:3: error: invalid use of non-static data member
'getPort'<br>
GetPort (&cgrafSave);<br>
^~~~~~~<br>
<br>
gemmacwindow.cpp:388:13: error: use of undeclared identifier
'GetMainDevice'<br>
hGD = GetMainDevice ();<br>
^<br>
gemmacwindow.cpp:394:21: error: use of undeclared identifier
'DMGetFirstScreenDevice'<br>
hDevice = DMGetFirstScreenDevice (true);<br>
^<br>
gemmacwindow.cpp:399:25: error: use of undeclared identifier
'DMGetNextScreenDevice'<br>
hDevice = DMGetNextScreenDevice (hDevice, true);<br>
^<br>
gemmacwindow.cpp:417:17: error: use of undeclared identifier
'DMGetFirstScreenDevice'<br>
hGD = DMGetFirstScreenDevice (true);<br>
^<br>
gemmacwindow.cpp:420:34: error: use of undeclared identifier
'DMGetNextScreenDevice'<br>
GDHandle hGDNext = DMGetNextScreenDevice (hGD, true);<br>
^<br>
gemmacwindow.cpp:438:13: error: use of undeclared identifier
'DMGetFirstScreenDevice'<br>
hGD = DMGetFirstScreenDevice (true);<br>
^<br>
gemmacwindow.cpp:446:21: error: use of undeclared identifier
'DMGetNextScreenDevice'<br>
hGD = DMGetNextScreenDevice (hGD, true);<br>
^<br>
[...]<br>
<br>
Is this solvable somehow? I make a branch on github to track changes
to compile on osx.<br>
Thanks in advance and sorry for this long mail<br>
n<br>
<br>
-- <br>
<a class="moz-txt-link-freetext" href="http://www.nimon.org">http://www.nimon.org</a><br>
<br>
</body>
</html>