Recent

Author Topic: OSX Project loosing Dependencies  (Read 6367 times)

idc65

  • Jr. Member
  • **
  • Posts: 50
OSX Project loosing Dependencies
« on: June 21, 2013, 09:33:28 pm »
Hi,

I am trying to compile project developed on windows, however i have a few problems
lazarus downloaded via fink, installed and working.

copied project to mac, open project check project  dependencies all  are there.
first problem, when i change a few things and goto save get error cannot save  proj.lpi
once i get that message second problem happens if i check project dependecies they are now all gone.

if i exit lazarus and restart all dependencies are still gone.

lazarus 1.0.08  fpc 2.6.2

Any ideas, as I going around in circles.

-WG is not checked, i have create application bundle, i do not get options for target cpu etc.
osx 10.6.3 xcode 3.2.3.

Any ideas, am I doing something daft?

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: OSX Project loosing Dependencies
« Reply #1 on: June 21, 2013, 09:41:00 pm »
I do not completely understand, what you mean by dependencies? Can you explain?

Maybe something went wrong during the transfer of the files. For example the file permissions are not correct, i.e. you do not have write permission. Another issue might come from the difference in line endings. It is CRLF on Windows and LF on Mac OS X and unix. Can you check this? If it still does not work, can you send me the project?
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: OSX Project loosing Dependencies
« Reply #2 on: June 21, 2013, 09:56:29 pm »
Hi,

I have full read/write permissions when they are on mac and pc.

If I open project, then project Inspector, it list all the dependencies the application requires.

If I then try adjusting anything or even try to compile it, it will pop up saying cannot write project.lpi file [ retry, abort].

If I now go to Project inspector all the dependencies have vanished, even LCL has gone.

If I restart the dependencies are still gone. The only way to get them listed is to re-copy the source code.

The Project code is far too big to email, even zipped is in excess of 500MB.

If I manually add in the dependencies then the project will compile.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: OSX Project loosing Dependencies
« Reply #3 on: June 21, 2013, 10:01:06 pm »
hm. no real idea, what it could be. can you explicitly check the permission of the lpi file? with "ls -alh YourProjectName.lpi"? Can you check with the Console, whether some error messages show up in the logs?
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: OSX Project loosing Dependencies
« Reply #4 on: June 21, 2013, 10:13:37 pm »
Hi

Thanks for your help.

I have checked permissions and indeed have full writes to all files in project.

The Console Log, just tells me compiling, then next error is cannot find interfaces ....... LCL      etc.

What is odd, i added a //remark in .lpi file, it gave same error unable to write .lpi
and all dependencies vanished.
Restarted MAC
OPen Project and the //remark had indeed been saved.
but still dependencies had vanished.

It is an odd one, over the past week i have tried different version of lazarus, but they all give the same result.

The only thing that may be causing an issue, but have not found any post that suggest it could be a problem, is the PC is running Lazarus 1.1 FPC 2.7.1.

Cheers


kamischi

  • Full Member
  • ***
  • Posts: 177
Re: OSX Project loosing Dependencies
« Reply #5 on: June 21, 2013, 10:22:16 pm »
The Console Log, just tells me compiling, then next error is cannot find interfaces ....... LCL      etc.

...

It is an odd one, over the past week i have tried different version of lazarus, but they all give the same result.


"cannot find interfaces ..." sounds suspiciously like you have some kind of a bad mix of stuff as as remains of the different version of lazarus, in particular if you tried fink as well as the disk images. Fink installed stuff lives in /sw/..., whereas stuff from disk images lives in /usr/local. In addition, there is a .lazarus directory in your home directory, which might keep some preferences. Could this be the case?

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: OSX Project loosing Dependencies
« Reply #6 on: June 21, 2013, 10:32:45 pm »
Hi,

Before installing different versions, previous versions were completely removed including the .lazarus folder or as in the case of fink the /sw folders.

I think this is the recommended way of installing/upgrading lazarus, as have always completely removed pc versions before upgrading, then installing /compiling and rebuilding lazarus after each package has been added in.

On wednesday I did a fresh OSX install on the MAC prior to installing the fink version, but had the same result.

It is ibvuosly not a common problem, as have spent many hours getting square eyes whilst goggling for all kinds of combination of words and phrases to track the problem.

I was just kinda hoping that someone had come across the odd behavior of dependencies vanishing.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: OSX Project loosing Dependencies
« Reply #7 on: June 21, 2013, 10:40:29 pm »
I still do not understand, why interfaces and the lcl are not found after a fresh installation. This should definitely not happen.

I do not believe that it should make a difference, but my Mac OS X and Xcode are newer, i.e. 10.6.8 and 3.2.6.

Can you reproduce with a stripped down project?

Mischi

Can we meet on irc, channel #lazarus-ide on irc.freenode.net?
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

 

TinyPortal © 2005-2018