FAQ    <<--BACK                           HOME                     
side4linux, a simple integrated development environment!

Frequently Asked Questions - Building Projects

(click on Question to place description at top of screen and use your Browsers "Go Back one page" button to return here.)

IDE crashes on clicking Build when using the 'C' compiler!

If the IDE crashes on clicking 'Build' then reopen the Project and read the 'output.txt' file in the top directory of the Project for clues to what caused the crash! You may wish to just edit the source file responsible and issue the 'make' command from a terminal in the top directory of your Project until you fix the problem. Look for assigning non-existent addresses or badly formed arrays, particularly strings  etc. in your source code (most likely cause) if this does not help then leave a message in the forums on the SourceForge Project site.

I can run a Tool but I cannot build it because of 'missing files' error message!

Yes, say you are trying to build the Tool 'Bdesign3d' in the GNOMECGL directory. You open the Bdesign3d Project and click on Build and get the following error messages in the 'Output Window',

gdkgl:c25:19:error: GL/gl.h: No such file or directory
gdkgl:c26:19:error: GL/glx.h: No such file or directory

This probably means that either,
  1. You have not tried 'Build>Autogen Project', 'Build>Configure Project', 'Build>Make Clean' or,
  2. You have done '#include "somefile.h"' instead of '#include <somefile.h>' ( or the other way round, or you have not put it in yet!)
  3. You have written and saved the 'c' and 'h' files but have not yet added them to the Project. If so click on 'Project>Add file to Project' and add it and accept Project Rebuild.
  4. You do not have the 'development' packages loaded such as 'someLibrary-dev' even though you must have the runtime library 'someLibrary' loaded ( you may need to download the source code, './configure', 'make', 'make install' it. ) or,
  5. Your includes are not in /usr/include or /usr/local/include or,
  6. Your libraries are not in /usr/lib or /usr/local/lib in which case,
  7. download and compile from source into /usr e.g.  ./configure --prefix=/usr/, make, make install
  8. Debian looks for libraries in /usr and not /usr/local so you need to rebuild your libraries etc. firstly by issuing ./configure --prefix=/usr
  9. This works with the Autogen scripts as well e.g. sh Autogen.sh --prefix=/usr, make, make install.
  10. side4linux must have a complete Gnome build environment as follows,
          autotools                  autoconf_2.61-4_all.deb
libglibc2-dev libglib2.0-dev_2.12.4-2_i386.deb
cairo-dev libcairo2-dev_1.2.4-4_i386.deb
pango-1-dev libpango1.0-dev_1.14.8-5_i386.deb
glib2-dev libglib2.0-dev_2.12.4-2_i386.deb
gtk2-dev libgtk2.0-dev_2.8.20-7_i386.deb
freetype2 libfreetype6-dev_2.2.1-5_i386.deb
gawk or mawk mawk_1.3.3-11_i386.deb
flex flex_2.5.33-11_i386.deb
bison bison_1%3a2.3.dfsg-4_i386.deb
libgmp-dev libgmp3-dev_2%3a4.2.1+dfsg-4_i386.deb
libmpfr-dev libmpfr-dev_2.2.0.dfsg.1-8_i386.deb
libncurses5-dev libncurses5-dev_5.5-5_i386.deb
tcl-dev tcl8.4-dev_8.4.12-1.1_i386.deb
tk-dev tk8.4-dev_8.4.12-1_i386.deb
xlibs-dev libx11-dev_2%3a1.0.3-7_i386.deb
x-dev x11proto-core-dev_7.0.7-2_all.deb
tar tar_1.16-2_i386.deb
bunzip2 bzip2

G-code compiler does strange things when I click on Build in an ANCA Project!

Make SURE that the 'ANC' file is current in the Notebook before attempting a Build !! This can be done by left clicking on the text with the mouse prior to clicking Build. This is necessary because unlike other Project Types there can be more than one 'Primary Project Build File' (one item being machined may have many operations so there are usually many 'ANC' files to select from).

I cannot Build the Sample Projects at ALL !!

Yes the 'GNOMEC' and 'GNOMECGL' Projects shipped with the side4linux distribution are mainly just the source files, done to keep the TAR package as small as possible for the benefit of dialup users. If you just click on Build you can expect error messages about missing files needed to build the Project or just a blank output window and Project Build Failed message. To re-establish all of the build files you need to do a one time rebuild of each Project as follows,
  1. Open the Glade program 'Project>Edit Project>Edit Project visuals with Glade' then,
  2. Click on 'Build' in the Glade window and close Glade then,
  3. Click on 'Build' to rebuild the 'Deps' directory and the 'Tool' program.
If the Projects are of type 'CLC' then try the following instead,
  1. Build>Autogen Project
  2. Build>Configure Project
  3. Build>Make Project
From now on you should get by with just clicking the 'Build' button on the Toolbar.

I have tried to Autogen the Project but I get a 'lib/cpp' error!

This usually means that while you have libc6++ dynamic files loaded you may not have loaded the development files e.g. 'libc6++-dev' or similar. You need the development files because they contain the source code and header files that the compiler needs to build your program.

Project 'Build' fails because of 'mv: cannot stat `.deps/SomeLanguageFile.Tpo': No such file or directory'

This means that a language dependedent file has not been built either because it was left out of the 'side4linux' package to save space (e.g. 'Tools' do not have the '.dep' directories when shipped) or beacause there was a need for a two step build and you have only compeleted one step.

If it is just a case of failure on clicking 'Build' then do a second click on 'Build'. If that does not do the trick then click on 'Build>Autogen Project' followed by another click on 'Build'.
If however it is a case of a 'Tool' that you need to rebuild for the first time then do a complete Tool rebuild by,
  1. Open the Glade program 'Project>Edit Project>Edit Project visuals with Glade' then,
  2. Click on 'Build' in the Glade window and close Glade then,
  3. Click on 'Build' to rebuild the 'Deps' directory and the 'Tool' program.

I want to 'Build' a 'Tool' but there are files missing from the Distribution!

Same problem as above, no '.deps' directory. We left this directory out to save space in the 'side4linux' package for the benefit of dialup users.
Use the three step process below to rebuild any 'Tool'. 'Tools' may need to be rebuilt to work if your computer is way different from ours!
  1. Open the Glade program 'Project>Edit Project>Edit Project visuals with Glade' then,
  2. Click on 'Build' in the Glade window and close Glade then,
  3. Click on 'Build' to rebuild the 'Deps' directory and the 'Tool' program.