starlingcode / Via-for-Rack

MIT License
24 stars 8 forks source link

v2: Build failure #36

Closed cschol closed 2 years ago

cschol commented 2 years ago

The version submitted to the Rack library fails to build:

./Via/modules/inc/osc3.hpp:766:5: note: during field initialization in this constructor                                                                    
    ViaOsc3(std::string binPath) : osc3UI(*this) {                                                                                                         
    ^                                                                      
In file included from src/scanner.cpp:2:
In file included from src/via-module.hpp:4:                                                                                                                
src/via-params.hpp:3:10: fatal error: 'starling-rack-ui.hpp' file not found                                                                                
#include "starling-rack-ui.hpp"      
         ^~~~~~~~~~~~~~~~~~~~~~                                                                                                                            
1 error generated.                         
liquidcitymotors commented 2 years ago

Thanks @cschol! bart simpson writing on the chalkboard: "i will always do a clean build of library submissions before submitting"

Can you try commit e1637cdd8c2fce8f3a41ca59db2e9239ca1f5ab4? That one built fine on my Mac once all submodules were fully updated.

SteveRussell33 commented 2 years ago

Just to add: https://github.com/starlingcode/Via-for-Rack/commit/e1637cdd8c2fce8f3a41ca59db2e9239ca1f5ab4 builds successfully on Win

cschol commented 2 years ago

Still doesn't work, but I figured out why. Your dependency submodules are cloned into dep directory. The build process will execute make cleandep (defined in dep.mk) and will delete that directory in the beginning of the build process. You should move your submodules to src/dep.

liquidcitymotors commented 2 years ago

Well that makes things easy for me, thanks so much for figuring this out @cschol and thanks for the sanity check @SteveRussell33!

I moved the submodules as suggested and updated the Makefile. A clean make seemed to work fine on my mac, how is 7ceab8f69b5e95c41d0859b64857686fc96915fc looking?

liquidcitymotors commented 2 years ago

I think this will good because the issue has been well defined, going to close this and move back over to the library issue tracker.

cschol commented 2 years ago

All good now. Thank you!