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

Make CMake the starting point for building #19

Closed
Ceylo opened this issue Jul 5, 2012 · 14 comments
Closed

Make CMake the starting point for building #19

Ceylo opened this issue Jul 5, 2012 · 14 comments

Comments

@Ceylo
Copy link
Member

Ceylo commented Jul 5, 2012

Instead of running CMake from the build.sh script, it would be interesting (if it's possible) to to the opposite : do the whole configuration within CMake and only some parts (like building FFmpeg) in shells scripts.

Edit:
AC:

  • I want to be able to build sfeMovie by running CMake then building the sfeMovie project in my chosen IDE
@firefly2442
Copy link
Member

@Ceylo
Copy link
Member Author

Ceylo commented Mar 4, 2013

Ah thanks, the current FindFFMPEG has been hand-made by Danman and probably only works for Linux (and maybe Windows) at the moment so this should be useful.

@Ceylo
Copy link
Member Author

Ceylo commented Mar 4, 2013

Any Shell script seems to be runnable with the following Bat source :

PATH C:\MinGW\msys\1.0\bin;C:\MinGW\bin;%path%
bash -c "./build.sh windows"
PAUSE

MSYS and MinGW must be put in first place or the call to some commands like "find" will run the wrong find.exe.
Besides, if the CMD shell crashes, the following patch must be applied : http://support.microsoft.com/kb/2458000

Ceylo added a commit that referenced this issue Jul 21, 2013
This is not working with Xcode yet (target dependency issue), and not
tested on other platforms.

Building against the builtin/user/system FFmpeg seems to work fine.
@ghost ghost assigned Ceylo Jul 22, 2013
@Ceylo
Copy link
Member Author

Ceylo commented Jul 31, 2013

Confirmed to build fine with KDevelop on Linux

@Ceylo
Copy link
Member Author

Ceylo commented Aug 1, 2013

Here's a little sum up of current status of this story:

On Linux:

  • Makefile: ok
  • KDevelop: ok

On Mac OS X:

  • Makefile: ok
  • Xcode: maybe ok (FFmpeg build is launched) but odd dependency issue. Ie FFmpeg built after sfeMovie...

On Windows:

Ceylo added a commit that referenced this issue Aug 1, 2013
@Ceylo
Copy link
Member Author

Ceylo commented Aug 1, 2013

The CMakeDirected branch has been merged to master and deleted.

@Ceylo
Copy link
Member Author

Ceylo commented Aug 3, 2013

Everything works fine on OS X (Xcode + Makefiles) now.

@Ceylo
Copy link
Member Author

Ceylo commented Aug 3, 2013

Everything still working fine on Linux.

@Ceylo
Copy link
Member Author

Ceylo commented Aug 4, 2013

On Windows with VS2012, FFmpeg build is launched but fails at link time with the following:

LD  libavfilter/avfilter-3.dll
  libavfilter/avf_showspectrum.o: In function `config_output':
  c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:135: undefined reference to `av_rdft_end'
  c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:136: undefined reference to `av_rdft_init'
  libavfilter/avf_showspectrum.o: In function `plot_spectrum_column':
  c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:241: undefined reference to `av_rdft_calc'
  libavfilter/avf_showspectrum.o: In function `uninit':
  Creating library file: libavfilter/libavfilter.dll.a
  c:\Users\Ceylo\Downloads\sfeMovie-master\deps\ffmpeg/libavfilter/avf_showspectrum.c:78: undefined reference to `av_rdft_end'
  collect2: ld a retournÚ 1 code d'Útat d'exÚcution
  make: *** [libavfilter/avfilter-3.dll] Error 1
  *** an error occured, aborting.

The error is reported here and the only fix seems to be updating FFmpeg. Wondering why I never got this issue though...

@firefly2442
Copy link
Member

Tested on Linux. Building both the provided version of FFmpeg as well as linking against the system version did not result in any errors. :)

@Ceylo
Copy link
Member Author

Ceylo commented Aug 5, 2013

Yay! :D

@Ceylo
Copy link
Member Author

Ceylo commented Aug 15, 2013

Seems like that at the moment, even if it builds, it also crashes.

@Ceylo
Copy link
Member Author

Ceylo commented Aug 15, 2013

Actually it runs fine, seems like I had made a mistake while copying the DLLs the first time.

@Ceylo Ceylo closed this as completed Aug 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants