Build errors

Tags ( )

Sorry if this is an elementary question, but I always get the same error when I try to build the mori source:

Building target “MIDocument” of project “Mori” — (2 errors)
cd /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori
/usr/bin/gcc-4.0 -x objective-c -arch ppc -pipe -Wno-trigraphs -fobjc-exceptions -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -mtune=G5 -mmacosx-version-min=10.4 -I/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/build/Mori.build/Default/MIDocument.build/MIDocument.hmap -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -F/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/build/Default -F/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori -I/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/build/Default/include -I/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/build/Mori.build/Default/MIDocument.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.502/SharedPrecompiledHeaders/AppKit-dvkxqzmqkzbxthbpnrodsejjseyg/AppKit.h -c /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.m -o /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/build/Mori.build/Default/MIDocument.build/Objects-normal/ppc/MIDocument_ApplescriptSupport.o
In file included from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.h:9,
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.m:9:
/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument.h:10:26: error: Blocks/Blocks.h: No such file or directory
In file included from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument.h:11,
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.h:9,
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.m:9:
/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/../Blocks/Plugins/BKDocuments/BKDocumentsProtocols.h:38: error: cannot find interface declaration for 'BKPluginRegistry'
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.m:9:
In file included from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.h:9,
/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument.h:10:26: error: Blocks/Blocks.h: No such file or directory
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.m:9:
from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument_ApplescriptSupport.h:9,
In file included from /Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/Plugins/MIDocument/MIDocument.h:11,
/Users/jh/Desktop/InformationManagement/HBNandMori/Mori_release_40/Mori/../Blocks/Plugins/BKDocuments/BKDocumentsProtocols.h:38: error: cannot find interface declaration for 'BKPluginRegistry'
Build failed (2 errors)

Basically it can't find "blocks.h"

Thanks

I'm having the same problem.

I'm having the same problem. I've written a plugin, but I can't compile it because I can't get all the Mori plugins to compile because of some problem with Blocks. I haven't had much time to think about why it's doing this yet, though, so I don't have a solution, but I wish I did so I could get my plugin done.

If you haven't already, see

If you haven't already, see the section on Building here:

Blocks Framework Patterns

In my case I opened the top-level XCode project (not the one in the Mori directory), then I open the Blocks subproject from within XCode, build it, and the building Mori works for me.

Gavin.

Gavin, Except that building

Gavin,

Except that building doc is out of date :( Mori should be able to build without needing to set a custom build location. I guess for starts make sure you are using Xcode 2.2. And maybe try building the Blocks and Blocks SDK project before Mori. In general those should get built automatically (they do on my computer) but maybe there is some problem that's not showing itself in my computer. Let me know what happens after making those changes.

Here's the error I get when

Here's the error I get when I try to build my plugin:

In file included from /Users/redbird/Developer/Mori Math/MIEntryTextViewController.m:9:
/Users/redbird/Developer/Mori Math/MIEntryTextViewController.h:10:26: error: Blocks/Blocks.h: No such file or directory

But I have definitely built Blocks.framework and definitely added it to the project. No matter what, I keep getting the same error on my system, whether building my plugin, other plugins, or Mori.

If you want send me a zip of

If you want send me a zip of your development directory (make sure to delete the builds folder to save space) and I'll see if I can quickly find the problem.

/Users/redbird/Developer/Mori Math/MIEntryTextViewController.m

This looks like part of the problem. The path to MIEntryTextViewController.m should look like this:

/Mori/Plugins/MIUserInterface/MIEntryTextViewController.m

You shouldn't change any of the folder name's or locations of files in the sources directory.

Another thing to make sure

Another thing to make sure of is that you haven't changed the source code folder structure. If you change or rename any of those folders the build process won't be able to find the dependencies.

README

I've gotten too used to ignoring the README files. All I had to do to get Mori to build was set the build location to a common folder (just like it explains in the README file.) Sorry for the unneccessary question.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.