Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problem #20

Closed
marco44 opened this issue Nov 14, 2017 · 2 comments
Closed

Compilation problem #20

marco44 opened this issue Nov 14, 2017 · 2 comments

Comments

@marco44
Copy link

marco44 commented Nov 14, 2017

Hi,

I'm maintaining the arch package…

While trying to build, I get this error:

marc@marco:~/mp4fpsmod$ make
make  all-recursive
make[1]: Entering directory '/home/marc/Downloads/developpement/aur/mp4fpsmod/src/mp4fpsmod'
Making all in mp4v2
make[2]: Entering directory '/home/marc/Downloads/developpement/aur/mp4fpsmod/src/mp4fpsmod/mp4v2'
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./include -I./include -I. -I.  -Wall -Wformat -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -c -o src/rtphint.lo src/rtphint.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -c src/rtphint.cpp -o src/rtphint.o
In file included from ./src/src.h:28:0,
                 from ./src/impl.h:6,
                 from src/rtphint.cpp:22:
./src/mp4util.h:36:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
             throw new Exception("assert failure: "LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \
                                 ^
src/rtphint.cpp: In member function 'void mp4v2::impl::MP4RtpHintTrack::GetPayload(char**, uint8_t*, uint16_t*, char**)':
src/rtphint.cpp:342:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                     if (pSlash != '\0') {
                                   ^~~~
make[2]: *** [GNUmakefile:1085: src/rtphint.lo] Error 1
make[2]: Leaving directory '/home/marc/Downloads/developpement/aur/mp4fpsmod/src/mp4fpsmod/mp4v2'
make[1]: *** [Makefile:566: all-recursive] Error 1
make[1]: Leaving directory '/home/marc/Downloads/developpement/aur/mp4fpsmod/src/mp4fpsmod'
make: *** [Makefile:367: all] Error 2

Changing pSlash != '\0' to *pSlash != '\0' makes it compile (it seemed logical to me, but I only gave it a very quick look).

Regards

@nu774 nu774 closed this as completed in ca913fc Nov 15, 2017
@nu774
Copy link
Owner

nu774 commented Nov 15, 2017

Thanks, fixed it now.

@qo4on
Copy link

qo4on commented Apr 30, 2020

Is it fixed? I also have the same error.

I do the following in Colab:

!git clone -qqq https://github.com/nu774/mp4fpsmod.git > /dev/null
!sudo apt-get update -y -qqq --fix-missing && apt-get install -y -qqq autoconf libtool > /dev/null
%cd mp4fpsmod
!./bootstrap.sh
!./configure

All the above commands were done successfully but when I run make I get into a loop:

!make

make  all-recursive
make[1]: Entering directory '/content/mp4fpsmod'
Making all in mp4v2
make[2]: Entering directory '/content/mp4fpsmod/mp4v2'
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./include -I./include -I. -I.  -Wall -Wformat -g -O2 -fvisibility=hidden -c -o src/3gp.lo src/3gp.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/3gp.cpp -o src/3gp.o
In file included from ./src/src.h:28:0,
                 from ./src/impl.h:6,
                 from src/3gp.cpp:28:
./src/mp4util.h:36:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
             throw new Exception("assert failure: "LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \
                                 ^
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./include -I./include -I. -I.  -Wall -Wformat -g -O2 -fvisibility=hidden -c -o src/atom_ac3.lo src/atom_ac3.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_ac3.cpp -o src/atom_ac3.o
In file included from ./src/src.h:28:0,
                 from ./src/impl.h:6,
                 from src/atom_ac3.cpp:24:
./src/mp4util.h:36:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
             throw new Exception("assert failure: "LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \

How can I fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants