dhoerl / DHlibxls

Framework to read Excel xls spreadsheets
271 stars 86 forks source link

Using DHlibxls within a Mac project #5

Closed peanutgallerygeek closed 11 years ago

peanutgallerygeek commented 11 years ago

I'd like to use the DHlibxls framework within my Mac project. The core project is coded for IOS but really doesn't use any IOS objects. Can I use it 'as is' and drop it into a Mac project or do I need to OS X-ize it first? Kind of a dopey question but I'm new at this.

dhoerl commented 11 years ago

You should be able to use it - you might have to tweak something or the other. Let me know how it goes. If you have problems I can look at it in a few days.

peanutgallerygeek commented 11 years ago

No hurry. I'll fool with it for a while and see what I can do with it. I'll try to use it 'as is' and then start messing with it. I'm kind of working on my thing in fits and starts as I get time so it might be a couple of weeks until I finish.

Thanks for getting back to me.

On Feb 10, 2013, at 8:33 PM, David Hoerl notifications@github.com wrote:

You should be able to use it - you might have to tweak something or the other. Let me know how it goes. If you have problems I can look at it in a few days. — Reply to this email directly or view it on GitHub..

dhoerl commented 11 years ago

On 2/10/13 9:35 PM, peanutgallerygeek wrote:

No hurry. I'll fool with it for a while and see what I can do with it. I'll try to use it 'as is' and then start messing with it. I'm kind of working on my thing in fits and starts as I get time so it might be a couple of weeks until I finish.

Thanks for getting back to me.

np - I'll get it working if you have problems. I have tested the core library on both platforms, well, a year or so ago.

peanutgallerygeek commented 11 years ago

Hello,

I ran into an interesting problem with using IOS within a Mac application. Everything was fine until I tried to compile it. I had added libDHxlsReaderIOS.a in the 'link binary with libraries' section of the target build phase properties. It did try and find it but it went to the regular debug directory instead of the debug instead of debug-iphoneos directory.

Here is the full path...

clang: error: no such file or directory: '/Users/joeruth/Library/Developer/Xcode/DerivedData/TestExcel-gafbcuigedlxcvbeilaackpigstl/Build/Products/Debug/libDHxlsReaderIOS.a'

What I think this is telling me is that I need to convert your subproject into a Mac project instead of an IOS project because it makes an assumption depending on type and looks in a a particular directory for these items. Does that make sense or is there a way to tell it to look in the 'wrong' directory?

On Feb 10, 2013, at 9:37 PM, David Hoerl notifications@github.com wrote:

On 2/10/13 9:35 PM, peanutgallerygeek wrote:

No hurry. I'll fool with it for a while and see what I can do with it. I'll try to use it 'as is' and then start messing with it. I'm kind of working on my thing in fits and starts as I get time so it might be a couple of weeks until I finish.

Thanks for getting back to me.

np - I'll get it working if you have problems. I have tested the core library on both platforms, well, a year or so ago. — Reply to this email directly or view it on GitHub..

dhoerl commented 11 years ago

On 2/13/13 8:50 PM, peanutgallerygeek wrote:

Hello,

I ran into an interesting problem with using IOS within a Mac application. Everything was fine until I tried to compile it. I had added libDHxlsReaderIOS.a in the 'link binary with libraries' section of the target build phase properties. It did try and find it but it went to the regular debug directory instead of the debug instead of debug-iphoneos directory.

Here is the full path...

clang: error: no such file or directory: '/Users/joeruth/Library/Developer/Xcode/DerivedData/TestExcel-gafbcuigedlxcvbeilaackpigstl/Build/Products/Debug/libDHxlsReaderIOS.a'

What I think this is telling me is that I need to convert your subproject into a Mac project instead of an IOS project because it makes an assumption depending on type and looks in a a particular directory for these items. Does that make sense or is there a way to tell it to look in the 'wrong' directory?

Look at the way the library itself is compiled - the .a is built as a armv7 library.

peanutgallerygeek commented 11 years ago

I believe so. The 'valid architectures' tab shows 'arvm7 arvm7s'.

On Feb 13, 2013, at 8:57 PM, David Hoerl notifications@github.com wrote:

On 2/13/13 8:50 PM, peanutgallerygeek wrote:

Hello,

I ran into an interesting problem with using IOS within a Mac application. Everything was fine until I tried to compile it. I had added libDHxlsReaderIOS.a in the 'link binary with libraries' section of the target build phase properties. It did try and find it but it went to the regular debug directory instead of the debug instead of debug-iphoneos directory.

Here is the full path...

clang: error: no such file or directory: '/Users/joeruth/Library/Developer/Xcode/DerivedData/TestExcel-gafbcuigedlxcvbeilaackpigstl/Build/Products/Debug/libDHxlsReaderIOS.a'

What I think this is telling me is that I need to convert your subproject into a Mac project instead of an IOS project because it makes an assumption depending on type and looks in a a particular directory for these items. Does that make sense or is there a way to tell it to look in the 'wrong' directory?

Look at the way the library itself is compiled - the .a is built as a armv7 library. — Reply to this email directly or view it on GitHub.

dhoerl commented 11 years ago

What's confusing here is you are talking about using this in a Mac app, not ios. If OSX, then you would only want i386 and x64 architectures.

peanutgallerygeek commented 11 years ago

I downloaded the github version and it was IOS. I think what you're telling me is that I should convert it to OS X if I want to use this in an OS X program.

On Feb 13, 2013, at 9:59 PM, David Hoerl notifications@github.com wrote:

What's confusing here is you are talking about using this in a Mac app, not ios. If OSX, then you would only want i386 and x64 architectures. — Reply to this email directly or view it on GitHub.

dhoerl commented 11 years ago

On 2/13/13 10:23 PM, peanutgallerygeek wrote:

I downloaded the github version and it was IOS. I think what you're telling me is that I should convert it to OS X if I want to use this in an OS X program.

Yes!

peanutgallerygeek commented 11 years ago

Groovy. I'll do that.

On Feb 14, 2013, at 9:47 AM, David Hoerl notifications@github.com wrote:

On 2/13/13 10:23 PM, peanutgallerygeek wrote:

I downloaded the github version and it was IOS. I think what you're telling me is that I should convert it to OS X if I want to use this in an OS X program.

Yes! — Reply to this email directly or view it on GitHub.

DickyT commented 7 years ago

@peanutgallerygeek Hi brother, did u finally converted this lib to Cocoa?

peanutgallerygeek commented 7 years ago

I did and I’ve been using it for a while in a couple of different Mac apps. It wasn’t so much a ‘conversion’ and a ‘hack’ but it works. I didn’t test all of it but mostly it seems fine.

On Jan 7, 2017, at 5:03 PM, DickyT notifications@github.com wrote:

@peanutgallerygeek https://github.com/peanutgallerygeek Hi brother, did u finally converted this lib to Cocoa?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dhoerl/DHlibxls/issues/5#issuecomment-271113285, or mute the thread https://github.com/notifications/unsubscribe-auth/ADXWs43A06FNjfIBKETih_znHu9j_yOdks5rQAu3gaJpZM4Aa4ka.

DickyT commented 7 years ago

@peanutgallerygeek Thats really good news for me, thanks bro, I can follow your steps on it lol