xlladdins / xll

Excel add-in library
MIT License
104 stars 23 forks source link

Compile Issues #16

Closed c-jamie closed 2 years ago

c-jamie commented 2 years ago

This is my first time working with CPP on windows so I've likely misconfigured something.

I've cloned xll_template.

git clone https://github.com/xlladdins/xll_template

Then pulled the submodule.

git submodule update --init --recursive

When I compile the project I get a stream of errors (attached).

build_errors.txt

If it helps, my project looks like this: image

Any help would be appreciated - thanks!

keithalewis commented 2 years ago

Do not update the submodule.

c-jamie commented 2 years ago

Thanks for the quick reply.

If I clone the project git clone https://github.com/xlladdins/xll_template only.

I get C:\Users\jamie\code\ak\xll_template1\xll_template.vcxproj : error : The imported project "C:\Users\jamie\code\ak\xll_template1\xll\xll.props" was not found. Confirm that the expression in the Import declaration "xll\xll.props" is correct, and that the file exists on disk. C:\Users\jamie\code\ak\xll_template1\xll_template.vcxproj

I also tried git clone https://github.com/c-jamie/xll_template1.git --recurse-submodules

I get the same large error output.

keithalewis commented 2 years ago

Did you try git clone https://github.com/c-jamie/xll_template1.git without updating the submodule?

c-jamie commented 2 years ago

Yes I got this error: C:\Users\jamie\code\ak\xll_template1\xll_template.vcxproj : error : The imported project "C:\Users\jamie\code\ak\xll_template1\xll\xll.props" was not found. Confirm that the expression in the Import declaration "xll\xll.props" is correct, and that the file exists on disk. C:\Users\jamie\code\ak\xll_template1\xll_template.vcxproj

keithalewis commented 2 years ago

Go to https://github.com/xlladdins/xll_template and click Use this template to create a new repository. Clone that repository. DO NOT UPDATE the xll submodule. I just built this in VS2019 using these steps. You can always try cloning https://github.com/xlladdins/xll and building that.

c-jamie commented 2 years ago

I'll try this - thanks.