Author Topic: CodeBlocks cannot find -lOpenAL32  (Read 754 times)

Offline helliot1

  • Single posting newcomer
  • *
  • Posts: 4
CodeBlocks cannot find -lOpenAL32
« on: December 10, 2017, 11:35:47 pm »
Hello guys, I'm compiling with the CodeBlocks, but I get some errors on final compiling
I'm a begginer on it, and don't understand so much, somebody can help me ?
Thanks

Build Log
Code: [Select]
-------------- Build: all in otclient (compiler: GNU GCC Compiler)---------------

Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/mingw64/bin/mingw32-make.exe -f "C:/Users/Leonardo/Desktop/COMPILE 2.0/Makefile"  VERBOSE=1 all
"C:\Program Files\CMake\bin\cmake.exe" -HC:\OTC -B"C:\Users\Leonardo\Desktop\COMPILE 2.0" --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start "C:\Users\Leonardo\Desktop\COMPILE 2.0\CMakeFiles" "C:\Users\Leonardo\Desktop\COMPILE 2.0\CMakeFiles\progress.marks"
C:/mingw64/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory 'C:/Users/Leonardo/Desktop/COMPILE 2.0'
C:/mingw64/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make.exe[2]: Entering directory 'C:/Users/Leonardo/Desktop/COMPILE 2.0'
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\OTC C:\OTC "C:\Users\Leonardo\Desktop\COMPILE 2.0" "C:\Users\Leonardo\Desktop\COMPILE 2.0" "C:\Users\Leonardo\Desktop\COMPILE 2.0\CMakeFiles\otclient.dir\DependInfo.cmake" --color=
mingw32-make.exe[2]: Leaving directory 'C:/Users/Leonardo/Desktop/COMPILE 2.0'
C:/mingw64/bin/mingw32-make.exe -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/build
mingw32-make.exe[2]: Entering directory 'C:/Users/Leonardo/Desktop/COMPILE 2.0'
[  1%] Linking CXX executable otclient.exe
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\otclient.dir\link.txt --verbose=1
"C:\Program Files\CMake\bin\cmake.exe" -E remove -f CMakeFiles\otclient.dir/objects.a
C:\mingw64\bin\ar.exe cr CMakeFiles\otclient.dir/objects.a @CMakeFiles\otclient.dir\objects1.rsp
C:\mingw64\bin\g++.exe  -std=c++11 -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-unused-result   -pipe -mthreads -O1 -g -fno-omit-frame-pointer  -static-libgcc -static-libstdc++ -mwindows -Wl,-Map=otclient.map  -Wl,--whole-archive CMakeFiles\otclient.dir/objects.a -Wl,--no-whole-archive  -o otclient.exe -Wl,--out-implib,libotclient.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\otclient.dir\linklibs.rsp
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../lib\libOpenAL32.a when searching for -lOpenAL32
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../..\libOpenAL32.a when searching for -lOpenAL32
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lOpenAL32
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../lib\libvorbisfile.a when searching for -lvorbisfile
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../..\libvorbisfile.a when searching for -lvorbisfile
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lvorbisfile
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../lib\libvorbis.a when searching for -lvorbis
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../..\libvorbis.a when searching for -lvorbis
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lvorbis
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../lib\libogg.a when searching for -logg
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../..\libogg.a when searching for -logg
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -logg
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1a8): multiple definition of `__imp___ZNSs4_Rep20_S_empty_rep_storageE'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1a8): first defined here
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1c0): multiple definition of `__imp___ZTVN10__cxxabiv117__class_type_infoE'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1c0): first defined here
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1c4): multiple definition of `__imp___ZTVN10__cxxabiv120__si_class_type_infoE'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.idata+0x1c4): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:dllcrt1.c:(.text+0x0): multiple definition of `_DllMainCRTStartup@12'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.text+0x0): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:dllcrt1.c:(.text+0x136): multiple definition of `_atexit'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.text+0x136): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:dllcrt1.c:(.text+0x169): multiple definition of `__onexit'
C:/mingw64/bin/libboost_system-mt.dll:dllcrt1.c:(.text+0x169): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:cygming-crtbegin.c:(.text+0x190): multiple definition of `___gcc_register_frame'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x190): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:cygming-crtbegin.c:(.text+0x230): multiple definition of `___gcc_deregister_frame'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x230): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x7a70): multiple definition of `__ZN5boost6system14error_categoryD1Ev'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x1700): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x97d0): multiple definition of `__ZNK5boost6system14error_category23default_error_conditionEi'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x1770): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x9790): multiple definition of `__ZNK5boost6system14error_category10equivalentEiRKNS0_15error_conditionE'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x1730): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x9770): multiple definition of `__ZNK5boost6system14error_category10equivalentERKNS0_10error_codeEi'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x1710): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x7a50): multiple definition of `__ZN5boost6system14error_categoryD0Ev'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x16e0): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4770): multiple definition of `_DllMain@12'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x13e0): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4b88): multiple definition of `___dyn_tls_init@12'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0xed0): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4bfd): multiple definition of `___tlregdtor'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0xf45): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4fb3): multiple definition of `__pei386_runtime_relocator'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x12fb): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4ff0): multiple definition of `___do_global_dtors'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x1338): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x501b): multiple definition of `___do_global_ctors'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x1363): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x5075): multiple definition of `___main'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x13bd): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x5098): multiple definition of `____w64_mingwthr_add_key_dtor'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x13ec): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x511c): multiple definition of `____w64_mingwthr_remove_key_dtor'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x1470): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x522e): multiple definition of `___mingw_TLScallback'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x1582): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x5450): multiple definition of `_VirtualProtect@16'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtend.c:(.text+0x169c): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x4af8): multiple definition of `__ZNSsC1EPKcRKSaIcE'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0xe70): first defined here
C:/mingw64/bin/libboost_thread_win32-mt.dll:tss_dll.cpp:(.text+0x5390): multiple definition of `_free'
C:/mingw64/bin/libboost_system-mt.dll:cygming-crtbegin.c:(.text+0x162c): first defined here
Process terminated with status 2 (1 minute(s), 59 second(s))
50 error(s), 0 warning(s) (1 minute(s), 59 second(s))

Build Messages

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6193
    • My Best Post
Re: CodeBlocks cannot find -lOpenAL32
« Reply #1 on: December 11, 2017, 03:29:00 am »
Please read this link and report the info requested in it.http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

At least state the information about your OS, Compiler, and Code::Blocks.

I am guessing you are using MSys2's GCC Compiler, is this correct?

Edit: Are you trying to make an 32bit or an 64bit executable program?

Edit2: Did you create the makefile you are trying to use?

Edit3: You problem seems to be you have both MSys2 MinGW64 GCC and MSys2 Cygwin GCC in your path.

Tim S.
« Last Edit: December 11, 2017, 03:34:45 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline helliot1

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks cannot find -lOpenAL32
« Reply #2 on: December 11, 2017, 04:01:49 am »
Please read this link and report the info requested in it.http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

At least state the information about your OS, Compiler, and Code::Blocks.

I am guessing you are using MSys2's GCC Compiler, is this correct?

Edit: Are you trying to make an 32bit or an 64bit executable program?

Edit2: Did you create the makefile you are trying to use?

Edit3: You problem seems to be you have both MSys2 MinGW64 GCC and MSys2 Cygwin GCC in your path.

Tim S.

Sorry, I'll explain all about I did

I'm using Windows 10 64 Bits.

First, I downloaded the MinGW, installed all packages and put the libs on the folder.Configured the path variables. I used the CMake to create the file. When the file was generated, I opened with the CodeBlocks, and compiled but I get these errors, when are finishing the compilation.

I don't understand the third part, that you said that I have the both Msys in my path

I'm using the GCC Compiler ,because I could not place the Visual Studio.
Thanks for the attention, and Sorry again, but I'm a begginer on it, I'm slowly learning
« Last Edit: December 11, 2017, 04:08:17 am by helliot1 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6193
    • My Best Post
Re: CodeBlocks cannot find -lOpenAL32
« Reply #3 on: December 11, 2017, 04:24:17 am »
So, does that mean you are not using MSys2?

Please post a link to the Compiler you are using if you do not know if your are using MSys2 or not.

Edit: Are you trying to make an 32bit or an 64bit executable program?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline helliot1

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks cannot find -lOpenAL32
« Reply #4 on: December 11, 2017, 12:20:58 pm »
So, does that mean you are not using MSys2?

Please post a link to the Compiler you are using if you do not know if your are using MSys2 or not.

Edit: Are you trying to make an 32bit or an 64bit executable program?

Tim S.

I'm trying to make an 32 bit executable.
I think that I'm not using Msys2, I think that I'm using the MinGW32 or it is the Libs ? Because I haven't seen this name in any stage that I make

Or can be it ?



Offline stahta01

  • Lives here!
  • ****
  • Posts: 6193
    • My Best Post
Re: CodeBlocks cannot find -lOpenAL32
« Reply #5 on: December 11, 2017, 02:09:40 pm »
Posting a screen shot of Code::Blocks does not help since the Problem is [likely] not in Code::Blocks!

You need to learn about the Compiler you are using; at least enough to figure out how to tell it to make 32 bit programs.
Edit: Code::Blocks is an IDE it is not a Compiler!!
Edit: You are using a custom makefile project the options in Code::Blocks do NOT change how the project is built!

Note: The problem might be in the makefile or cmake instead.

Tim S.
« Last Edit: December 11, 2017, 02:33:59 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1826
Re: CodeBlocks cannot find -lOpenAL32
« Reply #6 on: December 11, 2017, 02:43:41 pm »
Yes, if you use cmake to generate a codeblocks project the whole build process is outsourced to cmake. Codeblocks only calls cmake that does its stuff. Any build option or library path or anything beside code editing (even adding a new c file) you edit in codeblocks will get ignored.
If you want to modify search paths for libraries or build options you will have to edit the cmake file.
I am afraid this is not the right place for your question because we do not support OpenAL, OpenGL or CMake. We only support codeblocks question and your problem is not in codeblocks but in your cmake file.

By luck maybe someone can help you, but i would search for help on an other site...

Offline helliot1

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks cannot find -lOpenAL32
« Reply #7 on: December 11, 2017, 02:53:40 pm »
Thanks @stahta01 @BlueHazzard!! it's a great help to know that the error isn't in the Code::Blocks. I'll try to search something about the CMake!!