Comments (6)
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
Best regards,
Roberts
from max2sphere.
You have to make changes in makefile for the CFLAGS:
CFLAGS = -g3 -Wall -Wextra -fPIC -DREPLICATION_ENABLED -DJOURNALING_ENABLED -m64
from max2sphere.
Thanks @neurosynapse . I've addressed this in the readme/new makefile in this commit
I'm sure it won't fix all Linux distros, but it gives people a starting point
from max2sphere.
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.
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.
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)
- extract origin dual fisheye and imu measurements HOT 1
- Makefile
- It would be nice if you could explain basic math for equirectangular projection coordinate transfer back to cube map
- png image input addition
- how i can pass a unique frame name to max2sphere?
- ffmpeg needs the output folders `track0`/`track5` created before it can output into them
- metadata for 360 image are missing
- the default for the sequence start index should not be 0
- sequence filenames are not filled with leading zeros but with spaces HOT 1
- `make -f Makefile` fails to run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from max2sphere.