Error installing on Marmalade

Options
PaulT
edited May 2012 in Native
I'm trying to update to Photon-Marmalade_v3-0-3-2_SDK after ignoring it for some time. I modified the MKB as per the instructions. I am getting the following error when I run the MKB.

C:\Marmalade\6.0\s3e\makefile_builder\mkb.py --open-with-wmlaunchpad C:\Users\Pa
ul\Documents\InfiniteCity\InfiniteCity.mkb
Building project: C:/Users/Paul/Documents/InfiniteCity/InfiniteCity.mkb
c:/users/paul/documents/infinitecity/common-cpp/common-cpp.mkf(43) : error: Can'
t find subproject 'Common-c'
Path is:
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libjpeg_6b
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libpng_1.2.34
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\zlib_1.2.4
c:\marmalade\6.0\examples
c:\marmalade\6.0\modules
c:\marmalade\6.0\extensions
c:\marmalade\6.0\extensions\legacy
c:\users\paul\documents\infinitecity\common-cpp
c:\users\paul\documents
c:\users\paul
Looking for one of:
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libjpeg_6b\Common-c.mkf

C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libjpeg_6b\Common-c\Com
mon-c.mkf
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libpng_1.2.34\Common-c.
mkf
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\libpng_1.2.34\Common-c\
Common-c.mkf
C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\zlib_1.2.4\Common-c.mkf

C:\Users\Paul\AppData\Roaming\Marmalade\packages\6.0.1\zlib_1.2.4\Common-c\Com
mon-c.mkf
c:\marmalade\6.0\examples\Common-c.mkf
c:\marmalade\6.0\examples\Common-c\Common-c.mkf
c:\marmalade\6.0\modules\Common-c.mkf
c:\marmalade\6.0\modules\Common-c\Common-c.mkf
c:\marmalade\6.0\extensions\Common-c.mkf
c:\marmalade\6.0\extensions\Common-c\Common-c.mkf
c:\marmalade\6.0\extensions\legacy\Common-c.mkf
c:\marmalade\6.0\extensions\legacy\Common-c\Common-c.mkf
c:\users\paul\documents\infinitecity\common-cpp\Common-c.mkf
c:\users\paul\documents\infinitecity\common-cpp\Common-c\Common-c.mkf
c:\users\paul\documents\Common-c.mkf
c:\users\paul\documents\Common-c\Common-c.mkf
c:\users\paul\Common-c.mkf
c:\users\paul\Common-c\Common-c.mkf
FAILED (error code=2)
Press any key to continue . . .


One question: where am I supposed to put the Photon directory? Back in 2011 when I was using Photon 6-point-something, I found I had to put Common-c, Common-cpp, Photon-C, and Photon-cpp in the same folder as my app itself in order to get it to work. I've tried that, and also tried keeping it in C:\Users\Paul\Documents\Photon-Marmalade_v3-0-3-2_SDK, but neither seems to work.

Comments

  • Kaiserludi
    Options
    Hi Paul.

    The libs have to be in the same relative paths to your app like they are to the demos in the SDK or you have to adjust the paths in your mkb to differ in the same way like the locations do.

    Have you checked, that our demos find the libs on your computer?
  • PaulT
    Options
    OK, the demos work fine ... and the old version of Photon works fine when I use those Common-c, Common-cpp, Photon-c, and Photon-cpp files ... but the new libs do not work at all. I seem to get the error no matter what I do, just by virtue of having the new Photon folders in the same spot as the old 6.x versions.

    If the MKB is the same, and it found them fine for the past 6 months, why is it suddenly failing to find the new ones when I copy up the Common-c, Common-cpp, Photon-c, and Photon-cpp folders?
  • Kaiserludi
    Options
    Just had a look myself at the .mkb's of helloWorld demo from 6.5.5 and from 3.0.3.2.

    old version:
    librarys
    {
    	"../../Common-cpp,Common-cpp"
    	"../../Photon-cpp,Photon-cpp"
    }
     
    librarypaths
    {
    	../../Common-cpp
    	../../Photon-cpp
    }
    

    current version:
    librarys
    {
    	"../../../Common-cpp,Common-cpp"
    	"../../../Photon-cpp,Photon-cpp"
    }
     
    librarypaths
    {
    	../../../Common-cpp
    	../../../Photon-cpp
    }
    

    Have you adjusted your .mkb accordingly?
  • PaulT
    Options
    I am actually just using

    librarys
    {
    "Common-cpp,Common-cpp"
    "Photon-cpp,Photon-cpp"
    }

    librarypaths
    {
    Common-cpp
    Photon-cpp
    }

    because I prefer to have my Common-* and Photon-* folders in the same folder as my project's MKB ... that's what worked with Photon 6.x, and it makes a lot more sense for me than putting them 3 folders above that.

    I mean, I suppose I could change my project from C:\Users\Paul\Documents\MyProject\ to C:\Users\Paul\Documents\Something\Something\Something\MyProject\ just for the sake of having it buried 3 folders deep, but I don't really see the point in that.
  • Kaiserludi
    Options
    Yes, you are right. It's not making any sense in your case to bury it 3 folders deep just for the sake of having it buried 3 folders deep.

    Can you try to add module_path="." to the options-group of your .mkb, please?
    This should make sure, that marmalade is searching for the .mkf-files in the right places even if you have the folders in the same location like your app.
  • PaulT
    Options
    Thanks, Kaiserludi -- it looks like that did the trick!
  • Kaiserludi
    Options
    :)