Skip to content

Conversation

@thadk
Copy link
Member

@thadk thadk commented Mar 10, 2021

Attempt to add Project Description, Project Name, Project Version to JSON API:
image

along lines described in:

@thadk
Copy link
Member Author

thadk commented Mar 10, 2021

./onlybuild-emscripten-anypiab-mac.sh
On the local machine:

/Users/thadkerosky/gitrepos/anypia-js/anypiajs/PiaCalOutput.cpp:384:29: error: use of undeclared identifier 'PROJECT_NAME'
    parent["projectname"] = PROJECT_NAME;
                            ^
/Users/thadkerosky/gitrepos/anypia-js/anypiajs/PiaCalOutput.cpp:385:32: error: use of undeclared identifier 'PROJECT_VER'
    parent["projectversion"] = PROJECT_VER;
                               ^
/Users/thadkerosky/gitrepos/anypia-js/anypiajs/PiaCalOutput.cpp:386:36: error: use of undeclared identifier 'PROJECT_DESC'
    parent["projectdescription"] = PROJECT_DESC;
                                   ^
3 errors generated.

In the CI testing travis version:

/Users/travis/build/codeforboston/anypia-js/anypiajs/PiaCalOutput.cpp:20:10: fatal error: 'anypiajsConfig.h' file not found

#include "anypiajsConfig.h"

         ^~~~~~~~~~~~~~~~~~

1 error generated.

em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=14 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/include/libcxx -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/lib/libcxxabi/include -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/lib/libunwind/include -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/include/compat -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/include -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/include/libc -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/lib/libc/musl/arch/emscripten -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/local/include -Xclang -isystem/Users/travis/.emscripten_cache/asmjs/include -DEMSCRIPTEN -Xclang -disable-O0-optnone -DWEB_ASSEMBLY -I/Users/travis/build/codeforboston/anypia-js/anypiajs/../oactobjs32 -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/piadata/../include -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/piadata/../windows -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/piaout/../include -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/piaout/../windows -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/misc/../include -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/misc/../windows -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/windows -I/Users/travis/build/codeforboston/anypia-js/oactobjs32/windows/../include -isystem /Users/travis/build/codeforboston/anypia-js/boost_1_64_0 -c /Users/travis/build/codeforboston/anypia-js/anypiajs/PiaCalOutput.cpp -DBOOST_ALL_NO_LIB -Xclang -isystem/usr/local/Cellar/emscripten/1.39.14/libexec/system/include/SDL -c -o CMakeFiles/anypiajs.dir/PiaCalOutput.cpp.o -emit-llvm' failed (1)

make[2]: *** [CMakeFiles/anypiajs.dir/PiaCalOutput.cpp.o] Error 1

make[1]: *** [CMakeFiles/anypiajs.dir/all] Error 2

make: *** [all] Error 2

The command "make -j2" exited with 2.

(I was able to run the screenshotted version by putting the config variables directly into PiaCalOutput.cpp)

@thadk
Copy link
Member Author

thadk commented Mar 11, 2021

Better done by #20

@thadk thadk closed this Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant