Giter Site home page Giter Site logo

Add build instructions for linux about paq8px HOT 10 CLOSED

shrx avatar shrx commented on July 21, 2024
Add build instructions for linux

from paq8px.

Comments (10)

andrew-epstein avatar andrew-epstein commented on July 21, 2024 1

@L3P3: Can you try adding #include <cctype> to the top of Info.hpp, along with the other lines that begin with #include? If that fixes the problem, then I'll make sure to include a fix for this issue in the next version.

from paq8px.

schnaader avatar schnaader commented on July 21, 2024

Related: https://encode.ru/threads/2885-Paq8px-building-instructions

from paq8px.

L3P3 avatar L3P3 commented on July 21, 2024

On Ubuntu 19, if I git clone and enter the given g++ command, beside a few warnings, I get errors like these:

/usr/bin/ld: /tmp/ccitcPAu.o: in function `BmpFilter::encode(File*, File*, unsigned long, int, int&)':
paq8px.cpp:(.text+0x540): undefined reference to `Shared::getInstance()'
/usr/bin/ld: /tmp/ccitcPAu.o: in function `Array<char, 16>::~Array()':
paq8px.cpp:(.text+0x898): undefined reference to `ProgramChecker::free(unsigned long)'
/usr/bin/ld: /tmp/ccitcPAu.o: in function `directEncodeBlock(BlockType, File*, unsigned long, Encoder&, int)':
paq8px.cpp:(.text+0x97c): undefined reference to `Encoder::compress(int)'
/usr/bin/ld: paq8px.cpp:(.text+0x987): undefined reference to `Encoder::encodeBlockSize(unsigned long)'
/usr/bin/ld: paq8px.cpp:(.text+0x999): undefined reference to `Encoder::compress(int)'

from paq8px.

andrew-epstein avatar andrew-epstein commented on July 21, 2024

Can you try the following?

cmake .
make

from paq8px.

L3P3 avatar L3P3 commented on July 21, 2024
paq8px/model/Info.cpp: In member function ‘void Info::predict(uint8_t)’:
paq8px/model/Info.cpp:412:9: error: ‘isalpha’ was not declared in this scope
     if( isalpha(c1) != 0 ) {
         ^~~~~~~
paq8px/model/Info.cpp:414:16: error: ‘ispunct’ was not declared in this scope
     } else if( ispunct(c1) != 0 ) {
                ^~~~~~~
paq8px/model/Info.cpp:416:16: error: ‘isspace’ was not declared in this scope
     } else if( isspace(c1) != 0 ) {
                ^~~~~~~
make[2]: *** [CMakeFiles/paq8px.dir/build.make:947: CMakeFiles/paq8px.dir/model/Info.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/paq8px.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

from paq8px.

L3P3 avatar L3P3 commented on July 21, 2024

Yes, that did it.

from paq8px.

L3P3 avatar L3P3 commented on July 21, 2024

And also update the README with that cmake and make commands...

from paq8px.

andrew-epstein avatar andrew-epstein commented on July 21, 2024

And also update the README with that cmake and make commands...

Yes, of course, will do.

from paq8px.

moisespr123 avatar moisespr123 commented on July 21, 2024

Updated the README to include newer instructions with cmake and make.

from paq8px.

GotthardtZ avatar GotthardtZ commented on July 21, 2024

I believe this issue may be closed.

from paq8px.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.