IanCaio
October 17th, 2014, 01:42 AM
Hello guys,
I've been installing and uninstalling ubuntu several times (usually because I didn't know how to use it, and always filled my hard drive with stuff I didn't know how to take off). Now I'm trying to keep it and to learn as much as possible, since I'm not wasting money on windows and XP is not an option anymore ([-(). So far I can do everything I need here, and even learned how to use wine!
So far, trying not to screw my system, I have only installed stuff through the Ubuntu Software Center, but now that I want to program again in C++ and play with Allegro I need to actually compile something, which always seemed as wandering in unknown and dangerous lands.
I'm trying to go step-by-step, so I know exactly what I'm doing, and so far I've:
1) Downloaded Allegro's source code on the website, unziped it on /usr/local/src/allegro-5.0.10
2) Installed Cmake and Cmake-curses-gui through apt-get.
3) I then readed README and tryied to install all dependencies (X11 development libraries and OpenGL libraries), which in my research resumed to those:
mesa-common-dev (which I think is the actuall X11 dev and OpenGL dev libraries); freeglut3 and freeglut3-dev (related to OpenGL development if I'm not mistaken); libglew-dev and libglu1-mesa (apparently the libraries that are related to OpenGL that weren't included in the previous packages).
4) Created a Build directory inside /usr/local/src/allegro-5.0.10 and finally runned "Cmake .." from that directory
From my researchs, Cmake is supposed to be a substitute to ./configure right?
Well, the output from the Cmake command was the following:
iancaio@ian-desktop:/usr/local/src/allegro-5.0.10/Build$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Allowing GCC to use SSE instructions
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include files sys/types.h, linux/joystick.h
-- Looking for include files sys/types.h, linux/joystick.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - found
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
-- Looking for include file sys/timerfd.h
-- Looking for include file sys/timerfd.h - found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for mprotect
-- Looking for mprotect - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
-- Performing Test ALLEGRO_HAVE_VA_COPY
-- Performing Test ALLEGRO_HAVE_VA_COPY - Success
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XcursorImageCreate in Xcursor
-- Looking for XcursorImageCreate in Xcursor - not found
CMake Error at CMakeLists.txt:570 (message):
X11 support requires Xcursor library.
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/allegro-5.0.10/Build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/allegro-5.0.10/Build/CMakeFiles/CMakeError.log".
My conclusions after that (which are not accurate, so I'm here for an enlightment from the gurus :)):
1) Some libraries are missing (like soundcard.h), but that was supposed to happen since README says some add-on libraries from Allegro required some extra libraries, that were not fundamental to the compilation of the core Allegro.
2) Some fundamental libraries were not found (Xcursor and Xcursor-dev maybe?)
3) Two tests failed (is that really a problem?):
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
I've tryied to read the CmakeOutput.log and CmakeError.log, but it seens like it's a little advanced for a begginer like me. I can post it here if you wish though!
Well, what should I do then? Install Xcursor and Xcursor-dev and try again? Am I wrong at something so far?
Sorry about the long text and all the questions, I'm just trying to make sure I dont screw anything up and learn as much as possible in the process hehe
Thanks in advance,
Ian
ps: My intention is to finish the installation with checkinstall so I can uninstall it easily
I've been installing and uninstalling ubuntu several times (usually because I didn't know how to use it, and always filled my hard drive with stuff I didn't know how to take off). Now I'm trying to keep it and to learn as much as possible, since I'm not wasting money on windows and XP is not an option anymore ([-(). So far I can do everything I need here, and even learned how to use wine!
So far, trying not to screw my system, I have only installed stuff through the Ubuntu Software Center, but now that I want to program again in C++ and play with Allegro I need to actually compile something, which always seemed as wandering in unknown and dangerous lands.
I'm trying to go step-by-step, so I know exactly what I'm doing, and so far I've:
1) Downloaded Allegro's source code on the website, unziped it on /usr/local/src/allegro-5.0.10
2) Installed Cmake and Cmake-curses-gui through apt-get.
3) I then readed README and tryied to install all dependencies (X11 development libraries and OpenGL libraries), which in my research resumed to those:
mesa-common-dev (which I think is the actuall X11 dev and OpenGL dev libraries); freeglut3 and freeglut3-dev (related to OpenGL development if I'm not mistaken); libglew-dev and libglu1-mesa (apparently the libraries that are related to OpenGL that weren't included in the previous packages).
4) Created a Build directory inside /usr/local/src/allegro-5.0.10 and finally runned "Cmake .." from that directory
From my researchs, Cmake is supposed to be a substitute to ./configure right?
Well, the output from the Cmake command was the following:
iancaio@ian-desktop:/usr/local/src/allegro-5.0.10/Build$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Allowing GCC to use SSE instructions
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include files sys/types.h, linux/joystick.h
-- Looking for include files sys/types.h, linux/joystick.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - found
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
-- Looking for include file sys/timerfd.h
-- Looking for include file sys/timerfd.h - found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for mprotect
-- Looking for mprotect - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
-- Performing Test ALLEGRO_HAVE_VA_COPY
-- Performing Test ALLEGRO_HAVE_VA_COPY - Success
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XcursorImageCreate in Xcursor
-- Looking for XcursorImageCreate in Xcursor - not found
CMake Error at CMakeLists.txt:570 (message):
X11 support requires Xcursor library.
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/allegro-5.0.10/Build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/allegro-5.0.10/Build/CMakeFiles/CMakeError.log".
My conclusions after that (which are not accurate, so I'm here for an enlightment from the gurus :)):
1) Some libraries are missing (like soundcard.h), but that was supposed to happen since README says some add-on libraries from Allegro required some extra libraries, that were not fundamental to the compilation of the core Allegro.
2) Some fundamental libraries were not found (Xcursor and Xcursor-dev maybe?)
3) Two tests failed (is that really a problem?):
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
I've tryied to read the CmakeOutput.log and CmakeError.log, but it seens like it's a little advanced for a begginer like me. I can post it here if you wish though!
Well, what should I do then? Install Xcursor and Xcursor-dev and try again? Am I wrong at something so far?
Sorry about the long text and all the questions, I'm just trying to make sure I dont screw anything up and learn as much as possible in the process hehe
Thanks in advance,
Ian
ps: My intention is to finish the installation with checkinstall so I can uninstall it easily