missing "version.h" #1

Open
opened 2020-11-23 00:19:50 +01:00 by csestili · 4 comments
csestili commented 2020-11-23 00:19:50 +01:00 (Migrated from github.com)

In rpi branch, trying to run make, I get this error:

g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c common/message.cpp -o build/common/message.cpp.o
common/message.cpp:5:21: fatal error: version.h: No such file or directory
 #include "version.h"
                     ^
compilation terminated.
Makefile:53: recipe for target 'build/common/message.cpp.o' failed
make: *** [build/common/message.cpp.o] Error 1

Maybe missing a file?

In `rpi` branch, trying to run `make`, I get this error: ``` g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c common/message.cpp -o build/common/message.cpp.o common/message.cpp:5:21: fatal error: version.h: No such file or directory #include "version.h" ^ compilation terminated. Makefile:53: recipe for target 'build/common/message.cpp.o' failed make: *** [build/common/message.cpp.o] Error 1 ``` Maybe missing a file?
csestili commented 2020-11-23 00:30:33 +01:00 (Migrated from github.com)

As a workaround, I made my own common/version.h with what seems to be missing:

#ifndef __INCLUDE_VERSION_H_
#define __INCLUDE_VERSION_H_

#define BUILD_COMMIT "fake_commit"
#define BUILD_DATE "fake_date"

#endif // __INCLUDE_VERSION_H_

And make seems to complete. Output:

mkdir -p ./build/common
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c common/message.cpp -o build/common/message.cpp.o
mkdir -p ./build/ClearUI
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ClearUI/src/ClearUI_Display.cpp -o build/ClearUI/ClearUI_Display.cpp.o
mkdir -p ./build/ClearUI
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ClearUI/src/ClearUI_Field.cpp -o build/ClearUI/ClearUI_Field.cpp.o
mkdir -p ./build/ClearUI
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ClearUI/src/ClearUI_Input.cpp -o build/ClearUI/ClearUI_Input.cpp.o
mkdir -p ./build/ClearUI
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ClearUI/src/ClearUI_Layout.cpp -o build/ClearUI/ClearUI_Layout.cpp.o
mkdir -p ./build/Adafruit-GFX-Library
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ext/Adafruit-GFX-Library/Adafruit_GFX.cpp -o build/Adafruit-GFX-Library/Adafruit_GFX.cpp.o
mkdir -p ./build/Adafruit_SSD1306
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c ../ext/Adafruit_SSD1306/Adafruit_SSD1306.cpp -o build/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o
mkdir -p ./build/lard
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c lard/mock.cpp -o build/lard/mock.cpp.o
mkdir -p ./build/lard
g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2  -c lard/Wire.cpp -o build/lard/Wire.cpp.o
cc  ./build/rpi/args.cpp.o ./build/rpi/bicycle.cpp.o ./build/rpi/configuration.cpp.o ./build/rpi/midi.cpp.o ./build/common/cell.cpp.o ./build/common/display.cpp.o ./build/common/looper.cpp.o ./build/common/message.cpp.o ./build/ClearUI/ClearUI_Display.cpp.o ./build/ClearUI/ClearUI_Field.cpp.o ./build/ClearUI/ClearUI_Input.cpp.o ./build/ClearUI/ClearUI_Layout.cpp.o ./build/Adafruit-GFX-Library/Adafruit_GFX.cpp.o ./build/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o ./build/lard/mock.cpp.o ./build/lard/Wire.cpp.o -o build/bicycle -Wl,--gc-sections -lstdc++ -lm -lasound 2>&1 | tee ./build/link_out
=== missing ===
As a workaround, I made my own `common/version.h` with what seems to be missing: ``` #ifndef __INCLUDE_VERSION_H_ #define __INCLUDE_VERSION_H_ #define BUILD_COMMIT "fake_commit" #define BUILD_DATE "fake_date" #endif // __INCLUDE_VERSION_H_ ``` And `make` seems to complete. Output: ``` mkdir -p ./build/common g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c common/message.cpp -o build/common/message.cpp.o mkdir -p ./build/ClearUI g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ClearUI/src/ClearUI_Display.cpp -o build/ClearUI/ClearUI_Display.cpp.o mkdir -p ./build/ClearUI g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ClearUI/src/ClearUI_Field.cpp -o build/ClearUI/ClearUI_Field.cpp.o mkdir -p ./build/ClearUI g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ClearUI/src/ClearUI_Input.cpp -o build/ClearUI/ClearUI_Input.cpp.o mkdir -p ./build/ClearUI g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ClearUI/src/ClearUI_Layout.cpp -o build/ClearUI/ClearUI_Layout.cpp.o mkdir -p ./build/Adafruit-GFX-Library g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ext/Adafruit-GFX-Library/Adafruit_GFX.cpp -o build/Adafruit-GFX-Library/Adafruit_GFX.cpp.o mkdir -p ./build/Adafruit_SSD1306 g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c ../ext/Adafruit_SSD1306/Adafruit_SSD1306.cpp -o build/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o mkdir -p ./build/lard g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c lard/mock.cpp -o build/lard/mock.cpp.o mkdir -p ./build/lard g++ -Irpi -Icommon -I../ClearUI/src -I../ext/Adafruit-GFX-Library -I../ext/Adafruit_SSD1306 -Ilard -MMD -MP -DRPI -DARDUINO=100 -fdata-sections -ffunction-sections -O2 -c lard/Wire.cpp -o build/lard/Wire.cpp.o cc ./build/rpi/args.cpp.o ./build/rpi/bicycle.cpp.o ./build/rpi/configuration.cpp.o ./build/rpi/midi.cpp.o ./build/common/cell.cpp.o ./build/common/display.cpp.o ./build/common/looper.cpp.o ./build/common/message.cpp.o ./build/ClearUI/ClearUI_Display.cpp.o ./build/ClearUI/ClearUI_Field.cpp.o ./build/ClearUI/ClearUI_Input.cpp.o ./build/ClearUI/ClearUI_Layout.cpp.o ./build/Adafruit-GFX-Library/Adafruit_GFX.cpp.o ./build/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o ./build/lard/mock.cpp.o ./build/lard/Wire.cpp.o -o build/bicycle -Wl,--gc-sections -lstdc++ -lm -lasound 2>&1 | tee ./build/link_out === missing === ```
csestili commented 2020-11-23 00:55:07 +01:00 (Migrated from github.com)

Ah, I suspect that something did not work, because bicycle does not show up in the aconnect list:

client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 20: 'Arturia BeatStep Pro' [type=kernel,card=1]
    0 'Arturia BeatStep Pro MIDI 1'
    1 'Arturia BeatStep Pro MIDI 2'
Ah, I suspect that something did not work, because `bicycle` does not show up in the `aconnect` list: ``` client 0: 'System' [type=kernel] 0 'Timer ' 1 'Announce ' client 14: 'Midi Through' [type=kernel] 0 'Midi Through Port-0' client 20: 'Arturia BeatStep Pro' [type=kernel,card=1] 0 'Arturia BeatStep Pro MIDI 1' 1 'Arturia BeatStep Pro MIDI 2' ```
mzero commented 2020-11-23 02:40:08 +01:00 (Migrated from github.com)

I discovered earlier that common/version.h - which is an auto generated file - doesn't get generated if it isn't there already..... will need to find a fix for the Makefile...

But that said - the contents are irrelevant for functioning.... so after you run it (build/bicycle) - I'm a little perplexed that it doesn't show up...

I discovered earlier that `common/version.h` - which is an auto generated file - doesn't get generated if it isn't there already..... will need to find a fix for the Makefile... But that said - the contents are irrelevant for functioning.... so after you run it (`build/bicycle`) - I'm a little perplexed that it doesn't show up...
csestili commented 2020-11-23 02:56:08 +01:00 (Migrated from github.com)

Ah, oops, I forgot to start both amidiminder and bicycle.

To do this:

cd projects
./amidiminder/build/amidiminder &
cd bicycle
./build/bicycle &

Once I do this, I can see bicycle in the aconnect list:

client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
        Connecting To: 128:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 20: 'Arturia BeatStep Pro' [type=kernel,card=1]
    0 'Arturia BeatStep Pro MIDI 1'
    1 'Arturia BeatStep Pro MIDI 2'
client 129: 'bicycle' [type=user,pid=600]
    0 'controllers     '
    1 'synths          '

Note that I can only run ./build/bicycle from inside the bicycle root dir because it looks for bicycle.config. For best ease of use, it might be good for bicycle (the executable file) to assume that bicycle.config is one dir up.

Ah, oops, I forgot to start both `amidiminder` and `bicycle`. To do this: ``` cd projects ./amidiminder/build/amidiminder & cd bicycle ./build/bicycle & ``` Once I do this, I can see bicycle in the `aconnect` list: ``` client 0: 'System' [type=kernel] 0 'Timer ' 1 'Announce ' Connecting To: 128:0 client 14: 'Midi Through' [type=kernel] 0 'Midi Through Port-0' client 20: 'Arturia BeatStep Pro' [type=kernel,card=1] 0 'Arturia BeatStep Pro MIDI 1' 1 'Arturia BeatStep Pro MIDI 2' client 129: 'bicycle' [type=user,pid=600] 0 'controllers ' 1 'synths ' ``` Note that I can only run `./build/bicycle` from inside the `bicycle` root dir because it looks for `bicycle.config`. For best ease of use, it might be good for `bicycle` (the executable file) to assume that `bicycle.config` is one dir up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mark/bicycle#1
No description provided.