Yubico / yubikey-personalization-gui

YubiKey Personalization GUI
https://developers.yubico.com/yubikey-personalization-gui
BSD 2-Clause "Simplified" License
198 stars 38 forks source link

error: ‘YKP_FORMAT_YCFG’ was not declared in this scope #21

Closed frafra closed 11 years ago

frafra commented 11 years ago

Hi, I was trying to compile yubikey-personalization-gui under Fedora 19 x86_64, but I got this error:

[frafra@localhost yubikey-personalization-gui]$ qmake-qt4 
Project MESSAGE: Release build
Project MESSAGE: Unix build
[frafra@localhost yubikey-personalization-gui]$ make
uic src/ui/toolpage.ui
uic src/ui/staticpage.ui
uic src/ui/settingpage.ui
uic src/ui/otppage.ui
uic src/ui/oathpage.ui
uic src/ui/mainwindow.ui
uic src/ui/helpbox.ui
uic src/ui/confirmbox.ui
uic src/ui/chalresppage.ui
uic src/ui/aboutpage.ui
uic src/ui/yubiaccbox.ui
compiling src/main.cpp
compiling src/ui/toolpage.cpp
src/ui/toolpage.cpp:390:6: warning: unused parameter ‘msg’ [-Wunused-parameter]
 void ToolPage::ndefWritten(bool written, const QString &msg) {
      ^
src/ui/toolpage.cpp:429:6: warning: unused parameter ‘msg’ [-Wunused-parameter]
 void ToolPage::zapDone(bool written, const QString &msg) {
      ^
src/ui/toolpage.cpp: In member function ‘void ToolPage::on_importPerformBtn_clicked()’:
src/ui/toolpage.cpp:463:49: error: ‘YKP_FORMAT_YCFG’ was not declared in this scope
     int ret = ykp_import_config(cfg, data, len, YKP_FORMAT_YCFG);
                                                 ^
src/ui/toolpage.cpp:463:64: error: ‘ykp_import_config’ was not declared in this scope
     int ret = ykp_import_config(cfg, data, len, YKP_FORMAT_YCFG);
                                                                ^
src/ui/toolpage.cpp:471:41: error: ‘ykp_get_tktflag_OATH_HOTP’ was not declared in this scope
         if(ykp_get_tktflag_OATH_HOTP(cfg)) {
                                         ^
src/ui/toolpage.cpp:472:45: error: ‘ykp_get_cfgflag_CHAL_HMAC’ was not declared in this scope
             if(ykp_get_cfgflag_CHAL_HMAC(cfg)) {
                                             ^
src/ui/toolpage.cpp:476:86: error: ‘ykp_get_cfgflag_CHAL_BTN_TRIG’ was not declared in this scope
                 settings.setValue(SG_REQUIRE_INPUT, ykp_get_cfgflag_CHAL_BTN_TRIG(cfg));
                                                                                      ^
src/ui/toolpage.cpp:477:78: error: ‘ykp_get_cfgflag_HMAC_LT64’ was not declared in this scope
                 settings.setValue(SG_HMAC_LT64, ykp_get_cfgflag_HMAC_LT64(cfg));
                                                                              ^
src/ui/toolpage.cpp:478:54: error: ‘ykp_get_cfgflag_CHAL_YUBICO’ was not declared in this scope
             } else if(ykp_get_cfgflag_CHAL_YUBICO(cfg)) {
                                                      ^
src/ui/toolpage.cpp:482:86: error: ‘ykp_get_cfgflag_CHAL_BTN_TRIG’ was not declared in this scope
                 settings.setValue(SG_REQUIRE_INPUT, ykp_get_cfgflag_CHAL_BTN_TRIG(cfg));
                                                                                      ^
src/ui/toolpage.cpp:487:80: error: ‘ykp_get_cfgflag_OATH_HOTP8’ was not declared in this scope
                 settings.setValue(SG_OATH_HOTP8, ykp_get_cfgflag_OATH_HOTP8(cfg));
                                                                                ^
src/ui/toolpage.cpp:490:52: error: ‘ykp_get_cfgflag_STATIC_TICKET’ was not declared in this scope
         } else if(ykp_get_cfgflag_STATIC_TICKET(cfg)) {
                                                    ^
src/ui/toolpage.cpp:494:76: error: ‘ykp_get_cfgflag_STRONG_PW1’ was not declared in this scope
             settings.setValue(SG_STRONG_PW1, ykp_get_cfgflag_STRONG_PW1(cfg));
                                                                            ^
src/ui/toolpage.cpp:495:46: error: ‘ykp_get_cfgflag_STRONG_PW2’ was not declared in this scope
             if(ykp_get_cfgflag_STRONG_PW2(cfg)) {
                                              ^
src/ui/toolpage.cpp:497:78: error: ‘ykp_get_cfgflag_SEND_REF’ was not declared in this scope
                 settings.setValue(SG_STRONG_PW3, ykp_get_cfgflag_SEND_REF(cfg));
                                                                              ^
src/ui/toolpage.cpp:505:72: error: ‘ykp_get_cfgflag_MAN_UPDATE’ was not declared in this scope
         settings.setValue(SG_MAN_UPDATE, ykp_get_cfgflag_MAN_UPDATE(cfg));
                                                                        ^
src/ui/toolpage.cpp:506:74: error: ‘ykp_get_cfgflag_PACING_10MS’ was not declared in this scope
         settings.setValue(SG_PACING_10MS, ykp_get_cfgflag_PACING_10MS(cfg));
                                                                          ^
src/ui/toolpage.cpp:507:74: error: ‘ykp_get_cfgflag_PACING_20MS’ was not declared in this scope
         settings.setValue(SG_PACING_20MS, ykp_get_cfgflag_PACING_20MS(cfg));
                                                                          ^
src/ui/toolpage.cpp:508:70: error: ‘ykp_get_tktflag_APPEND_CR’ was not declared in this scope
         settings.setValue(SG_APPEND_CR, ykp_get_tktflag_APPEND_CR(cfg));
                                                                      ^
src/ui/toolpage.cpp:509:78: error: ‘ykp_get_tktflag_APPEND_DELAY1’ was not declared in this scope
         settings.setValue(SG_APPEND_DELAY1, ykp_get_tktflag_APPEND_DELAY1(cfg));
                                                                              ^
src/ui/toolpage.cpp:510:78: error: ‘ykp_get_tktflag_APPEND_DELAY2’ was not declared in this scope
         settings.setValue(SG_APPEND_DELAY2, ykp_get_tktflag_APPEND_DELAY2(cfg));
                                                                              ^
src/ui/toolpage.cpp:511:74: error: ‘ykp_get_tktflag_APPEND_TAB1’ was not declared in this scope
         settings.setValue(SG_APPEND_TAB1, ykp_get_tktflag_APPEND_TAB1(cfg));
                                                                          ^
src/ui/toolpage.cpp:512:74: error: ‘ykp_get_tktflag_APPEND_TAB2’ was not declared in this scope
         settings.setValue(SG_APPEND_TAB2, ykp_get_tktflag_APPEND_TAB2(cfg));
                                                                          ^
src/ui/toolpage.cpp:513:70: error: ‘ykp_get_tktflag_TAB_FIRST’ was not declared in this scope
         settings.setValue(SG_TAB_FIRST, ykp_get_tktflag_TAB_FIRST(cfg));
                                                                      ^
src/ui/toolpage.cpp:514:84: error: ‘ykp_get_extflag_SERIAL_BTN_VISIBLE’ was not declared in this scope
         settings.setValue(SG_SR_BTN_VISIBLE, ykp_get_extflag_SERIAL_BTN_VISIBLE(cfg));
                                                                                    ^
src/ui/toolpage.cpp:515:84: error: ‘ykp_get_extflag_SERIAL_USB_VISIBLE’ was not declared in this scope
         settings.setValue(SG_SR_USB_VISIBLE, ykp_get_extflag_SERIAL_USB_VISIBLE(cfg));
                                                                                    ^
src/ui/toolpage.cpp:516:84: error: ‘ykp_get_extflag_SERIAL_API_VISIBLE’ was not declared in this scope
         settings.setValue(SG_SR_API_VISIBLE, ykp_get_extflag_SERIAL_API_VISIBLE(cfg));
                                                                                    ^
src/ui/toolpage.cpp:517:88: error: ‘ykp_get_extflag_USE_NUMERIC_KEYPAD’ was not declared in this scope
         settings.setValue(SG_USE_NUMERIC_KEYPAD, ykp_get_extflag_USE_NUMERIC_KEYPAD(cfg));
                                                                                        ^
src/ui/toolpage.cpp:518:70: error: ‘ykp_get_extflag_FAST_TRIG’ was not declared in this scope
         settings.setValue(SG_FAST_TRIG, ykp_get_extflag_FAST_TRIG(cfg));
                                                                      ^
src/ui/toolpage.cpp:519:76: error: ‘ykp_get_extflag_ALLOW_UPDATE’ was not declared in this scope
         settings.setValue(SG_ALLOW_UPDATE, ykp_get_extflag_ALLOW_UPDATE(cfg));
                                                                            ^
src/ui/toolpage.cpp:520:69: error: ‘ykp_get_extflag_LED_INV’ was not declared in this scope
         settings.setValue(SG_LED_INVERT, ykp_get_extflag_LED_INV(cfg));
                                                                     ^
make: *** [build/release/ObjFiles/toolpage.o] Errore 1
frafra commented 11 years ago

More information:

frafra commented 11 years ago

Sorry, wrong ykpers-devel version.

frafra commented 11 years ago

Sorry, I have to reopen it. I got the same issue with:

klali commented 11 years ago

Hello,

HEAD of yubikey-personalization-gui only builds with HEAD from yubikey-personalization currently due to changes taking place. Also, the latest versions of yubikey-personalization-gui requires yubikey-personalization to be built with json support enabled, I'm not sure the fedora packages are built with that. Version 3.1.8 was the last version that didn't require json.

/klas

klali commented 11 years ago

v3.1.10 of yubikey-personalization-gui is now released and depends on 1.14.0 of yubikey-personalization.