GithubHelp home page GithubHelp logo

Comments (6)

neurosynapse avatar neurosynapse commented on July 18, 2024

Hello,

Tried to create makefile with command: make -f Makefile in linux and received error: max2sphere.o: file not recognized: file format not recognized. It would be nice if you could help me to resolve it.

My cpu Architecture: x86_64
gcc: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
linux version: Ubuntu 22.04.1 LTS

Screenshot from 2023-02-20 17-52-10

Best regards,
Roberts

from max2sphere.

neurosynapse avatar neurosynapse commented on July 18, 2024

You have to make changes in makefile for the CFLAGS:
CFLAGS = -g3 -Wall -Wextra -fPIC -DREPLICATION_ENABLED -DJOURNALING_ENABLED -m64

from max2sphere.

himynamesdave avatar himynamesdave commented on July 18, 2024

Thanks @neurosynapse . I've addressed this in the readme/new makefile in this commit

bb6524a

I'm sure it won't fix all Linux distros, but it gives people a starting point

from max2sphere.

joshinils avatar joshinils commented on July 18, 2024

I got the same error, also ubuntu 22.04.
I just tried deleting the max2sphere.o and then the makefile went through.

the program also worked afterward, so 🤷

from max2sphere.

rigolepe avatar rigolepe commented on July 18, 2024

Same issue here on ubuntu 22.04:

Cloning into 'gopro-frame-maker'...
Cloning into 'max2sphere'...
gcc -I/usr/include -I/opt/homebrew/include -I/opt/homebrew/opt/jpeg/include -g3 -Wall -Wextra -fPIC -DREPLICATION_ENABLED -DJOURNALING_ENABLED -m64 -c bitmaplib.c
bitmaplib.c: In function 'IsTGA':
bitmaplib.c:843:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  843 |    for (i=0;i<strlen(s);i++)
      |              ^
bitmaplib.c: In function 'IsPPM':
bitmaplib.c:1095:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
 1095 |    for (i=0;i<strlen(s);i++)
      |              ^
bitmaplib.c: In function 'IsRAW':
bitmaplib.c:1418:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
 1418 |    for (i=0;i<strlen(s);i++)
      |              ^
bitmaplib.c: In function 'IsJPEG':
bitmaplib.c:1546:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
 1546 |    for (i=0;i<strlen(s);i++)
      |              ^
bitmaplib.c: In function 'JPEG_Read':
bitmaplib.c:1704:17: warning: comparison of integer expressions of different signedness: 'int' and 'JDIMENSION' {aka 'unsigned int'} [-Wsign-compare]
 1704 |       for (i=0;i<cinfo.output_width;i++) {
      |                 ^
gcc -I/usr/include -I/opt/homebrew/include -I/opt/homebrew/opt/jpeg/include -g3 -Wall -Wextra -fPIC -DREPLICATION_ENABLED -DJOURNALING_ENABLED -m64 -o max2sphere max2sphere.o bitmaplib.o -L/usr/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/jpeg/lib -ljpeg -lm 
max2sphere.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile-Linux:12: max2sphere] Error 1

To reproduce, build this Dockerfile:

FROM ubuntu:22.04

RUN apt update && \
    apt install -y git ffmpeg exiftool build-essential libjpeg-dev && \
    apt clean && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app

RUN git clone https://github.com/trek-view/gopro-frame-maker && \
    cd gopro-frame-maker && \
    git clone https://github.com/trek-view/max2sphere && \
    cd max2sphere && \
    make -f Makefile-Linux && \
    cd .. && \
    git clone https://github.com/trek-view/fusion2sphere && \
    cd fusion2sphere && \
    make -f Makefile && \
    cd .. && \
    pip install --no-cache-dir -r requirements.txt

ENV PYTHONPATH "${PYTHONPATH}:/usr/src/app/gopro-frame-maker"

WORKDIR /workspace 

CMD bash

With the command: docker build -t gopro2frames -f ./Dockerfile .

It fails on the line make -f Makefile-Linux

from max2sphere.

aimoff avatar aimoff commented on July 18, 2024

Please run make clean before make -f Makefile-Linux.
In fact, you don't need to specify -f Makefile-Linux.
Just run make after make clean.
The max2sphere.o file should be removed from GitHub repository.

from max2sphere.

Related Issues (11)

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.