run executable with correct working dir
This commit is contained in:
2
Makefile
2
Makefile
@@ -53,7 +53,7 @@ linux: config.gypi linux/llmr-app.gyp node
|
||||
|
||||
# Executes the Linux binary
|
||||
run-linux: linux
|
||||
build/$(BUILDTYPE)/mapbox-gl
|
||||
(cd build/$(BUILDTYPE) && ./mapbox-gl)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
|
||||
sigaction(SIGINT, &sigIntHandler, NULL);
|
||||
|
||||
// read default stylesheet from disk
|
||||
std::ifstream stylefile("./build/Release/style.min.js");
|
||||
std::ifstream stylefile("./style.min.js");
|
||||
std::stringstream stylejson;
|
||||
stylejson << stylefile.rdbuf();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user