Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Solved] Compile issues with a Feathercoin Fork

    Newbies - New Members Must Start Here
    6
    36
    16379
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AcidD
      AcidD Moderators last edited by

      My research says it’s easier to set up a VM and compile a windows executable inside a linux environment than it is to compile on windows directly.

      • FTC Block Explorer + API @ https://fsight.chain.tips
      • FTC Beer Money: 6x4LEQV88zRnBvZoH6ZNK6SeRxx4KiTyJs
      • FTC bech32 address: fc1q4tclm3cv4v86ez6el76ewmharexfapxhek5a03
      • BTC bech32 address: bc1qk8umuccapuafspk9e5szahvp0detafuzugv4ay

      1 Reply Last reply Reply Quote 1
      • wrapper
        wrapper Moderators @ironsniper last edited by

        @ironsniper Did you sort out that problem with the windows compile?

        If not I’ll PM Lizhi - see if he’s come across that problem, he’s doing the most with the windows compile recently.

        1 Reply Last reply Reply Quote 0
        • wrapper
          wrapper Moderators last edited by

          Hi Ironsniper,

          I’ve been ill so not followed what went on, I see a few people worked on your problem, did you get a good compile result in the end?

          1 Reply Last reply Reply Quote 0
          • Wellenreiter
            Wellenreiter Moderators @ironsniper last edited by

            @ironsniper said:

            hey all i am not new to compiling on windows and mac and linux, however i am new to compiling the newer 0.9.x source code, i am trying to compile feathercoin wallet and it will not compile the qt wallet cause it is missing something called zxing, where do i get this and how do i tell msys on windows to see it so it can use it to compile this wallet?

            What is missing on your system is the zxing library, which is used to generate qr codes inside the wallet.

            You can google ‘libzxing’ or ‘zxing library’ to get the library files for your operating system, or simply run the configure script with the parameter ‘–with-qrcode=no’

            ./configure --help gives all options and parameters

            Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
            Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

            1 Reply Last reply Reply Quote 1
            • wrapper
              wrapper Moderators last edited by

              Hi Ironsniper, did you have any luck compiling?

              1 Reply Last reply Reply Quote 0
              • U
                UnklAdM Regular Member last edited by

                I am also having issues compiling on linux. After finally getting zxing installed, I am now getting several of these errors.

                ./zxing/LuminanceSource.h:31:13: error: ‘const int zxing::LuminanceSource::width’ is private

                Advice? Guidance? Beer?

                - UnklAdM

                AcidD S 2 Replies Last reply Reply Quote 1
                • AcidD
                  AcidD Moderators @UnklAdM last edited by

                  @UnklAdM said:

                  I am also having issues compiling on linux. After finally getting zxing installed, I am now getting several of these errors.

                  ./zxing/LuminanceSource.h:31:13: error: ‘const int zxing::LuminanceSource::width’ is private

                  Advice? Guidance? Beer?

                  - UnklAdM

                  what linux are you running ? what version of libzxing did ya install ?

                  • FTC Block Explorer + API @ https://fsight.chain.tips
                  • FTC Beer Money: 6x4LEQV88zRnBvZoH6ZNK6SeRxx4KiTyJs
                  • FTC bech32 address: fc1q4tclm3cv4v86ez6el76ewmharexfapxhek5a03
                  • BTC bech32 address: bc1qk8umuccapuafspk9e5szahvp0detafuzugv4ay

                  1 Reply Last reply Reply Quote 0
                  • S
                    slavco Regular Member @UnklAdM last edited by slavco

                    @UnklAdM I used to have the same problems but I have compiled successfully. Make width and height in the source file public and that is it, build will pass and wallet will work :)
                    9
                    Btw this is the problem when you compile on linux (depends on zxing - i have take the source of some another project on github - forgot its name) only and is caused when you want to build the qt wallet.

                    Cheers :)

                    1 Reply Last reply Reply Quote 1
                    • U
                      UnklAdM Regular Member last edited by UnklAdM

                      Thanks… I got this working on Centos 7, here’s what I did…

                      As advised, I made width and height public in ./zxing/LuminanceSource.h

                      As Centos 7 (and Red Hat) lack the ec_curve cipher in openssl, I applied this patch to src/key.c

                      http://pastebin.com/raw/iFYJsgus

                      Then I manually replaced all remaining occurrences of

                      EC_KEY_new_by_curve_name(NID_secp256k1);

                      with

                      EC_KEY_new_by_curve_name_NID_secp256k1();

                      Surely an ugly hack, but the wallet is now syncing…

                      ;)

                      - UnklAdM

                      Note: I cloned zxing from https://github.com/glassechidna/zxing-cpp.git into the Feathercoin subdir then
                      cd src/qt
                      ln -s …/…/zxing-cpp/core/src/zxing zxing

                      1 Reply Last reply Reply Quote 3
                      • Wellenreiter
                        Wellenreiter Moderators last edited by

                        Glad to see, that you made it :)

                        Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                        Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                        1 Reply Last reply Reply Quote 1
                        • I
                          ironsniper last edited by

                          hey everyone i just saw all the replies here, the person i was compiling for gave up and switched to a different source code which did not use the zxing, but now i have someone else asking me to compile a wallet and am getting this error again

                          first to answer the old question, no i was NEVER able to compile it and i was NEVER able to find a copy of zxing that mingw would find or use, i have also NEVER been able to compile windows wallets on linux which is why i compile on windows wallets on windows and mac on mac etc

                          i have also tried using the --with-qrcode=no and it does not work, if anyone has any advice they can give please let me know.

                          1 Reply Last reply Reply Quote 0
                          • wrapper
                            wrapper Moderators last edited by wrapper

                            I don’t have windows, but we have been doing a lot of work with version 0.9.3.2 around dependencies. I’ve updated some build instructions. You could see if that helps.

                            https://github.com/wrapperband/Feathercoin/tree/0.9.3.2/doc

                            I know our Dev Lizhi is managing to compile the Windows version, however, he is in China, so we’ll need to wait for him to be able to respond.

                            If you try the Windows build and checkout 0.9.3.2 (with some build improvements over 0.9.3.1) - let us know what happens, so we can try and duplicate your issue.

                            It is backwardly compatible and a proposed maintenance release soon.

                            @Lizhi

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              ironsniper @wrapper last edited by

                              @wrapper said:

                              I don’t have windows, but we have been doing a lot of work with version 0.9.3.2 around dependencies. I’ve updated some build instructions. You could see if that helps.

                              https://github.com/wrapperband/Feathercoin/tree/0.9.3.2/doc

                              I know our Dev Lizhi is managing to compile the Windows version, however, he is in China, so we’ll need to wait for him to be able to respond.

                              If you try the Windows build and checkout 0.9.3.2 (with some build improvements over 0.9.3.1) - let us know what happens, so we can try and duplicate your issue.

                              It is backwardly compatible and a proposed maintenance release soon.

                              @Lizhi

                              i went through all the links in the link you posted and the only time i saw zxing in there was for unix/linux and nothing in there about compiling on windows, im compiling using mingw and msys

                              wrapper 1 Reply Last reply Reply Quote 0
                              • wrapper
                                wrapper Moderators @ironsniper last edited by wrapper

                                @ironsniper I don’t have Windows. Sorry it didn’t help.

                                There are specific Windows build instructions, if you follow those and tell us where it went wrong we can try to help (though), it “all doesn’t work” doesn’t really help find a solution.
                                g’night.

                                1 Reply Last reply Reply Quote 0
                                • I
                                  ironsniper last edited by

                                  if there is one just for windows i am not seeing it and nothing with zxing in it except for the linux/unix ones and the error comes up during the ./configure and it complains about not finding zxing no matter what i try

                                  1 Reply Last reply Reply Quote 0
                                  • Wellenreiter
                                    Wellenreiter Moderators last edited by

                                    There is a little bug in the configure script. It should not enable use_qr if no zxing is found:

                                    --with-qrcode           enable QR code support (default is yes if qt is
                                                          enabled and libzxing is found)
                                    

                                    Run ‘configure --with-qrcode=no’ and it will compile.

                                    The wallet will be fully functional, only no qr codes can be scanned.

                                    Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                                    Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                                    I 1 Reply Last reply Reply Quote 0
                                    • I
                                      ironsniper @Wellenreiter last edited by ironsniper

                                      @Wellenreiter said:

                                      There is a little bug in the configure script. It should not enable use_qr if no zxing is found:

                                      --with-qrcode           enable QR code support (default is yes if qt is
                                                            enabled and libzxing is found)
                                      

                                      Run ‘configure --with-qrcode=no’ and it will compile.

                                      The wallet will be fully functional, only no qr codes can be scanned.

                                      i have tried --with-qrcode=no and it still tries to find zxing

                                      1 Reply Last reply Reply Quote 0
                                      • Wellenreiter
                                        Wellenreiter Moderators last edited by

                                        Is it during the configure step or the compile?

                                        It seems that you are using a different code than I do.

                                        can you check with ‘./configure --help’ if there is a --with-zxing=no option?

                                        Also for me to better understand, so please forgive that question:

                                        what exactly did you do to compile the code?

                                        The normal way is to download or clone the code from github and then run

                                        • ./autogen.sh
                                        • ./configure [–options]
                                        • make

                                        By the way, if you are compiling for others, not for yourself, why not using the ‘official’ binary, that is available from the resources section of www.feathercoin.com?

                                        The direct link to the downlaod is https://github.com/FeatherCoin/Feathercoin/releases/download/v0.8.7.3/feathercoin-qt.exe

                                        Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                                        Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                                        I 1 Reply Last reply Reply Quote 1
                                        • I
                                          ironsniper @Wellenreiter last edited by ironsniper

                                          @Wellenreiter said in compile issues:

                                          Is it during the configure step or the compile?

                                          It seems that you are using a different code than I do.

                                          can you check with ‘./configure --help’ if there is a --with-zxing=no option?

                                          Also for me to better understand, so please forgive that question:

                                          what exactly did you do to compile the code?

                                          The normal way is to download or clone the code from github and then run

                                          • ./autogen.sh
                                          • ./configure [–options]
                                          • make

                                          By the way, if you are compiling for others, not for yourself, why not using the ‘official’ binary, that is available from the resources section of www.feathercoin.com?

                                          The direct link to the downlaod is https://github.com/FeatherCoin/Feathercoin/releases/download/v0.8.7.3/feathercoin-qt.exe

                                          i am not compiling feathercoin its a coin based off the feathercoin source code, there is also no option --with-zxing=no and this is the error i get during the configure part

                                          configure: WARNING: libzxing not found; coin-qt frontend will not be built

                                          i am sure if i could find the correct one and figure out where to put the files so it will see it i am sure i can get it to compile

                                          Wellenreiter 1 Reply Last reply Reply Quote 0
                                          • wrapper
                                            wrapper Moderators last edited by wrapper

                                            I’m not sure quite what to say, it would be impossible for even Albert Einstein to diagnose a problem without the relevant information.

                                            I pointed out we need to know what was done and the output to help, it turns out it wasn’t even a Feathercoin build? ¯_(ツ)_/¯

                                            • If you point us to the Github, and give us the output, someone might be able to help.
                                            • The subject should have been brought up in an “Off Topic” thread, or at least in “Support” with the full details of which coin it is. Members have helped other coins before (Litecoin, Phoenixcoin, Catcoin, UFOcoin, etc)
                                            • You could apply to add a Coin-Qt in the Alternative coins section of the forum and build up some community support there.
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post