Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: cabrioFE compiling problems  (Read 2422 times)

0 Members and 1 Guest are viewing this topic.

joelk

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 28, 2010, 01:58:03 am
cabrioFE compiling problems
« on: September 19, 2010, 01:18:43 pm »
I am running ubuntu 10.04.1. I am having problems compiling cabrioFE. I installed the packages that are required for cabrioFE. When I typed make the first time I got this..

Code: [Select]
./include/video.h:4:28: error: ffmpeg/avcodec.h: No such file or directory
./include/video.h:5:29: error: ffmpeg/avformat.h: No such file or directory
./include/video.h:6:28: error: ffmpeg/swscale.h: No such file or directory

I created a dir called ffmpeg, gave it appropriate permissions and copied the header files from libavcodec, libavformat and libswscale. This fixed the problem. I typed make again and got this..

Code: [Select]
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o main.o -c main.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o ogl.o -c ogl.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o sdl_wrapper.o -c sdl_wrapper.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o config.o -c config.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o bg.o -c bg.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o menu.o -c menu.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o game_sel.o -c game_sel.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o game.o -c game.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o font.o -c font.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o hint.o -c hint.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o platform.o -c platform.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o submenu.o -c submenu.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o sound.o -c sound.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o event.o -c event.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o key.o -c key.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o control.o -c control.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o setup.o -c setup.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o sdl_ogl.o -c sdl_ogl.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o video.o -c video.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o packet.o -c packet.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o frame.o -c frame.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o category.o -c category.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o focus.o -c focus.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o emulator.o -c emulator.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o snap.o -c snap.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o media.o -c media.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o location.o -c location.c
gcc -g -Wall -DDATA_DIR=\"/usr/local/share/cabrio\" -I./include -I/usr/include/libxml2 -o lookup.o -c lookup.c
gcc -o cabrio -lSDL_image -lSDL_gfx -lglut -lSDL_ttf -lSDL_mixer -lxml2 -lavutil -lavformat -lavcodec -lswscale -lz -lm main.o ogl.o sdl_wrapper.o config.o bg.o menu.o game_sel.o game.o font.o hint.o platform.o submenu.o sound.o event.o key.o control.o setup.o sdl_ogl.o video.o packet.o frame.o category.o focus.o emulator.o snap.o media.o location.o lookup.o
ogl.o: In function `ogl_init':
/home/linux/Desktop/cabrio-0.8.1/ogl.c:31: undefined reference to `gluPerspective'
/home/linux/Desktop/cabrio-0.8.1/ogl.c:54: undefined reference to `gluErrorString'
sdl_ogl.o: In function `ogl_create_texture':
/home/linux/Desktop/cabrio-0.8.1/sdl_ogl.c:148: undefined reference to `gluErrorString'
video.o: In function `video_get_frame':
/home/linux/Desktop/cabrio-0.8.1/video.c:506: undefined reference to `gluErrorString'
collect2: ld returned 1 exit status
make: *** [cabrio] Error 1


I was able to go through the code and find gluPerspective and gluErrorString in /usr/include/GL/glu.h, but unfortunately my knowledge of C is minimal and I can't get past this problem. Can anyone offer any insight? 

Quinny

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:June 08, 2014, 07:52:07 am
Re: cabrioFE compiling problems
« Reply #1 on: September 21, 2010, 08:41:30 am »
I am not entirely sure myself but after a quick google it looks like you might need to add -lGL -lGLU (note the case) to the "gcc -o cabrio" line.

Let us know if that works.


joelk

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 28, 2010, 01:58:03 am
Re: cabrioFE compiling problems
« Reply #2 on: September 23, 2010, 07:22:29 pm »
Thanks Quinny, that worked. I added -lGL -lGLU to the end of the LDFLAGS line in the makefile.

codefenix

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:July 26, 2013, 10:53:44 am
    • My MAME Cabinet Build
Re: cabrioFE compiling problems
« Reply #3 on: September 02, 2011, 02:03:19 pm »
I realize this thread is a year old, but for anyone still having compilation problems with Cabrio, there is now a DEB package on the home page:
http://www.cabrio-fe.org/download/

The ffmpeg header includes have also been updated in the source.