Skip to content
This repository was archived by the owner on Jul 26, 2020. It is now read-only.

Detailed steps for installing swix on a new project #24

Closed
sniis84 opened this issue Mar 16, 2016 · 12 comments
Closed

Detailed steps for installing swix on a new project #24

sniis84 opened this issue Mar 16, 2016 · 12 comments
Labels

Comments

@sniis84
Copy link

sniis84 commented Mar 16, 2016

Please give a detailed and working steps for installing swix on a new project.
I tried several times to follow the given steps.
First I found that OpenCV must be added as Framework in order to compile the project.
In this way the project compiles but the functions cannot be called in any swift file, how to make swix to work?

Many thanks

@stsievert
Copy link
Owner

I do include some instructions on Installation. Theres no section on integrating with an existing project but I believe following step 4 under creating a new project that uses swix can link to the proper frameworks/etc.

I believe this is related to issue #23, reformatting for use with the Swift package manager -- I believe these compiler-linking parameters are specified in some text file. I'm not currently actively developing this (I'll probably fix #23 over the summer), so please feel free to ask further questions/post screenshots/etc. I'll do my best to answer.

@sniis84
Copy link
Author

sniis84 commented Mar 17, 2016

Maybe I wasn't clear your instructions does not work.
The tutorial that you give is perfect I can tests everything in it. But I cannot create a new project because the library commands do not work.
I followed ALL the steps and the project does not compile.
You might miss some steps in your instructions. Such as adding OpenCV framework (only one I figured out) and maybe something else.
Adding OpenCV framework I can compile but I cannot call your functions

@sniis84
Copy link
Author

sniis84 commented Mar 17, 2016

swix

why my swix folder has a different color respect to the tutorial? Something is missing?

@stsievert
Copy link
Owner

Hm, this sounds like the swix files aren't included in the project -- Xcode doesn't know where to look to find these functions. I'm pretty sure this issue is caused by the process of adding source files to an Xcode project. I normally follow this process: http://stackoverflow.com/a/15195403

@sniis84
Copy link
Author

sniis84 commented Mar 18, 2016

It was all Xcode's fault! I made a cache cleaning of the system and Xcode folders.
I manage to include your stuff in my custom project! Thanks for the support!!

@stsievert
Copy link
Owner

I'll add a tip to the installation guide to clean the cache. Thanks for testing and using!

@stsievert
Copy link
Owner

To be clear, you selected Product > Clean? That fixed your issue?

@sniis84
Copy link
Author

sniis84 commented Mar 19, 2016

Nope. I deleted the 'Derived Data' folder of Xcode in the Library of my user.
Moreover I'd add the following pic to your instructions while you say to include the folder 'swix'.
unnamed

Many thanks again for your support and your amazing work.
Please keep it up I'd like to see how is it going to develop.
Just to ask a thing, any change to have multi-dimensional arrays in the near future?

@stsievert
Copy link
Owner

Thanks, I'll revise the swix docs with that picture.

Only 1D and 2D arrays (aka vectors and matrices) are currently supported. This is all I saw the need to develop. The code for 1/2D arrays is pretty stable and I don't plan on changing it anytime soon.

On Mar 19, 2016, 5:56 PM -0600, [email protected], wrote:

Nope. I deleted the 'Derived Data' folder of Xcode in the Library of my user.
Moreover I'd add the following pic to your instructions while you say to include the folder 'swix'.

Many thanks again for your support and your amazing work.
Please keep it up I'd like to see how is it going to develop.
Just to ask a thing, any change to have multi-dimensional arrays in the near future?


You are receiving this because you modified the open/close state.
Reply to this email directly orview it on GitHub(#24 (comment))

@stsievert
Copy link
Owner

So if you had added swix while checking the "copy items if needed" the issue would have been avoided?

@sniis84
Copy link
Author

sniis84 commented Mar 20, 2016

You must have "copy items if needed and "create groups".
In my case, if I don't do this at the first time I had to clean the "DerivedData" Xcode folder in my Library.
That is the main important step for the installation.

@stsievert
Copy link
Owner

Thanks for the clarification.

On Mar 20, 2016, 2:09 AM -0600, [email protected], wrote:

You must have "copy items if needed and "create groups".
In my case, if I don't do this at the first time I had to clean the "DerivedData" Xcode folder in my Library.
That is the main important step for the installation.


You are receiving this because you modified the open/close state.
Reply to this email directly orview it on GitHub(#24 (comment))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants