February 26, 2014
My plugin code is compiling beautifully but when I hit "Make AU" to produce a project that I can compile in XCode I get an error that says "Export error when trying to resolve #include files. The file could not be located; did you forget to copy move directories somewhere? Terminating Export"
I'm running RackAFX and attempting this on my Windows 7 VM under Parallels on my MBP. Everything's the current version.
The file that is being singled out is actually an .hpp file, not an .h file. RackAFX seems to perhaps be assuming that it's an .h file and hence having trouble locating it. Is this indeed the issue, and if so is the only way to solve this to have to change my convention and change the file names or is there some way to tell RackAFX that .hpp header file names are ok?
January 29, 2017
Hmmm. Yeah, I can see that. The .hpp isn't getting copied into the export folder. I will need to address this in the next revision. For the record, was this a .hpp file that was officially part of the VS project (Add->Existing Item) or was it just sitting in the folder and being #included by something else in your project?
You can fix the error by copying the file manually to your Mac, then dragging it into XCode into the files area; this will import it the same way as Add->Existing Item in VS (you can also right click on the files in XCode and choose Add->Files). Then you should be able to compile without errors.
Thanks for the report on that.
February 26, 2014
Thanks a lot for the follow-up. Regarding your question, it was an .hpp file that was officially a part of the VS project, meaning that in VS under the "Header Files" section in the Solution Explorer the .hpp file is listed.
I'm not sure that I follow your suggested solution. When I hit the "Make AU" button RackAFX is supposed to create an XCode project that I can then load into Xcode on my Mac, compile, and then have my plug...is that right? If so, the problem I'm having precludes me from getting to the stage of RackAFX producing this XCode project since I get the error message I mentioned before it can do so. Hence when you mention that I can directly import the .hpp file in XCode I'm not sure what (i.e. what project) I should be importing it into...could you clarify this?
January 29, 2017
I am going to have to address this in the next revision (currently working on a major one). The workaround for now is this:
1) remove the .hpp file from your Visual Studio project and use Save All to save the solution file. Don't compile (it won't without the file anyway...).
2) use Make AU to port the project. This should go smoothly without the offending file.
3) in Xcode, drag the .hpp file into the Files area on the left to officially add it to the XCode project. You can also right click on a "filter" (Folder that holds a group of project files) and choose "Add Files to Project" (I think, this is off the top of my head) and browse and find the .hpp file
You should now be able to compile the XCode project. The manual addition of the file in 3) is mimicking what RackAFX is doing when it ports your project. It is confused because it only looks for .cpp and .h files when examining the Visual Studio project file (.vcproj or .vcxproj).
That should fix your problem for now.
PS: I am also trying to figure out what is going on with the Wordpress plugin that I use for this Forum - not sure where those error strings are coming from at the moment...
Most Users Ever Online: 36
Currently Browsing this Page:
Guest Posters: 1
Newest Members:CoraDias, Edoardo, knooierd, daniel, Merril Bradshaw, BillPlunkett, Pajczur, michaelwayneharwood, RickM, rainbow wind
Moderators: W Pirkle: 187
Administrators: Tom: 66, JD Young: 80, Will Pirkle: 0, W Pirkle: 187