Xcode 4.3 Lion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Xcode 4.3 Lion

Guido Chari
 
Hi guys,

I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.

I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.

Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment. 

But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

I'm newie on mac so i don't know very well what this nib file is. 

Is this a commom topic? How can i solve it?

Cheers,
Guido. 
Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Igor Stasenko

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:

>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
and how you build VM?


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

RE: Xcode 4.3 Lion

philippeback
 
I managed to build the ios vm with Xcode 4.3 on Lion.

Will see what the OSX version gives. Cmake incantations and remove commit
info needed for making things work.

Phil

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Igor
Stasenko
Sent: lundi 4 juin 2012 18:27
To: Squeak Virtual Machine Development Discussion
Subject: Re: [Vm-dev] Xcode 4.3 Lion

 
On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please
forgive me if the topic i will asked is already answer and i skimmed it
cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug
information. I have latest version of the git tree, the vmoscog and the
cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to
solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory
is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to
take them from other places but not the mainmenu.nib. So i manage to
compile, but when i try yo execute i have a message saying that mainmenu.nib
is not found.

where you downloaded sources from?
and how you build VM?


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Igor Stasenko
 
On 4 June 2012 18:37, Philippe Back (High Octane) <[hidden email]> wrote:
>
> I managed to build the ios vm with Xcode 4.3 on Lion.
>
> Will see what the OSX version gives. Cmake incantations and remove commit
> info needed for making things work.

why you need to remove commit info?

>
> Phil
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Igor
> Stasenko
> Sent: lundi 4 juin 2012 18:27
> To: Squeak Virtual Machine Development Discussion
> Subject: Re: [Vm-dev] Xcode 4.3 Lion
>
>
> On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>>
>> Hi guys,
>>
>> I'm new at Mac. I used to compile the vm on Unix environments. So please
> forgive me if the topic i will asked is already answer and i skimmed it
> cause i was not using that environment.
>>
>> I'm having problems compiling the vm. I need a NBCog vm with debug
> information. I have latest version of the git tree, the vmoscog and the
> cmake.
>>
>> Generating and compiling the Cocoa Cog i have lot of errors i manage to
> solve. Mostly about setting the compilation environment.
>>
>> But then i have problems with resources not found. My resources directory
> is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to
> take them from other places but not the mainmenu.nib. So i manage to
> compile, but when i try yo execute i have a message saying that mainmenu.nib
> is not found.
>
> where you downloaded sources from?
> and how you build VM?
>
>
>>
>> I'm newie on mac so i don't know very well what this nib file is.
>>
>> Is this a commom topic? How can i solve it?
>>
> For building NB+Cog VM
> see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
> or look at jenkins jobs to see how we doing that:
> https://ci.lille.inria.fr/pharo/view/Cog/
>
>
>> Cheers,
>> Guido.
>>
>
>
>
> --
> Best regards,
> Igor Stasenko.
>



--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
In reply to this post by Igor Stasenko
 


2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

EstebanLM
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.


Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
 
That files in my environment are symilnks to the llvc compiler. I read that they are not compatible with CogVM. I'm compiling with /opt/local/bin/gcc-apple-4.2...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.




Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

EstebanLM
 
installed with macports? 
that's probably your problem... you better try with the mac gnu one... 
you can install it using: https://github.com/kennethreitz/osx-gcc-installer




On Jun 4, 2012, at 7:42 PM, Guido Chari wrote:

That files in my environment are symilnks to the llvc compiler. I read that they are not compatible with CogVM. I'm compiling with /opt/local/bin/gcc-apple-4.2...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.





Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
In reply to this post by Guido Chari
 
Btw...

First on the image the method plistKeys includes a reference to NSMainNibFile. This finally links to MainMenu.nib. I don't have that file on my repository recently updated. Anyone have this file on his repository? Anyone has a configuration that doesn't make a configuration that links to that file?

This is the part of the CMakeLists.txt that is automatically generated that is bothering perhaps..

set(resourceDir "/Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder")

Here i had to add nscogbuild because that is the url in my repository.

set(resources "${resourceDir}/Squeak VM.r" 
"${resourceDir}/Cog.icns 
"${resourceDir}/Squeak.icns" "${resourceDir}/SqueakChanges.icns" "${resourceDir}/SqueakPlugin.icns" "${resourceDir}/SqueakScript.icns" "${resourceDir}/SqueakGeneric.icns" "${resourceDir}/SqueakProject.icns" "${resourceDir}/SqueakSources.icns")
set(resourcesLocaleEnglish "${resourceDir}/English.lproj/InfoPlist.strings" 
${resourceDir}/English.lproj/MainMenu.nib")  

this last one is the line i'm missing. I can compile by commenting that line but i'm not able to execute the vm then



2012/6/4 Guido Chari <[hidden email]>
That files in my environment are symilnks to the llvc compiler. I read that they are not compatible with CogVM. I'm compiling with /opt/local/bin/gcc-apple-4.2...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.





Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
In reply to this post by EstebanLM
 
yes macports.

Ok I will try the one you suggest...But what about my last mail about the resource mainmenu.nib?

2012/6/4 Esteban Lorenzano <[hidden email]>
 
installed with macports? 
that's probably your problem... you better try with the mac gnu one... 
you can install it using: https://github.com/kennethreitz/osx-gcc-installer




On Jun 4, 2012, at 7:42 PM, Guido Chari wrote:

That files in my environment are symilnks to the llvc compiler. I read that they are not compatible with CogVM. I'm compiling with /opt/local/bin/gcc-apple-4.2...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.







Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Sean P. DeNigris
Administrator
In reply to this post by EstebanLM
EstebanLM wrote
installed with macports?
that's probably your problem...
I don't think so. At least it works in Xcode 4.2. Simple instructions on getting the macports version to work are at http://seandenigris.com/blog/?p=931
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

philippeback
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges

Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
 
I installe the compilers Esteban suggest.

this is my cmake .

-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...

2012/6/4 [hidden email] <[hidden email]>
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges



Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

EstebanLM
 
this part: /nscogbuild/macbuild/ sound suspicious

should be just one



On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:

I installe the compilers Esteban suggest.

this is my cmake .

-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...

2012/6/4 [hidden email] <[hidden email]>
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges




Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
 
Well.

under the directory macbuild i have nothing, no files.

On my repository directory i have this:

git remote -v
origin [hidden email]:~charig/cogvm/charigs-blessed.git (fetch)
origin [hidden email]:~charig/cogvm/charigs-blessed.git (push)

git pull cog master
 * branch            master     -> FETCH_HEAD
Already up-to-date.


What am i failing with?

2012/6/4 Esteban Lorenzano <[hidden email]>
 
this part: /nscogbuild/macbuild/ sound suspicious

should be just one



On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:

I installe the compilers Esteban suggest.

this is my cmake .

-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...

2012/6/4 [hidden email] <[hidden email]>
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges






Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

EstebanLM
 
ups... my failt... is ok, nscogbuild/macbuild should exist. 
And it should have some file-contents too... it is empty?


On Jun 4, 2012, at 8:48 PM, Guido Chari wrote:

Well.

under the directory macbuild i have nothing, no files.

On my repository directory i have this:

git remote -v
origin [hidden email]:~charig/cogvm/charigs-blessed.git (fetch)
origin [hidden email]:~charig/cogvm/charigs-blessed.git (push)

git pull cog master
 * branch            master     -> FETCH_HEAD
Already up-to-date.


What am i failing with?

2012/6/4 Esteban Lorenzano <[hidden email]>
 
this part: /nscogbuild/macbuild/ sound suspicious

should be just one



On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:

I installe the compilers Esteban suggest.

this is my cmake .

-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...

2012/6/4 [hidden email] <[hidden email]>
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges







Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

EstebanLM
In reply to this post by Guido Chari
 
mmm... now I understand it. You have an absent file (I don't know why... maybe Igor can explain that)
you can try copying the structure at: iosbuild/resources/English.lproj and see what happens... not sure it is going to work, but it worths a try.

On Jun 4, 2012, at 7:53 PM, Guido Chari wrote:

Btw...

First on the image the method plistKeys includes a reference to NSMainNibFile. This finally links to MainMenu.nib. I don't have that file on my repository recently updated. Anyone have this file on his repository? Anyone has a configuration that doesn't make a configuration that links to that file?

This is the part of the CMakeLists.txt that is automatically generated that is bothering perhaps..

set(resourceDir "/Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder")

Here i had to add nscogbuild because that is the url in my repository.

set(resources "${resourceDir}/Squeak VM.r" 
"${resourceDir}/Cog.icns 
"${resourceDir}/Squeak.icns" "${resourceDir}/SqueakChanges.icns" "${resourceDir}/SqueakPlugin.icns" "${resourceDir}/SqueakScript.icns" "${resourceDir}/SqueakGeneric.icns" "${resourceDir}/SqueakProject.icns" "${resourceDir}/SqueakSources.icns")
set(resourcesLocaleEnglish "${resourceDir}/English.lproj/InfoPlist.strings" 
${resourceDir}/English.lproj/MainMenu.nib")  

this last one is the line i'm missing. I can compile by commenting that line but i'm not able to execute the vm then



2012/6/4 Guido Chari <[hidden email]>
That files in my environment are symilnks to the llvc compiler. I read that they are not compatible with CogVM. I'm compiling with /opt/local/bin/gcc-apple-4.2...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
perhaps: 
cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 .


On Jun 4, 2012, at 7:30 PM, Guido Chari wrote:



2012/6/4 Igor Stasenko <[hidden email]>

On 4 June 2012 16:20, Guido Chari <[hidden email]> wrote:
>
> Hi guys,
>
> I'm new at Mac. I used to compile the vm on Unix environments. So please forgive me if the topic i will asked is already answer and i skimmed it cause i was not using that environment.
>
> I'm having problems compiling the vm. I need a NBCog vm with debug information. I have latest version of the git tree, the vmoscog and the cmake.
>
> Generating and compiling the Cocoa Cog i have lot of errors i manage to solve. Mostly about setting the compilation environment.
>
> But then i have problems with resources not found. My resources directory is nscogbuild. It hasn't cog.icns, mainmenu.nib and squeak vm.r. I manage to take them from other places but not the mainmenu.nib. So i manage to compile, but when i try yo execute i have a message saying that mainmenu.nib is not found.

where you downloaded sources from?
 
and how you build VM?
generate sources from NSCogCocoaIosConfig (i added the debug info), cmake, make...

 


>
> I'm newie on mac so i don't know very well what this nib file is.
>
> Is this a commom topic? How can i solve it?
>
For building NB+Cog VM
see mariano's blog for details (http://code.google.com/p/cog/wiki/Guide),
or look at jenkins jobs to see how we doing that:
https://ci.lille.inria.fr/pharo/view/Cog/


> Cheers,
> Guido.
>



--
Best regards,
Igor Stasenko.






Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
In reply to this post by EstebanLM
 
It has files, but it doesn't have mainmenu.nib, the one that is breaking my cmake...

2012/6/4 Esteban Lorenzano <[hidden email]>
 
ups... my failt... is ok, nscogbuild/macbuild should exist. 
And it should have some file-contents too... it is empty?


On Jun 4, 2012, at 8:48 PM, Guido Chari wrote:

Well.

under the directory macbuild i have nothing, no files.

On my repository directory i have this:

git remote -v
origin [hidden email]:~charig/cogvm/charigs-blessed.git (fetch)
origin [hidden email]:~charig/cogvm/charigs-blessed.git (push)

git pull cog master
 * branch            master     -> FETCH_HEAD
Already up-to-date.


What am i failing with?

2012/6/4 Esteban Lorenzano <[hidden email]>
 
this part: /nscogbuild/macbuild/ sound suspicious

should be just one



On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:

I installe the compilers Esteban suggest.

this is my cmake .

-- Configuring done
CMake Error at CMakeLists.txt:41 (add_executable):
  Cannot find source file:

    /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...

2012/6/4 [hidden email] <[hidden email]>
 
You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.

2012/6/4 Sean P. DeNigris <[hidden email]>


EstebanLM wrote
>
> installed with macports?
> that's probably your problem...

I don't think so. At least it works in Xcode 4.2. Simple instructions on
getting the macports version to work are at
http://seandenigris.com/blog/?p=931

--
View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
Sent from the Squeak VM mailing list archive at Nabble.com.




--
Philippe Back
"Helping you hit the top 3 outcomes you really want to achieve"

Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges









Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Igor Stasenko
In reply to this post by Guido Chari

I got one here:

[blessed]: find . -name "MainMenu.nib"
./macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

after update:
[blessed]: git pull
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 140 (delta 96), reused 0 (delta 0)
Receiving objects: 100% (140/140), 7.85 MiB | 483 KiB/s, done.
Resolving deltas: 100% (96/96), completed with 29 local objects.
>From gitorious.org:cogvm/blessed
   902ffac..744bfe9  master     -> origin/master
Updating 902ffac..744bfe9
Checking out files: 100% (14/14), done.
Fast-forward
 codegen-scripts/LoadVMMaker.st                     |    2 +-
 codegen-scripts/LoadVMMaker.st.orig                |   19 -
 iosbuild/resources/iPhone.changes                  |   68 +-
 iosbuild/resources/iPhone.image                    |  Bin 9061168 ->
19786516 bytes
 .../ProjectBuilder/English.lproj/MainMenu.xib      |    4 +-
 platforms/Cross/vm/sqAtomicOps.h                   |    8 +-
 .../Classes/sqSqueakFileDirectoryInterface.m       |    2 +-
 .../iOS/vm/OSX/sqSqueakOSXFileDirectoryInterface.m |   14 +-
 platforms/iOS/vm/OSX/sqSqueakOSXNSView.m           |   19 +-
 .../SqueakPureObjcCogVM.xcodeproj/project.pbxproj  |    9 +-
 platforms/iOS/vm/iPhone/sqDummyaio.c               |    6 +
 .../sqUnixInternetConfiguration.c                  |  128 ++
 platforms/unix/plugins/SocketPlugin/sqUnixSocket.c |  872 +++++++++++--
 platforms/unix/vm-display-X11/sqUnixX11.c          | 1370 +-------------------
 14 files changed, 1078 insertions(+), 1443 deletions(-)
 delete mode 100644 codegen-scripts/LoadVMMaker.st.orig
 create mode 100644
platforms/unix/plugins/InternetConfigPlugin/sqUnixInternetConfiguration.c
[blessed]: top
[blessed]: find . -name "MainMenu.nib"
./macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

so, it is still there..

and someone still keeps image in repo..(i even know who ;):

 iosbuild/resources/iPhone.changes                  |   68 +-
 iosbuild/resources/iPhone.image                    |  Bin 9061168 ->
19786516 bytes



On 4 June 2012 20:48, Guido Chari <[hidden email]> wrote:

>
> Well.
>
> under the directory macbuild i have nothing, no files.
>
> On my repository directory i have this:
>
> git remote -v
> cog git://gitorious.org/cogvm/blessed.git (fetch)
> cog git://gitorious.org/cogvm/blessed.git (push)
> origin [hidden email]:~charig/cogvm/charigs-blessed.git (fetch)
> origin [hidden email]:~charig/cogvm/charigs-blessed.git (push)
>
> git pull cog master
> From git://gitorious.org/cogvm/blessed
>  * branch            master     -> FETCH_HEAD
> Already up-to-date.
>
>
> What am i failing with?
>
> 2012/6/4 Esteban Lorenzano <[hidden email]>
>>
>>
>> this part: /nscogbuild/macbuild/ sound suspicious
>>
>> should be just one
>>
>>
>>
>> On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:
>>
>> I installe the compilers Esteban suggest.
>>
>> this is my cmake .
>>
>> -- Configuring done
>> CMake Error at CMakeLists.txt:41 (add_executable):
>>   Cannot find source file:
>>
>>     /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib
>>
>>   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
>>   .hxx .in .txx
>>
>>
>> If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...
>>
>> 2012/6/4 [hidden email] <[hidden email]>
>>>
>>>
>>> You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.
>>>
>>> 2012/6/4 Sean P. DeNigris <[hidden email]>
>>>>
>>>>
>>>>
>>>> EstebanLM wrote
>>>> >
>>>> > installed with macports?
>>>> > that's probably your problem...
>>>>
>>>> I don't think so. At least it works in Xcode 4.2. Simple instructions on
>>>> getting the macports version to work are at
>>>> http://seandenigris.com/blog/?p=931
>>>>
>>>> --
>>>> View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
>>>> Sent from the Squeak VM mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> Philippe Back
>>> "Helping you hit the top 3 outcomes you really want to achieve"
>>>
>>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:
>>> http://philippeback.be
>>>
>>> High Octane SPRL
>>> rue cour Boisacq 101
>>> 1301 Bierges
>>>
>>>
>>
>>
>>
>
>



--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

Re: Xcode 4.3 Lion

Guido Chari
 
Ups, don't know why git pull doesn't update my broken directory.

I make a new checkout of macbuild directory and now everything goes well.

Thanks..

2012/6/4 Igor Stasenko <[hidden email]>

I got one here:

[blessed]: find . -name "MainMenu.nib"
./macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

after update:
[blessed]: git pull
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 140 (delta 96), reused 0 (delta 0)
Receiving objects: 100% (140/140), 7.85 MiB | 483 KiB/s, done.
Resolving deltas: 100% (96/96), completed with 29 local objects.
>From gitorious.org:cogvm/blessed
  902ffac..744bfe9  master     -> origin/master
Updating 902ffac..744bfe9
Checking out files: 100% (14/14), done.
Fast-forward
 codegen-scripts/LoadVMMaker.st                     |    2 +-
 codegen-scripts/LoadVMMaker.st.orig                |   19 -
 iosbuild/resources/iPhone.changes                  |   68 +-
 iosbuild/resources/iPhone.image                    |  Bin 9061168 ->
19786516 bytes
 .../ProjectBuilder/English.lproj/MainMenu.xib      |    4 +-
 platforms/Cross/vm/sqAtomicOps.h                   |    8 +-
 .../Classes/sqSqueakFileDirectoryInterface.m       |    2 +-
 .../iOS/vm/OSX/sqSqueakOSXFileDirectoryInterface.m |   14 +-
 platforms/iOS/vm/OSX/sqSqueakOSXNSView.m           |   19 +-
 .../SqueakPureObjcCogVM.xcodeproj/project.pbxproj  |    9 +-
 platforms/iOS/vm/iPhone/sqDummyaio.c               |    6 +
 .../sqUnixInternetConfiguration.c                  |  128 ++
 platforms/unix/plugins/SocketPlugin/sqUnixSocket.c |  872 +++++++++++--
 platforms/unix/vm-display-X11/sqUnixX11.c          | 1370 +-------------------
 14 files changed, 1078 insertions(+), 1443 deletions(-)
 delete mode 100644 codegen-scripts/LoadVMMaker.st.orig
 create mode 100644
platforms/unix/plugins/InternetConfigPlugin/sqUnixInternetConfiguration.c
[blessed]: top
[blessed]: find . -name "MainMenu.nib"
./macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib

so, it is still there..

and someone still keeps image in repo..(i even know who ;):

 iosbuild/resources/iPhone.changes                  |   68 +-
 iosbuild/resources/iPhone.image                    |  Bin 9061168 ->
19786516 bytes



On 4 June 2012 20:48, Guido Chari <[hidden email]> wrote:
>
> Well.
>
> under the directory macbuild i have nothing, no files.
>
> On my repository directory i have this:
>
> git remote -v
> cog git://gitorious.org/cogvm/blessed.git (fetch)
> cog git://gitorious.org/cogvm/blessed.git (push)
> origin [hidden email]:~charig/cogvm/charigs-blessed.git (fetch)
> origin [hidden email]:~charig/cogvm/charigs-blessed.git (push)
>
> git pull cog master
> From git://gitorious.org/cogvm/blessed
>  * branch            master     -> FETCH_HEAD
> Already up-to-date.
>
>
> What am i failing with?
>
> 2012/6/4 Esteban Lorenzano <[hidden email]>
>>
>>
>> this part: /nscogbuild/macbuild/ sound suspicious
>>
>> should be just one
>>
>>
>>
>> On Jun 4, 2012, at 8:37 PM, Guido Chari wrote:
>>
>> I installe the compilers Esteban suggest.
>>
>> this is my cmake .
>>
>> -- Configuring done
>> CMake Error at CMakeLists.txt:41 (add_executable):
>>   Cannot find source file:
>>
>>     /Users/guidochari/Documents/Desarrollo/Smalltalk/Vms/Cog/charigs-blessed/nscogbuild/macbuild/resources/ProjectBuilder/English.lproj/MainMenu.nib
>>
>>   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
>>   .hxx .in .txx
>>
>>
>> If i comment this line i manage to compile but as i said my executable fail to start because of this file missing under it resources directory...
>>
>> 2012/6/4 [hidden email] <[hidden email]>
>>>
>>>
>>> You can install XCode 4.2 side by side with 4.3 and 4.2 has gcc.
>>>
>>> 2012/6/4 Sean P. DeNigris <[hidden email]>
>>>>
>>>>
>>>>
>>>> EstebanLM wrote
>>>> >
>>>> > installed with macports?
>>>> > that's probably your problem...
>>>>
>>>> I don't think so. At least it works in Xcode 4.2. Simple instructions on
>>>> getting the macports version to work are at
>>>> http://seandenigris.com/blog/?p=931
>>>>
>>>> --
>>>> View this message in context: http://forum.world.st/Xcode-4-3-Lion-tp4633153p4633195.html
>>>> Sent from the Squeak VM mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>> --
>>> Philippe Back
>>> "Helping you hit the top 3 outcomes you really want to achieve"
>>>
>>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: [hidden email] | Web: http://philippeback.eu | Blog:
>>> http://philippeback.be
>>>
>>> High Octane SPRL
>>> rue cour Boisacq 101
>>> 1301 Bierges
>>>
>>>
>>
>>
>>
>
>



--
Best regards,
Igor Stasenko.