Hi there, I am trying to build a minimal interpreter VM. I have B3DAcceleratorPlugin in the Plugins Not Built pane in the VMMakerTool. Why is the build trying to find the (Open)GL header file? [This happens under Linux on x86-64 and on ARM] ======== [ 26%] Building C object CMakeFiles/squeakvm.dir/vm/sqUnixMain.c.o In file included from /home/kend/SqueakVM/platforms/unix/vm/SqDisplay.h:16:0, from /home/kend/SqueakVM/platforms/unix/vm/sqUnixMain.c:115: /home/kend/SqueakVM/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.h:27:7: error: #error *** cannot find gl.h # error *** cannot find gl.h ^ ======== Thanks much. -KenD
-KenD
|
You don’t see it In the GUI. Do you see B3DAcceleratorPlugin in /home/kend/SqueakVM/src/plugins.ext? I expect you will, as it’s clearly trying to compile it.
Because it’s trying to build the B3DAcceleratorPlugin. I think regardless of this plugin, you’ll need gl.h. You’ll need a graphics library. I usually just execute the following in Linux and forget about it. (See the last line) apt-get install lib32z1-dev -y # install 32-bit libs apt-get install libsm-dev:i386 # for Squeak vm apt-get install libglu1-mesa:i386 # X11 for Squeak apt-get install uuid-dev:i386 # for Squeak vm apt-get install mesa-common-dev:i386 # add gl.h I always say this, but this is fun: FWIW, Chris
|
> On 07-01-2016, at 7:52 PM, Chris Cunnington <[hidden email]> wrote: > > >> On Jan 7, 2016, at 9:53 PM, KenD <[hidden email]> wrote: > >> Why is the build trying to find the (Open)GL header file? > > Because it’s trying to build the B3DAcceleratorPlugin. I wouldn’t want to swear to it but I think the vm-display-X11 module also looks for it, but the config really ought to be checking if you have the headers etc. tim -- tim Rowledge; [hidden email]; http://www.rowledge.org/tim 29A, the hexadecimal of the Beast. |
In reply to this post by KenDickey
On Thu, Jan 07, 2016 at 06:53:58PM -0800, KenD wrote: > > Hi there, > > I am trying to build a minimal interpreter VM. Just in case you're not aware of it, try "VMMakerTool minimal" for a quick way to generate a minimal set of ./src code. > > I have B3DAcceleratorPlugin in the Plugins Not Built pane in the VMMakerTool. > > Why is the build trying to find the (Open)GL header file? > > [This happens under Linux on x86-64 and on ARM] > Use the --without-gl option when you run configure: --without-gl disable everything that depends on OpenGL There is a --help option to configure that gives more information: $ ../platforms/unix/cmake/configure --help Dave |
In reply to this post by KenDickey
Thanks all for the help! Interesting, installing the mesa libs did not yield gl.h, but configuring --without-gl did the trick. Sorry for the basic questions. I use make/makefiles rarely (as in twice in a few years). Unfortunately, I will probably have more questions. I am getting a minimal interpreter vm up in Linux as a baseline to taking a shot at getting the VM up in Chrome's PNaCl (Portable Native Client). I did find yoshikiohshima/NaClSqueak. Still grokking the PNaCl docs, but I expect to be pushing the marble up the hill with my nose any day now. Thanks again, -KenD
-KenD
|
Free forum by Nabble | Edit this page |