Discussion:
Can't build Scintilla in 32-bit Cocoa project
Jari Williamsson
2013-08-18 13:13:55 UTC
Permalink
I have a problem when I try to use the Cocoa framework version of Scintilla.

The "ScintillaTest" sample project works just fine, but when I try to add ScintillaFramework.xodeproj in my own (32-bit) project I get a linker error:
---
".objc_class_name_ScintillaView", referenced from:
Pointer-to-literal-objx-class-name in myfoofile.o
Symbol(s) not found for architecure i386.
---

I notice that when I use "Clean" in XCode and rebuild the project, "ScintillaTest" will recompile all the "ScintillaFramework.xodeproj" files. In my own project however, the "ScintillaFramework.xodeproj" files will not recompile and the resulting "Scintilla.framework" in "ScintillaFramework.xodeproj->Products" is marked red.

Is this a 32-bit vs 64-bit issue in Scintilla/Cocoa, or is it something else?


Best regards,

Jari Williamsson
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Mike Lischke
2013-08-19 06:25:20 UTC
Permalink
Jari,
Post by Jari Williamsson
I notice that when I use "Clean" in XCode and rebuild the project, "ScintillaTest" will recompile all the "ScintillaFramework.xodeproj" files. In my own project however, the "ScintillaFramework.xodeproj" files will not recompile and the resulting "Scintilla.framework" in "ScintillaFramework.xodeproj->Products" is marked red.
Is this a 32-bit vs 64-bit issue in Scintilla/Cocoa, or is it something else?
What I do is to add the Scintilla framework as subproject in my main project. This is also done in the test project. You could try this as solution, but it should of course be possible to add only the compiled framework.

Mike
--
www.soft-gems.net
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Jari Williamsson
2013-08-21 06:19:06 UTC
Permalink
Post by Mike Lischke
What I do is to add the Scintilla framework as subproject in my main
project. This is also done in the test project. You could try this as
solution, but it should of course be possible to add only the compiled
framework.
Thanks Mike! What solved it on my end was to add the Scintilla.framework
folder to my project (in addition to adding it as a subproject and manually
setting my project dependencies to the Scintilla framework).

My project is a bundle rather than an app, perhaps XCode treats frameworks
and subprojects differently there. Anyway, not it works - thanks again!

/Jari
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...