"_createDeviceEx", referenced from:
_main in main.o
"irr::video::IdentityMaterial", referenced from:
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in sky.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in clientmap.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in farmesh.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in clouds.o
(maybe you meant: __ZN3irr5video16IdentityMaterialE$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
OmniStudent wrote:You can also use this command to try to print out some variables, like
message(STATUS "XDG apps dir is set to=${XDG_APPS_DIR}")
or something similar, to find the missing variable.
pheonixfire wrote:It gives me the following regardless of where I put it in the file
-- XDG apps dir is set to=
any help is appreciated
pheonixfire
message(STATUS "Using XDG_APPS_DIR=${XDG_APPS_DIR}")
if(WIN32)
set(SHAREDIR ".")
set(BINDIR "bin")
set(DOCDIR "doc")
set(EXAMPLE_CONF_DIR ".")
set(LOCALEDIR "locale")
message(STATUS "I think Im in windows")
message(STATUS "Using XDG_APPS_DIR=${XDG_APPS_DIR}")
elseif(APPLE)
# Random placeholders; this isn't usually used and may not work
# See https://github.com/toabi/minetest-mac/
set(SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}")
set(BINDIR "bin")
set(DOCDIR "share/doc/${PROJECT_NAME}")
set(EXAMPLE_CONF_DIR ${DOCDIR})
set(LOCALEDIR "locale")
#set(XDG_APPS_DIR "/Users/macusername/")
message(STATUS "I think Im in mac")
message(STATUS "Using XDG_APPS_DIR=${XDG_APPS_DIR}")
elseif(APPLE)
elseif(UNIX) # Linux, BSD etc
if(RUN_IN_PLACE)
set(SHAREDIR ".")
set(BINDIR "bin")
set(DOCDIR "doc")
set(EXAMPLE_CONF_DIR ".")
set(MANDIR "unix/man")
set(XDG_APPS_DIR "unix/applications")
set(ICONDIR "unix/icons")
set(LOCALEDIR "locale")
message(STATUS "I think Im in linux and this is RUN_IN_PLACE")
message(STATUS "Using XDG_APPS_DIR=${XDG_APPS_DIR}")
else()
set(SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}")
set(BINDIR "${CMAKE_INSTALL_PREFIX}/bin")
set(DOCDIR "${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_NAME}")
set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
set(EXAMPLE_CONF_DIR ${DOCDIR})
set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/share/applications")
set(ICONDIR "${CMAKE_INSTALL_PREFIX}/share/icons")
set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
message(STATUS "I think Im in linux and this is RUN_IN_PLACE")
message(STATUS "Using XDG_APPS_DIR=${XDG_APPS_DIR}")
endif()
endif()
pheonixfire wrote:how do I post files, I've been using imageshack to post images
any help is appreciated
pheonixfire
Linking CXX executable ../bin/minetest
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libIrrlicht.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libjpeg.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libpng.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libXext.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libjpeg.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libpng.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libXext.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_createDeviceEx", referenced from:
_main in main.cpp.o
"irr::core::IdentityMatrix", referenced from:
__ZN3irr4core14IdentityMatrixE$non_lazy_ptr in content_cao.cpp.o
__ZN3irr4core14IdentityMatrixE$non_lazy_ptr in game.cpp.o
(maybe you meant: __ZN3irr4core14IdentityMatrixE$non_lazy_ptr)
"irr::video::IdentityMaterial", referenced from:
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in sky.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in clientmap.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in farmesh.cpp.o
__ZN3irr5video16IdentityMaterialE$non_lazy_ptr in clouds.cpp.o
(maybe you meant: __ZN3irr5video16IdentityMaterialE$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/minetest] Error 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2
/Users/security/mine2/celeron55-minetest-9696ed3/bin/minetest
https://github.com/toabi/minetest/tree/cmake-osx
set(XDG_APPS_DIR "unix/applications")
cmake -G Xcode . -DENABLE_SOUND=0
cmake -G Xcode .
nerfski wrote:
I compiled and used libjpeg 8c : http://www.ijg.org/files/jpegsrc.v8c.tar.gz, OmniStudent, which libjpeg did you get from 'port'?
universal.darwin_10.i386-x86_64.
$ cd irrlicht-1.8/
$ (cd source/Irrlicht/MacOSX && xcodebuild -arch i386 -project MacOSX.xcodeproj)
$ sudo cp source/Irrlicht/MacOSX/build/Release/libIrrlicht.a /usr/local/lib/
$ sudo cp -r include /usr/local/include/Irrlicht
$ cd minetest
$ cmake -D ENABLE_SOUND=0 -G Xcode .
$ xcodebuild -project minetest.xcodeproj -target package
mrscotty wrote:On OS X 10.7.3, I was able to get minetest compiled with Irrlicht 1.8 and the GUI starts, but I am unable to enter any text in the text fields. They are not even selectable by clicking with the mouse. Here are the steps I took:
1. Download Irrlicht 1.8 from sourceforge
2. Compile and install Irrlicht (used i386 because I had compile errors when trying to compile minetest as x86_64)Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
$ cd irrlicht-1.8/
$ (cd source/Irrlicht/MacOSX && xcodebuild -arch i386 -project MacOSX.xcodeproj)
$ sudo cp source/Irrlicht/MacOSX/build/Release/libIrrlicht.a /usr/local/lib/
$ sudo cp -r include /usr/local/include/Irrlicht
3. Clone minetest from github and rebased the cmake-osx branch from toabi onto the current master HEAD
4. Compile and install minetestYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
$ cd minetest
$ cmake -D ENABLE_SOUND=0 -G Xcode .
$ xcodebuild -project minetest.xcodeproj -target package
The minetest.app is in minetest-0.4.3-osx.dmg in the minetest directory.
Does anyone have an idea regarding the text input problem?
Users browsing this forum: No registered users and 96 guests