Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - c-jay

Pages: [1] 2
1
C / How to release a sfml-program for several distribution?
« on: August 20, 2016, 11:16:20 am »
Hi, my project of coding some stuff with sfml is in the final state.
Now I like to build a release for students but I'm very new to cmake/ make .

Do anybody know a good tutorial or bool to release an C-program, based on SFML/CSFML 2.3 to another machine like Ubuntu 14.04 ?

Thank you very much

2
C / Re: final link failed, hidden symbol `__cpu_model'
« on: August 20, 2016, 09:23:22 am »
okay thank you. I thought my resolution would take the same effect - but it doesn't.

3
C / final link failed, hidden symbol `__cpu_model'
« on: August 18, 2016, 09:48:21 pm »
Hi, after updating (C)SFML I get an known error but the known solution with -l gcc_s -l gcc didn't work any more :(

Building target: TEST
Invoking: Cross GCC Linker
g++ -L/home/user/Programme/CSFML_build/lib -L/home/user/Programme/SFML_build/lib -o "TextFS"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lcsfml-window -lsfml-window -lcsfml-graphics -lsfml-graphics -lcsfml-system -lsfml-system -lgcc_s -lgcc
/usr/bin/ld: warning: libsfml-window.so.2.3, needed by /home/user/Programme/CSFML_build/lib/libcsfml-window.so, may conflict with libsfml-window.so.2.4
/usr/bin/ld: warning: libsfml-graphics.so.2.3, needed by /home/user/Programme/CSFML_build/lib/libcsfml-graphics.so, may conflict with libsfml-graphics.so.2.4
/usr/bin/ld: TEST: hidden symbol `__cpu_model' in /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a(cpuinfo.o) is referenced by DSO
/usr/bin/ld: final link failed: Ungültiger Wert
collect2: error: ld returned 1 exit status

I'm very thankful for every help

4
General / Re: Could NOT find SFML missing LIBRARY
« on: August 16, 2016, 07:17:06 pm »
first install libsfml-dev....

5
General / Could NOT find SFML missing LIBRARY
« on: August 14, 2016, 05:24:17 pm »
Hi, I have written a little program using sfml. Now I like to install it on a fresh Ubuntu 16.01 with cmake/make but i get an error which I don' get fixed.

chris@Ubuntu-PC:~/Programme/sfml-build$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local -DCMAKE_BUILD_TYPE=release ../sfml
CMake Error at FindSFML.cmake:359 (message):
    Could NOT find SFML (missing: SFML_SYSTEM_LIBRARY SFML_WINDOW_LIBRARY      
    SFML_NETWORK_LIBRARY SFML_GRAPHICS_LIBRARY SFML_AUDIO_LIBRARY)
 

I tried some solutions like setting the  SFML_ROOT but it doesn't work. Do I have to set it to the header direcory or to another directory?

If you need more details I will post it next time

6
solved-> don't run program as root

7
Hi,

after updating Ubuntu 14.01 to Ubuntu 16.01 xenial with KDE 4.14 I get this terminal error :

root@PC-Ubuntu:/home/user/test# ./TEST
Failed to open X11 display; make sure the DISPLAY environment variable is set correctly
 

If i run the code in Eclipse the window open correctly.

Some additional Informaion:
root@PC-Ubuntu:/home/user/test# echo $DISPLAY
localhost:10.0

root@PC-Ubuntu:/home/user/test# grep X /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
 
Any idea how to fix?


8
C / Re: Eclipse: undefined reference
« on: August 11, 2016, 07:05:57 pm »
Adding CSFML Library search path and SFML include path solved my problem. Thank you very much for your support eXpl0it3r!!

9
C / Re: Eclipse: undefined reference
« on: August 11, 2016, 05:57:25 pm »
Hm i tried both. First csfml and first sfml libs

Building target: TEST
Invoking: Cross GCC Linker
g++ -L/home/user/Programme/SFML_build/lib -o "TEST"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lcsfml-graphics -lsfml-graphics -lcsfml-window -lsfml-window -lcsfml-system -lsfml-system -lgcc_s -lgcc
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Font::getGlyph(unsigned int, unsigned int, bool) const'
collect2: error: ld returned 1 exit status
makefile:30: die Regel für Ziel "TEST" scheiterte
make: *** [TEST] Fehler 1

... but the failure is the same.

Any other idea?

10
C / Re: Eclipse: undefined reference
« on: August 10, 2016, 10:03:43 pm »
okay my mistake. i read it again and took the workaround. After this the last error is the following:


21:59:41 **** Incremental Build of configuration Debug for project TEST ****
make all
Building target: TEST
Invoking: Cross GCC Linker
g++ -L/home/user/Programme/SFML_build/lib -o "TEST"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lsfml-graphics -lsfml-window -lcsfml-graphics -lcsfml-system -lcsfml-window -lsfml-system -lgcc_s -lgcc
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Font::getGlyph(unsigned int, unsigned int, bool) const'
collect2: error: ld returned 1 exit status
makefile:30: die Regel für Ziel "TEST" scheiterte
make: *** [TextFS] Fehler 1

Any solution?

11
C / Re: Eclipse: undefined reference
« on: August 10, 2016, 09:36:45 pm »
thank you. But I don't understand the solution. How could I add -lgcc_s -lgcc at the end of the g++ command that links the shared library?

12
C / Re: Eclipse: undefined reference
« on: August 10, 2016, 09:02:28 pm »
How could i link SFML statically against CSFML with Eclipse? Or how could I link SFML with eclipse?

I added sfml-graphics, sfml-system and sfml-window to settings->linker->libraries and now the console output of eclipse changed to:

Building target: TEST
Invoking: Cross GCC Linker
g++ -L/home/user/Programme/SFML_build/lib -o "TEST"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lsfml-graphics -lsfml-system -lsfml-window -lcsfml-graphics -lcsfml-system -lcsfml-window
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Font::getGlyph(unsigned int, unsigned int, bool) const'
/home/christian/Programme/SFML_build/lib/libsfml-graphics.so: Nicht definierter Verweis auf `__cpu_model'
collect2: error: ld returned 1 exit status
make: *** [TEST] Fehler 1
makefile:30: die Regel für Ziel "TEST" scheiterte

13
C / Eclipse: undefined reference
« on: August 10, 2016, 07:51:48 pm »
Hi,

after updating ubuntu to 16.04 xenial and sfml cmake + make and csfml cmake + make i get the following failure in Eclipse

 Nicht definierter Verweis auf == undefined reference to
19:41:37 **** Incremental Build of configuration Debug for project TEST ****
make all
Building target: TEST
Invoking: Cross GCC Linker
gcc -L/home/user/Programme/SFML_build/lib -o "TEST"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lcsfml-graphics -lpthread -lcsfml-system -lcsfml-window
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Rect<int> const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Shader::Type)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Vector2<float> const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float, float, float)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::loadFromMemory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Shader::Type)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Texture const&)'
makefile:30: die Regel für Ziel "TEST" scheiterte
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Vector3<float> const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Font::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Font::getGlyph(unsigned int, unsigned int, bool) const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Image::saveToFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-window.so: Nicht definierter Verweis auf `sf::String::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Shader::CurrentTextureType)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Color const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Transform const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::setParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float, float)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::String::toAnsiString[abi:cxx11](std::locale const&) const'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Shader::loadFromMemory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcsfml-graphics.so: Nicht definierter Verweis auf `sf::Image::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make: *** [TEST] Fehler 1

i'm very thankful for every solution

14
C / Re: CMAKE failure
« on: August 10, 2016, 06:48:21 pm »
I found the solution.

1) Copy FindSFML.cmake from SFML-Master/cmake/ to CSFML-Master/
2) add
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/" ${CMAKE_MODULE_PATH})
to CSFML-Master/src/SFML/CMakeLists.txt

My next question: Why isn't this write down in the csfml-documentation for ubuntu-beginner like me?


15
C / Re: CMAKE failure
« on: August 10, 2016, 06:24:13 pm »
Thank you.

I don't know very much about cmake files. Do you have a snipped of code which i have to paste in the skript?

Pages: [1] 2