platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.h:11:20: error: AGL/gl.h: No such file or directory
looks like there should be something like
#ifdef LION #include <OpenGl/gl.h> #else #include <AGL/gl.h> #endif
so the question, what is the proper way to test for LION? any ideas?
you can test for sdk 10.7 btw... that should be already there in iOS branch
El 05/01/2012, a las 1:04p.m., Igor Stasenko escribió:
platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.h:11:20: error: AGL/gl.h: No such file or directory
looks like there should be something like
#ifdef LION #include <OpenGl/gl.h> #else #include <AGL/gl.h> #endif
so the question, what is the proper way to test for LION? any ideas?
-- Best regards, Igor Stasenko.
On 5 January 2012 17:07, Esteban Lorenzano estebanlm@gmail.com wrote:
you can test for sdk 10.7 btw... that should be already there in iOS branch
can you tell how exactly to do it?
El 05/01/2012, a las 1:04p.m., Igor Stasenko escribió:
platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.h:11:20: error: AGL/gl.h: No such file or directory
looks like there should be something like
#ifdef LION #include <OpenGl/gl.h> #else #include <AGL/gl.h> #endif
so the question, what is the proper way to test for LION? any ideas?
-- Best regards, Igor Stasenko.
#ifdef MAC_OS_X_VERSION_10_7 #include <OpenGL/gl.h> #else #include <AGL/gl.h> #endif
Esteban
El 05/01/2012, a las 1:11p.m., Igor Stasenko escribió:
On 5 January 2012 17:07, Esteban Lorenzano estebanlm@gmail.com wrote:
you can test for sdk 10.7 btw... that should be already there in iOS branch
can you tell how exactly to do it?
El 05/01/2012, a las 1:04p.m., Igor Stasenko escribió:
platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.h:11:20: error: AGL/gl.h: No such file or directory
looks like there should be something like
#ifdef LION #include <OpenGl/gl.h> #else #include <AGL/gl.h> #endif
so the question, what is the proper way to test for LION? any ideas?
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
On 5 January 2012 17:25, Esteban Lorenzano estebanlm@gmail.com wrote:
#ifdef MAC_OS_X_VERSION_10_7 #include <OpenGL/gl.h> #else #include <AGL/gl.h> #endif
aha.. thanks!
Esteban
El 05/01/2012, a las 1:11p.m., Igor Stasenko escribió:
On 5 January 2012 17:07, Esteban Lorenzano estebanlm@gmail.com wrote:
you can test for sdk 10.7
btw... that should be already there in iOS branch
can you tell how exactly to do it?
El 05/01/2012, a las 1:04p.m., Igor Stasenko escribió:
platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.h:11:20:
error: AGL/gl.h: No such file or directory
looks like there should be something like
#ifdef LION
#include <OpenGl/gl.h>
#else
#include <AGL/gl.h>
#endif
so the question, what is the proper way to test for LION? any ideas?
--
Best regards,
Igor Stasenko.
-- Best regards, Igor Stasenko.
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
yes... you should :) anyway... I'm looking what is happening (It is working for me, here, so I get a new image and downloaded everything new, in case there are something in my current image)
Esteban
El 05/01/2012, a las 1:39p.m., Igor Stasenko escribió:
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
-- Best regards, Igor Stasenko.
yes... I just downloaded a ConfigurationOfCog v3.7, built and everything is working fine here... did you redirect gcc link from llvm to gcc?
best, Esteban
El 05/01/2012, a las 1:39p.m., Igor Stasenko escribió:
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
-- Best regards, Igor Stasenko.
On 5 January 2012 17:54, Esteban Lorenzano estebanlm@gmail.com wrote:
yes... I just downloaded a ConfigurationOfCog v3.7, built and everything is working fine here... did you redirect gcc link from llvm to gcc?
looks like i am:
gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
best, Esteban
El 05/01/2012, a las 1:39p.m., Igor Stasenko escribió:
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
-- Best regards, Igor Stasenko.
On 5 January 2012 18:12, Igor Stasenko siguctua@gmail.com wrote:
On 5 January 2012 17:54, Esteban Lorenzano estebanlm@gmail.com wrote:
yes... I just downloaded a ConfigurationOfCog v3.7, built and everything is working fine here... did you redirect gcc link from llvm to gcc?
looks like i am:
gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
heh.. on second look it looks like wrong compiler. :) llvm-gcc.. how to link a right one?
best, Esteban
El 05/01/2012, a las 1:39p.m., Igor Stasenko escribió:
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
nop :) it has to be:
i686-apple-darwin11-gcc-4.2.1
not llvm :P
best, Esteban
ps: I will integrate the changes to avoid the redirect of the link soon, but for now, it has to be made "by hand"
El 05/01/2012, a las 2:12p.m., Igor Stasenko escribió:
On 5 January 2012 17:54, Esteban Lorenzano estebanlm@gmail.com wrote:
yes... I just downloaded a ConfigurationOfCog v3.7, built and everything is working fine here... did you redirect gcc link from llvm to gcc?
looks like i am:
gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
best, Esteban
El 05/01/2012, a las 1:39p.m., Igor Stasenko escribió:
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
the problem i see that it is present in ios sources, but not in mac os..
fgrep -r useTempMem * Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem); Mac OS/plugins/PrintJobPlugin/sqMacPrinting.c: NewGWorld(&aGWorld, printJob->depth, &srcRect, stColorTable, NULL, keepLocal+useTempMem); iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c:#define useTempMem (1L << 2) //This declaration is taken from old sdk definition. iOS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c: qdErr = NewGWorld(&renderer->gWorld, (short) renderer->depth, &rect, NULL, NULL, useTempMem);
maybe i should stop trying to build carbon verison of vm.. and use cocoa instead.
the problem that cocoa version builds ok, but it crashing immediately when opening an image :(
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
Igor Stasenko wrote
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
I got it to work with (from http://forum.world.st/compiling-B3DAcceleratorPlugin-on-Lion-td3704915.html): #ifdef MAC_OS_X_VERSION_10_7 #define useTempMem (1L << 2) //This declaration is taken from old sdk definition. #endif
-- View this message in context: http://forum.world.st/building-VM-on-lion-tp4266021p4266708.html Sent from the Squeak VM mailing list archive at Nabble.com.
Hi All,
@Igor, instead of modifiying your default system compiler you can load the patch attached here:
http://forum.world.st/CMakeVMMaker-patch-tc4225050.html
It provides a CMakeConfig (CogMTCocoaIOSGCC42Config) which forces Gcc 4.2.
#Luc
2012/1/5 Sean P. DeNigris sean@clipperadams.com
Igor Stasenko wrote
ok, a little more progress.. now it barks with undefined 'useTempMem' symbol.
I got it to work with (from http://forum.world.st/compiling-B3DAcceleratorPlugin-on-Lion-td3704915.html ): #ifdef MAC_OS_X_VERSION_10_7 #define useTempMem (1L << 2) //This declaration is taken from old sdk definition. #endif
-- View this message in context: http://forum.world.st/building-VM-on-lion-tp4266021p4266708.html Sent from the Squeak VM mailing list archive at Nabble.com.
vm-dev@lists.squeakfoundation.org