Skip to content

Build error on Fedora 27 #47

Description

@jjmakin

Hi, I'd like to offer help and request help for building on this popular linux distro.
Packages I have installed so far: cpio lzop wget qt-devel upx qt3-devel redhat-rpm-config libusbx-devel

I have a libusb.h error, which may be just an include path problem

gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o fel_lib.o ../3rdparty/sunxi-tools/fel_lib.c
../3rdparty/sunxi-tools/fel_lib.c:26:10: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:159: fel_lib.o] Error 1
make[1]: Leaving directory '/home/jarrod/git/hakchi/build'
make: *** [Makefile:48: build/hakchi-gui] Error 2

libusbx provides /usr/include/libusb-1.0/libusb.h
I symlinked that into one of the include directories and got a little further, now I'm stuck with

gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o soc_info.o ../3rdparty/sunxi-tools/soc_info.c
gcc -c -pipe -std=gnu99 -DNDEBUG -Wall -Wextra -Wno-return-type -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o progress.o ../3rdparty/sunxi-tools/progress.c
g++ -c -pipe -std=gnu++11 -Wall -Wextra -Wall -W -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I../hakchi-gui -I../3rdparty/sunxi-tools -I../3rdparty/sunxi-tools/include -I../3rdparty/mkbootimg -I/usr/lib64/qt-3.3/include -Isrc -I../hakchi-gui/src/ -I. -o fel.o ../hakchi-gui/src/fel.cpp
In file included from ../hakchi-gui/src/fel.cpp:1:0:
../hakchi-gui/src/fel.h:6:10: fatal error: QObject: No such file or directory
#include
^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:172: fel.o] Error 1
make[1]: Leaving directory '/home/jarrod/git/hakchi/build'
make: *** [Makefile:48: build/hakchi-gui] Error 2

This has something to do with qtmake commands, amongst other packages I could have installed were
mingw32-qt.noarch : Qt for Windows
mingw64-qt.noarch : Qt for Windows
but I really don't know what to do from here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions