irrBP - An Irrlicht - Bullet Physics Wrapper

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by randomMesh »

Hysteric329 wrote:I do link irrBP and all necessary Bullet libraries, but I think this problem is due to the wrong linking order (when i change this order error change too). What is the right one?
Yes, using Google is very hard. So i did it for you: Link order for libraries
"Whoops..."
Hysteric329
Posts: 2
Joined: Thu Apr 25, 2013 4:01 pm

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by Hysteric329 »

randomMesh wrote: Yes, using Google is very hard.
Especially in Russia :lol: I tried about 10 different orders, but haven't reach the right one.
@randomMesh: thanks for help (and for using google)!
rubenwardy
Posts: 91
Joined: Mon Mar 05, 2012 4:51 pm
Location: Bristol, UK
Contact:

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by rubenwardy »

I cant get it to work properly.
I have built bullets, and moved the *.a's to libs/

I get

No rule to make target `/home/andrew/physics/bullet/libs/libBulletMultiThreaded.a', needed by `Game'. Stop.

Code: Select all

cmake_minimum_required(VERSION 2.6)
project(Game)
 
# Defines
set(PROJECT_SOURCE_DIR "src")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(BINDIR "bin")
 
# Dependancies
find_package(Irrlicht REQUIRED)
find_package(ZLIB REQUIRED)
find_package(X11 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(JPEG REQUIRED)
find_package(BZip2 REQUIRED)
find_package(PNG REQUIRED)
 
# Executable
file(GLOB GAME_SRC_IRRBP
    "bullet/src/*.cpp"
    "bullet/src/actions/*.cpp"
    "bullet/src/animator/*.cpp"
    "bullet/src/body/*.cpp"
    "bullet/src/constraint/*.cpp"
    "bullet/src/softbody/*.cpp"
)
set(GAME_SRC
    ${GAME_SRC_IRRBP}   
    src/main.cpp
    src/game.cpp
)
 
add_executable(${PROJECT_NAME} ${GAME_SRC})
 
include_directories(
    ${PROJECT_BINARY_DIR}
    ${IRRLICHT_INCLUDE_DIR}
    ${ZLIB_INCLUDE_DIR}
    ${CMAKE_BUILD_TYPE}
    ${X11_INCLUDE_DIR}
    ${OPENGL_INCLUDE_DIR}
    ${PNG_INCLUDE_DIR}
    "bullet/bullet-2.79-include"
    "bullet/include"
)
 
target_link_libraries(
    ${PROJECT_NAME}
    ${IRRLICHT_LIBRARY}
    ${ZLIB_LIBRARIES}
    ${X11_LIBRARIES}
    ${OPENGL_LIBRARIES}
    ${JPEG_LIBRARIES}
    ${BZIP2_LIBRARIES}
    ${PNG_LIBRARIES}
    ${IRRBP_LIBRARY}
    "/home/andrew/physics/bullet/libs/libBulletMultiThreaded.a" 
    "/home/andrew/physics/bullet/libs/libBulletSoftBody.a"
    "/home/andrew/physics/bullet/libs/libBulletDynamics.a"
    "/home/andrew/physics/bullet/libs/libBulletCollision.a" 
    "/home/andrew/physics/bullet/libs/libLinearMath.a"
)
 
set_target_properties(${PROJECT_NAME}
    PROPERTIES
    OUTPUT_NAME ${PROJECT_NAME}
)
 
# Install DLLs
if(WIN32)
    if(DEFINED IRRLICHT_DLL)
        message(Installing irrlicht dll)
        install(FILES ${IRRLICHT_DLL} DESTINATION ${BINDIR})
    endif()
endif()
 
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by netpipe »

i had same issue, was just wondering why its so hard to load bsp's with bullet mine keeps crashing when i try octtrees hehe. https://www.youtube.com/watch?v=9yEzis9GXY8 suposedly it can but i havnt found a bsp loader inside of it yet.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
gandalfpotter13
Posts: 1
Joined: Wed Jan 19, 2022 5:14 am

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by gandalfpotter13 »

Thank god for web.archive.org!
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: irrBP - An Irrlicht - Bullet Physics Wrapper

Post by netpipe »

what makes you say that do you have a working demo ?

https://github.com/netpipe/IrrlichtDemo ... irrBP-0.41 i have this but its not compiling maybe the linking order like it had said. but doubtful maybe it needs the newer bullet
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply