Recent

Author Topic: Fresh install: Cannot compile empty Application  (Read 3471 times)

penguiner

  • New member
  • *
  • Posts: 7
Fresh install: Cannot compile empty Application
« on: October 16, 2008, 12:05:21 pm »
Hi there,

I am absolute clueless how to use Lazarus under Linux (Debian testing)
After a fresh install of Lazarus, freepascal, the Lazarus and freepascal sources I start the ide which comes up with a new Application with an empty form.
When I now click "start" I get an error: Fatal: Can't find unit contnrs used by Masks
I would have expected that an IDE could compile an empty project without doing magic tricks. What's going wrong here?

I found contnrs.ppu in the following places on my PC:
/usr/lib/fpc/2.2.2/units/i386-linux/fcl-base/contnrs.ppu
/usr/lib/fpc/2.2.2/units/i386-win32/fcl-base/contnrs.ppu
/usr/share/fpcsrc/2.2.2/packages/fcl-base/src/contnrs.ppu

Which one should I take. I could put the i386-linux one into the include path. But what if I would like to compile the program for Windows?
I think there should be a kind of automagic depending on the target of the project, shouldn't it?

I get the same error when trying to create lazarus itself (I would like to have the gtk2 or qt interface)

Any ideas?

Some fatcs:
For the installation of Lazarus I created a own local repository where I dumped every lazarus and fpc DEBs found on sourceforge (including the sources) and installed that with aptitude.

I find it a bit strange that after so many years of development even the simples things doesn't seem to work.

Or am I just missing something?

bobo

  • Full Member
  • ***
  • Posts: 171
Fresh install: Cannot compile empty Application
« Reply #1 on: October 17, 2008, 12:58:06 am »
Looks like a version mismatch problem between FPC and Lazarus. Similar to http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_have_installed_the_binary_version.2C_but_when_compiling_a_simple_project.2C_lazarus_gives:_Fatal:_Can.27t_find_unit_CONTROLS


I had the same problem a few weeks ago on Ubuntu and was able to compile and install from source. First FPC then Lazarus. Took a while to figure everything out, but it worked after some tries.

On Linux GTK2 is the default widgetset since 0.9.26.

Denfinitely much bigger pain in the butt to make it work on Linux than on Windows.

 

TinyPortal © 2005-2018